Skip to content

Commit 095e784

Browse files
committed
Actually use the hex value for the color rather than the pointer to the resource
1 parent de83207 commit 095e784

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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(R.color.orange);
92+
holder.setItemTestResultColor(mContext.getResources().getColor(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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +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>
10+
<color name="orange">#FF9900</color>
1111

1212
</resources>

0 commit comments

Comments
 (0)