diff options
author | Joakim Lundborg <joakim.lundborg@gmail.com> | 2018-09-25 20:54:06 +0200 |
---|---|---|
committer | حسين <zidhussein@gmail.com> | 2018-09-25 19:54:06 +0100 |
commit | e1dfbd0c99bae9ed599d1826d8292e06410dd587 (patch) | |
tree | 811ebda89b49b5b9df83f506a42e0bc91b5fced2 /app/src/main/java/com | |
parent | eea0e68dda1eb7248c6d458f52baeedb318b466a (diff) |
Clean paths (#425)
* Clean path display
This removes slashes from end of directories in the label, and the start
and end slash of the item headline.
* Item icon alignment
Change icon alignment to bottom, which makes the display look cleaner
when there is no path.
Diffstat (limited to 'app/src/main/java/com')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/utils/EntryRecyclerAdapter.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/utils/EntryRecyclerAdapter.java b/app/src/main/java/com/zeapo/pwdstore/utils/EntryRecyclerAdapter.java index f1d2c36b..b43b2e2d 100644 --- a/app/src/main/java/com/zeapo/pwdstore/utils/EntryRecyclerAdapter.java +++ b/app/src/main/java/com/zeapo/pwdstore/utils/EntryRecyclerAdapter.java @@ -101,13 +101,12 @@ public abstract class EntryRecyclerAdapter extends RecyclerView.Adapter<EntryRec holder.name.setText(pass.toString()); if (pass.getType() == PasswordItem.TYPE_CATEGORY) { holder.typeImage.setImageResource(R.drawable.ic_folder_grey600_24dp); - holder.name.setText(pass.toString() + "/"); } else { holder.typeImage.setImageResource(R.drawable.ic_action_secure); holder.name.setText(pass.toString()); } - holder.type.setText(pass.getFullPathToParent()); + holder.type.setText(pass.getFullPathToParent().replaceAll("(^/)|(/$)", "")); holder.view.setOnClickListener(getOnClickListener(holder, pass)); |