CompoundButton: Let text can be changed by config
Because CompoundButton freezes text inside onSaveInstanceState, the text can't be changed automatically after locale of device changed. Bug from such a case reported via url below: https://code.google.com/p/android/issues/detail?id=24013 It would be better to don't freeze text for default case and let users to freeze text if they need manually. Change-Id: I2d6a192b6ff05a95b21487c2362cbc14691c68cf Signed-off-by: SeongJae Park <sj38.park@gmail.com>
This commit is contained in:
@@ -364,8 +364,6 @@ public abstract class CompoundButton extends Button implements Checkable {
|
||||
|
||||
@Override
|
||||
public Parcelable onSaveInstanceState() {
|
||||
// Force our ancestor class to save its state
|
||||
setFreezesText(true);
|
||||
Parcelable superState = super.onSaveInstanceState();
|
||||
|
||||
SavedState ss = new SavedState(superState);
|
||||
|
||||
Reference in New Issue
Block a user