Update StorageSummaryDonutPreference content

- Set its view as unclickable
- Add content discription on DountView

Fixes: 78172416
Fixes: 78170302
Test: manual open talkback to check voice content
Change-Id: Ic40f88fb27344822bbb14cf62a79d8e030ee16ac
This commit is contained in:
Tony Huang
2018-04-23 11:30:36 +08:00
parent 6fcce25b72
commit 494a848545
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);