Merge "Update StorageSummaryDonutPreference content" into pi-dev

am: 070238df13

Change-Id: If003dd4abdd28f07acc531c863b950eff69265ff
This commit is contained in:
Tony Huang
2018-04-26 20:01:14 -07:00
committed by android-build-merger
2 changed files with 4 additions and 0 deletions

View File

@@ -71,6 +71,8 @@ public class StorageSummaryDonutPreference extends Preference implements View.On
@Override
public void onBindViewHolder(PreferenceViewHolder view) {
super.onBindViewHolder(view);
view.itemView.setClickable(false);
final DonutView donut = (DonutView) view.findViewById(R.id.donut);
if (donut != null) {
donut.setPercentage(mPercent);

View File

@@ -205,6 +205,8 @@ public class DonutView extends View {
.getDimension(
R.dimen.storage_donut_view_shrunken_label_text_size));
}
setContentDescription(getContext().getString(
R.string.join_many_items_middle, mPercentString, mFullString));
invalidate();
}