diff options
author | Fabian Meumertzheim <4312191+fmeum@users.noreply.github.com> | 2021-01-03 16:30:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-03 21:00:30 +0530 |
commit | 0943015416c68b053b1d734ace006613620b19be (patch) | |
tree | a842f0d2d849ad409b773af508720850dbfb4707 /app/src/main | |
parent | fa2279791fb8639cd0931aa93572ef0d1d14becb (diff) |
Show less obvious Autofill actions first (#1268)
Show Generate and Fill SMS OTP Autofill actions before the more
uninteresting (and expected) Search action.
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt | 6 | ||||
-rw-r--r-- | app/src/main/java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt b/app/src/main/java/dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt index 2b0d56a3..901fe46e 100644 --- a/app/src/main/java/dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt +++ b/app/src/main/java/dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt @@ -134,15 +134,15 @@ class Api30AutofillResponseBuilder(form: FillableForm) { addDataset(it) } } - makeSearchDataset(context, imeSpecs.getOrNull(datasetCount))?.let { + makeGenerateDataset(context, imeSpecs.getOrNull(datasetCount))?.let { datasetCount++ addDataset(it) } - makeGenerateDataset(context, imeSpecs.getOrNull(datasetCount))?.let { + makeFillOtpFromSmsDataset(context, imeSpecs.getOrNull(datasetCount))?.let { datasetCount++ addDataset(it) } - makeFillOtpFromSmsDataset(context, imeSpecs.getOrNull(datasetCount))?.let { + makeSearchDataset(context, imeSpecs.getOrNull(datasetCount))?.let { datasetCount++ addDataset(it) } diff --git a/app/src/main/java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt b/app/src/main/java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt index eecfc81b..1389713c 100644 --- a/app/src/main/java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt +++ b/app/src/main/java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt @@ -137,15 +137,15 @@ class AutofillResponseBuilder(form: FillableForm) { addDataset(it) } } - makeSearchDataset(context)?.let { + makeGenerateDataset(context)?.let { datasetCount++ addDataset(it) } - makeGenerateDataset(context)?.let { + makeFillOtpFromSmsDataset(context)?.let { datasetCount++ addDataset(it) } - makeFillOtpFromSmsDataset(context)?.let { + makeSearchDataset(context)?.let { datasetCount++ addDataset(it) } |