aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-12-12 21:40:25 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-12-12 21:40:25 +0530
commit89b47f6ae88b490bbda888853d2b9d73a0fd8d72 (patch)
tree699e56c78b17d35a5c75e2579fbf29158d29d6c9 /app/src/main/java
parentd409d8c2d533ec6f9e1dffbc4966f5f1a6b6a2dd (diff)
fix(autofill): fall back to remote views when inline presentations are unavailable
Fixes #2290
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/util/autofill/Api30AutofillResponseBuilder.kt4
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 {