Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e673aa41 authored by SeongJae Park's avatar SeongJae Park
Browse files

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: default avatarSeongJae Park <sj38.park@gmail.com>
parent a299862d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);