Implement SeekBarPreference.onGetDefaultValue
Bug: 5036325 Change-Id: I1db0ed3809b862a547e5fda40027852f8b46aa38
This commit is contained in:
@@ -76,6 +76,11 @@ public class SeekBarPreference extends Preference
|
||||
: (Integer) defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Object onGetDefaultValue(TypedArray a, int index) {
|
||||
return a.getInt(index, 0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onKey(View v, int keyCode, KeyEvent event) {
|
||||
if (event.getAction() != KeyEvent.ACTION_UP) {
|
||||
|
||||
Reference in New Issue
Block a user