Merge "Update StorageSummaryDonutPreference content" into pi-dev
am: 070238df13
Change-Id: If003dd4abdd28f07acc531c863b950eff69265ff
This commit is contained in:
@@ -71,6 +71,8 @@ public class StorageSummaryDonutPreference extends Preference implements View.On
|
|||||||
@Override
|
@Override
|
||||||
public void onBindViewHolder(PreferenceViewHolder view) {
|
public void onBindViewHolder(PreferenceViewHolder view) {
|
||||||
super.onBindViewHolder(view);
|
super.onBindViewHolder(view);
|
||||||
|
view.itemView.setClickable(false);
|
||||||
|
|
||||||
final DonutView donut = (DonutView) view.findViewById(R.id.donut);
|
final DonutView donut = (DonutView) view.findViewById(R.id.donut);
|
||||||
if (donut != null) {
|
if (donut != null) {
|
||||||
donut.setPercentage(mPercent);
|
donut.setPercentage(mPercent);
|
||||||
|
@@ -205,6 +205,8 @@ public class DonutView extends View {
|
|||||||
.getDimension(
|
.getDimension(
|
||||||
R.dimen.storage_donut_view_shrunken_label_text_size));
|
R.dimen.storage_donut_view_shrunken_label_text_size));
|
||||||
}
|
}
|
||||||
|
setContentDescription(getContext().getString(
|
||||||
|
R.string.join_many_items_middle, mPercentString, mFullString));
|
||||||
invalidate();
|
invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user