diff options
author | Fabian Henneke <fabian@henneke.me> | 2020-04-15 17:22:44 +0200 |
---|---|---|
committer | Harsh Shandilya <me@msfjarvis.dev> | 2020-04-15 22:47:41 +0530 |
commit | 7cd6f1d1cf78f60cf187d23469934c83915c778d (patch) | |
tree | 158fc49a875058be00674782f4c1894562d80fdc /app/src/main/res/layout | |
parent | 441b4d3b682824cf20200287c80ccc61f5e0bdef (diff) |
Add a switch between Fuzzy and StrictDomain mode to Autofill search view
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_oreo_autofill_filter.xml | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/app/src/main/res/layout/activity_oreo_autofill_filter.xml b/app/src/main/res/layout/activity_oreo_autofill_filter.xml index 7c8740c3..da965e05 100644 --- a/app/src/main/res/layout/activity_oreo_autofill_filter.xml +++ b/app/src/main/res/layout/activity_oreo_autofill_filter.xml @@ -46,7 +46,7 @@ android:id="@+id/rvPasswordSwitcher" android:layout_width="0dp" android:layout_marginTop="@dimen/activity_vertical_margin" - app:layout_constraintBottom_toTopOf="@id/shouldMatch" + app:layout_constraintBottom_toTopOf="@id/strictDomainSearch" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/searchLayout" @@ -72,6 +72,21 @@ </ViewSwitcher> <Switch + android:id="@+id/strictDomainSearch" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginStart="@dimen/activity_horizontal_margin" + android:layout_marginTop="@dimen/activity_vertical_margin" + android:layout_marginEnd="@dimen/activity_horizontal_margin" + android:text="@string/oreo_autofill_strict_domain_search" + app:layout_constraintBottom_toTopOf="@id/shouldMatch" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toBottomOf="@id/rvPasswordSwitcher" + app:layout_constraintVertical_bias="1.0" + tools:text="Phishing-resistant search"/> + + <Switch android:id="@+id/shouldMatch" android:layout_width="0dp" android:layout_height="wrap_content" @@ -82,7 +97,7 @@ app:layout_constraintBottom_toTopOf="@id/shouldClear" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toBottomOf="@id/rvPasswordSwitcher" + app:layout_constraintTop_toBottomOf="@id/strictDomainSearch" app:layout_constraintVertical_bias="1.0" tools:text="Match with example.org" /> |