From 465d5b867a67b3c9b24ecd024aeb6dbf925615cd Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 19 Jul 2020 13:55:34 +0530 Subject: Remove type images (#939) * Remove type images Signed-off-by: Harsh Shandilya * Update changelog Signed-off-by: Harsh Shandilya --- .../ui/adapters/PasswordItemRecyclerAdapter.kt | 3 --- .../main/res/drawable/ic_multiple_files_24dp.xml | 15 ------------- app/src/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 (limited to 'app') 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 5a332fa5..15e13745 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 163e278c..00000000 --- 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 81065fc2..06874e11 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"> - - - - -