Skip to content

Commit c795b9a

Browse files
committed
Fixed presentation issue with the leaked and non-leaked entries.
1 parent b6500de commit c795b9a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

java/src/main/java/org/astonbitecode/rustkeylock/adapters/EntriesAdapter.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ public View getView(int position, View convertView, ViewGroup parent) {
5656

5757
if (tvn != null) {
5858
tvn.setText(i.getName());
59+
LinearLayout ll = (LinearLayout) v.findViewById(R.id.entrynamecontainer);
5960
if (i.getMeta().isLeakedpassword()) {
60-
LinearLayout ll = (LinearLayout) v.findViewById(R.id.entrynamecontainer);
6161
ll.setBackgroundColor(Defs.BACKROUND_ERROR);
62+
} else {
63+
ll.setBackgroundColor(Defs.BACKROUND_NO_ERROR);
6264
}
6365
}
6466
}

java/src/main/java/org/astonbitecode/rustkeylock/utils/Defs.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,5 @@ public class Defs {
3737
public static final String EMPTY_ARG = "null";
3838
public static final String CHECK_PASSWORDS = "CheckPasswords";
3939
public static final int BACKROUND_ERROR = Color.argb(255, 246, 147, 100);
40+
public static final int BACKROUND_NO_ERROR = Color.TRANSPARENT;
4041
}

0 commit comments

Comments
 (0)