Cache account prefs so we don't lose a11y focus

Fixes: 28767151
Change-Id: I876712c42b02bb2efaaa492ad951ad42935ecb32
This commit is contained in:
Jason Monk
2016-05-31 16:18:17 -04:00
committed by Daniel Sandler
parent aa56eef3fd
commit cd66b4a99f
2 changed files with 15 additions and 14 deletions

View File

@@ -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