| mProgress = mSeekBar.getProgress() + mMin; | mProgress = mSeekBar.getProgress() + mMin; | ||||
| String text = Integer.toString(mProgress); | String text = Integer.toString(mProgress); | ||||
| callChangeListener(text); | callChangeListener(text); | ||||
| SharedPreferences.Editor editor = getSharedPreferences().edit(); | |||||
| editor.putString(getKey(), text); | |||||
| editor.commit(); | |||||
| if (shouldCommit()) { | |||||
| SharedPreferences.Editor editor = getEditor(); | |||||
| editor.putString(getKey(), text); | |||||
| editor.commit(); | |||||
| } | |||||
| break; | break; | ||||
| } | } | ||||
| super.onClick(dialog, which); | super.onClick(dialog, which); |