Merge "Update StorageSummaryDonutPreference content" into pi-dev am: 070238df13
am: 3ba6c42ab0
Change-Id: Ibb80c748317948ab1b5b62f606c06375ee0c1cc9
This commit is contained in:
@@ -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);
|
||||
|
@@ -206,6 +206,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();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user