From 89b47f6ae88b490bbda888853d2b9d73a0fd8d72 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Mon, 12 Dec 2022 21:40:25 +0530 Subject: fix(autofill): fall back to remote views when inline presentations are unavailable Fixes #2290 --- .../app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java') 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 4c9ac53b..cc31da97 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 { -- cgit v1.2.3