diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-12-12 21:40:25 +0530 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2022-12-12 21:40:25 +0530 |
commit | 89b47f6ae88b490bbda888853d2b9d73a0fd8d72 (patch) | |
tree | 699e56c78b17d35a5c75e2579fbf29158d29d6c9 /app | |
parent | d409d8c2d533ec6f9e1dffbc4966f5f1a6b6a2dd (diff) |
fix(autofill): fall back to remote views when inline presentations are unavailable
Fixes #2290
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt | 4 |
1 files changed, 4 insertions, 0 deletions
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 { |