mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-09-02 15:25:39 +00:00
fix(autofill): fall back to remote views when inline presentations are unavailable
Fixes #2290
This commit is contained in:
@@ -106,7 +106,11 @@ constructor(
|
|||||||
val inlinePresentation = makeInlinePresentation(context, imeSpec, metadata)
|
val inlinePresentation = makeInlinePresentation(context, imeSpec, metadata)
|
||||||
if (inlinePresentation != null) {
|
if (inlinePresentation != null) {
|
||||||
presentationsBuilder.setInlinePresentation(inlinePresentation)
|
presentationsBuilder.setInlinePresentation(inlinePresentation)
|
||||||
|
} else {
|
||||||
|
presentationsBuilder.setMenuPresentation(makeRemoteView(context, metadata))
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
presentationsBuilder.setMenuPresentation(makeRemoteView(context, metadata))
|
||||||
}
|
}
|
||||||
val presentations = presentationsBuilder.build()
|
val presentations = presentationsBuilder.build()
|
||||||
return Dataset.Builder(presentations).run {
|
return Dataset.Builder(presentations).run {
|
||||||
|
Reference in New Issue
Block a user