Remove LinearColorBar and replace uses with ProgressBar.
We never actually needed it, since progress bar can do
everything we want it to. Renamed data_usage_progress to
color_bar_progress to reflect its more generic state.
Updated color_bar_progress to use proper values.
Since we can't seem to use private attrs in settings,
use the dimen/color values that are customizable.
Updated usages to use regular ProgressBar APIs.
Fixes: 74111937
Test: visual inspection and robotests
Change-Id: I4f0c59e6cf5c629e3cc3901800d9c4afc95fa495
diff --git a/res/layout/settings_summary_preference.xml b/res/layout/settings_summary_preference.xml
index 1340571..ae3b70d 100644
--- a/res/layout/settings_summary_preference.xml
+++ b/res/layout/settings_summary_preference.xml
@@ -42,11 +42,12 @@
android:paddingBottom="5dp"
android:maxLines="10" />
- <com.android.settings.widget.LinearColorBar
+ <ProgressBar
android:id="@+id/color_bar"
+ style="?android:attr/progressBarStyleHorizontal"
android:layout_width="match_parent"
- android:layout_height="28dp"
- />
+ android:layout_height="wrap_content"
+ android:progressDrawable="@drawable/color_bar_progress"/>
<LinearLayout
android:id="@+id/label_bar"