summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuK1337 <priv.luk@gmail.com>2019-08-04 09:46:44 (GMT)
committerLuK1337 <priv.luk@gmail.com>2019-08-04 09:51:44 (GMT)
commit31c92db28df286d618cb418c5eef85dddb65728c (patch)
tree25f92c21f22e197fae21353b41e7bf939fdb2d64
parent2413c2481d89d08901f698b90ab60abb02c49f9c (diff)
downloadframeworks_base-31c92db28df286d618cb418c5eef85dddb65728c.zip
frameworks_base-31c92db28df286d618cb418c5eef85dddb65728c.tar.gz
frameworks_base-31c92db28df286d618cb418c5eef85dddb65728c.tar.bz2
SystemUI: Use appropriate function when trying to retrieve colorError
* android.R.attr.colorError is not a color state list, therefore we cannot use getDefaultColor(ctx, resid) on it. * Fixes : https://gitlab.com/LineageOS/issues/android/issues/1010 Change-Id: If39b0c066c904884283a9dc62ec85bf6450c1dda
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/tiles/DataUsageDetailView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/tiles/DataUsageDetailView.java b/packages/SystemUI/src/com/android/systemui/qs/tiles/DataUsageDetailView.java
index d4e319e..2b5ef36 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/tiles/DataUsageDetailView.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/tiles/DataUsageDetailView.java
@@ -91,7 +91,7 @@ public class DataUsageDetailView extends LinearLayout {
formatBytes(info.usageLevel));
bottom = res.getString(R.string.quick_settings_cellular_detail_data_limit,
formatBytes(info.limitLevel));
- usageColor = Utils.getDefaultColor(mContext, android.R.attr.colorError);
+ usageColor = Utils.getColorAttr(mContext, android.R.attr.colorError);
}
if (usageColor == 0) {