Merge "Revert "Revert "Revert "Replace dynamic summary text for SettingPref"""" into oc-dev am: b8028f63ec
am: 64736b6ae1
Change-Id: I7267309d17ae503144eb11789888937af6c8a0e1
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