Cache account prefs so we don't lose a11y focus
Fixes: 28767151 Change-Id: I876712c42b02bb2efaaa492ad951ad42935ecb32
This commit is contained in:
committed by
Daniel Sandler
parent
aa56eef3fd
commit
cd66b4a99f
@@ -51,8 +51,13 @@ public class SyncStateSwitchPreference extends SwitchPreference {
|
||||
|
||||
public SyncStateSwitchPreference(Context context, Account account, String authority) {
|
||||
super(context, null, 0, R.style.SyncSwitchPreference);
|
||||
setup(account, authority);
|
||||
}
|
||||
|
||||
public void setup(Account account, String authority) {
|
||||
mAccount = account;
|
||||
mAuthority = authority;
|
||||
notifyChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user