From 47e4faaeead6566ba4ccf69fc603e6865031044a Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 19 Jul 2020 11:55:13 +0530 Subject: [PATCH 1/2] Remove type images Signed-off-by: Harsh Shandilya --- .../adapters/PasswordItemRecyclerAdapter.kt | 3 --- .../res/drawable/ic_multiple_files_24dp.xml | 15 ----------- .../main/res/layout/password_row_layout.xml | 26 ++++++------------- 3 files changed, 8 insertions(+), 36 deletions(-) delete mode 100644 app/src/main/res/drawable/ic_multiple_files_24dp.xml diff --git a/app/src/main/java/com/zeapo/pwdstore/ui/adapters/PasswordItemRecyclerAdapter.kt b/app/src/main/java/com/zeapo/pwdstore/ui/adapters/PasswordItemRecyclerAdapter.kt index 5a332fa540..15e13745ff 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ui/adapters/PasswordItemRecyclerAdapter.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ui/adapters/PasswordItemRecyclerAdapter.kt @@ -43,7 +43,6 @@ open class PasswordItemRecyclerAdapter : class PasswordItemViewHolder(view: View) : RecyclerView.ViewHolder(view) { private val name: AppCompatTextView = itemView.findViewById(R.id.label) - private val typeImage: AppCompatImageView = itemView.findViewById(R.id.type_image) private val childCount: AppCompatTextView = itemView.findViewById(R.id.child_count) private val folderIndicator: AppCompatImageView = itemView.findViewById(R.id.folder_indicator) @@ -55,7 +54,6 @@ open class PasswordItemRecyclerAdapter : val showHidden = settings.getBoolean(PreferenceKeys.SHOW_HIDDEN_FOLDERS, false) name.text = item.toString() if (item.type == PasswordItem.TYPE_CATEGORY) { - typeImage.setImageResource(R.drawable.ic_multiple_files_24dp) folderIndicator.visibility = View.VISIBLE val children = item.file.listFiles { pathname -> !(!showHidden && (pathname.isDirectory && pathname.isHidden)) @@ -64,7 +62,6 @@ open class PasswordItemRecyclerAdapter : childCount.visibility = if (count > 0) View.VISIBLE else View.GONE childCount.text = "$count" } else { - typeImage.setImageResource(R.drawable.ic_action_secure_24dp) val parentPath = item.fullPathToParent.replace("(^/)|(/$)".toRegex(), "") val source = if (parentPath.isNotEmpty()) { "$parentPath\n$item" diff --git a/app/src/main/res/drawable/ic_multiple_files_24dp.xml b/app/src/main/res/drawable/ic_multiple_files_24dp.xml deleted file mode 100644 index 163e278c06..0000000000 --- a/app/src/main/res/drawable/ic_multiple_files_24dp.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - diff --git a/app/src/main/res/layout/password_row_layout.xml b/app/src/main/res/layout/password_row_layout.xml index 81065fc28d..06874e1108 100644 --- a/app/src/main/res/layout/password_row_layout.xml +++ b/app/src/main/res/layout/password_row_layout.xml @@ -12,46 +12,36 @@ android:paddingTop="12dp" android:paddingBottom="12dp"> - - - - - Date: Sun, 19 Jul 2020 12:35:24 +0530 Subject: [PATCH 2/2] Update changelog Signed-off-by: Harsh Shandilya --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23b188a31b..30b6638f75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ All notable changes to this project will be documented in this file. - Light theme is now a consistent white across the board with ample contrast - XkPassword generator is now easier to use with less configuration options - Edit screen now has better protection and guidance for invalid names +- Improve password list UI ### Fixed