Skip to content

Commit 0351bc2

Browse files
committed
Change color of failed test to (more readable) orange instead of yellow
1 parent cd5628c commit 0351bc2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

app/src/main/java/fuzion24/device/vulnerability/test/adapter/RecyclerAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {
8989

9090
if (item.getException() != null) {
9191
holder.setItemTestResult(mContext.getString(R.string.error_test, item.getException().getMessage()));
92-
holder.setItemTestResultColor(Color.YELLOW);
92+
holder.setItemTestResultColor(R.color.orange);
9393
} else {
9494
if (item.getResult()) {
9595
holder.setItemTestResultColor(mContext.getResources().getColor(R.color.red));

app/src/main/res/values/colors.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@
77
<color name="white">#FFF</color>
88
<color name="green">#00E500</color>
99
<color name="red">#CC0000</color>
10+
<color name="orange">#cc4e19</color>
1011

1112
</resources>

0 commit comments

Comments
 (0)