From 89b47f6ae88b490bbda888853d2b9d73a0fd8d72 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 12 Dec 2022 21:40:25 +0530 Subject: [PATCH] fix(autofill): fall back to remote views when inline presentations are unavailable Fixes #2290 --- .../util/autofill/Api30AutofillResponseBuilder.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt b/app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt index 4c9ac53bf..cc31da97a 100644 --- a/app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt +++ b/app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt @@ -106,7 +106,11 @@ constructor( val inlinePresentation = makeInlinePresentation(context, imeSpec, metadata) if (inlinePresentation != null) { presentationsBuilder.setInlinePresentation(inlinePresentation) + } else { + presentationsBuilder.setMenuPresentation(makeRemoteView(context, metadata)) } + } else { + presentationsBuilder.setMenuPresentation(makeRemoteView(context, metadata)) } val presentations = presentationsBuilder.build() return Dataset.Builder(presentations).run {