From e3a49e2632cfda9c548728ae306ceb06374855ea Mon Sep 17 00:00:00 2001 From: Fabian Henneke Date: Mon, 6 Apr 2020 22:56:52 +0200 Subject: Modernize file listing and search in AutofillFilterActivity (#683) * WIP: Modernize file listing and search * Refactor * Implement fuzzy search * Improve ViewModel API and introduce Adapter * Integrate new search into AutofillFilterActivity and dedebounce * Improve no results layout * Reformat * Highlight origin in FileBased directory structure * Extract highlighting logic into DirectoryStructure * Trim whitespace before searching * Remove debug logging * Remove more debug logging * Organize imports * Remove imports * Update app/src/main/java/com/zeapo/pwdstore/SearchableRepositoryViewModel.kt Co-Authored-By: Harsh Shandilya * Address review comments Signed-off-by: Harsh Shandilya --- .../res/layout/activity_oreo_autofill_filter.xml | 33 ++++++++++++++++------ app/src/main/res/values/strings.xml | 1 + 2 files changed, 25 insertions(+), 9 deletions(-) (limited to 'app/src/main/res') 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 fb745afc..7c8740c3 100644 --- a/app/src/main/res/layout/activity_oreo_autofill_filter.xml +++ b/app/src/main/res/layout/activity_oreo_autofill_filter.xml @@ -28,7 +28,7 @@ android:layout_marginTop="@dimen/activity_vertical_margin" android:layout_marginEnd="@dimen/activity_horizontal_margin" app:endIconMode="clear_text" - app:layout_constraintBottom_toTopOf="@id/rvPassword" + app:layout_constraintBottom_toTopOf="@id/rvPasswordSwitcher" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/cover"> @@ -42,19 +42,34 @@ android:inputType="text" tools:text="example.com" /> - - + android:layout_height="0dp"> + + + + + + diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ff9a2ea8..87d97d5b 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -247,6 +247,7 @@ Match with %1$s Clear existing matches + No results. Search in storeā€¦ Save failed due to an internal error This app is currently not supported -- cgit v1.2.3