From e673aa419801a465571122c203219f3df42f8a0a Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Fri, 11 Oct 2013 17:05:13 +0900 Subject: 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 --- core/java/android/widget/CompoundButton.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'core') diff --git a/core/java/android/widget/CompoundButton.java b/core/java/android/widget/CompoundButton.java index 452ad1b..538f907 100644 --- a/core/java/android/widget/CompoundButton.java +++ b/core/java/android/widget/CompoundButton.java @@ -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); -- cgit v1.1