Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 31c92db2 authored by LuK1337's avatar LuK1337
Browse files

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
parent 2413c248
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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) {