From 0943015416c68b053b1d734ace006613620b19be Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim <4312191+fmeum@users.noreply.github.com> Date: Sun, 3 Jan 2021 16:30:30 +0100 Subject: Show less obvious Autofill actions first (#1268) Show Generate and Fill SMS OTP Autofill actions before the more uninteresting (and expected) Search action. --- .../dev/msfjarvis/aps/util/autofill/Api30AutofillResponseBuilder.kt | 6 +++--- .../java/dev/msfjarvis/aps/util/autofill/AutofillResponseBuilder.kt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'app') 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) } -- cgit v1.2.3