Revert "Replace dynamic summary text for SettingPref"
This reverts commit 03dfa50996
.
Change-Id: I1f7188b35ad657f3d9721bab3bbdec697d3c1ae3
Bug: 36101902
Fixes: 38352100
This commit is contained in:
@@ -121,19 +121,6 @@ public class SettingPref {
|
||||
if (mTwoState != null) {
|
||||
mTwoState.setChecked(val != 0);
|
||||
} else if (mDropDown != null) {
|
||||
if (mValues != null) {
|
||||
int index = 0;
|
||||
for (int len = mValues.length; index < len; index++) {
|
||||
if (mValues[index] == val) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (index < mValues.length) {
|
||||
CharSequence entry = mDropDown.getEntries()[index];
|
||||
mDropDown.setSummary(entry);
|
||||
}
|
||||
}
|
||||
mDropDown.setValue(Integer.toString(val));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user