am 09aae75f
: Fix account list after deleting accounts
* commit '09aae75f4e37c3197c6f8d3f046b15c71534d1f0': Fix account list after deleting accounts
This commit is contained in:
commit
f1f605d316
@ -59,7 +59,6 @@ import java.util.List;
|
|||||||
* DebugFragment
|
* DebugFragment
|
||||||
*
|
*
|
||||||
* TODO: In Account settings in Phone UI, change title
|
* TODO: In Account settings in Phone UI, change title
|
||||||
* TODO: Rework all remaining calls to DB from UI thread
|
|
||||||
* TODO: Delete account - on single-pane view (phone UX) the account list doesn't update properly
|
* TODO: Delete account - on single-pane view (phone UX) the account list doesn't update properly
|
||||||
* TODO: Handle dynamic changes to the account list (exit if necessary). It probably makes
|
* TODO: Handle dynamic changes to the account list (exit if necessary). It probably makes
|
||||||
* sense to use a loader for the accounts list, because it would provide better support for
|
* sense to use a loader for the accounts list, because it would provide better support for
|
||||||
@ -571,7 +570,6 @@ public class AccountSettingsXL extends PreferenceActivity {
|
|||||||
/**
|
/**
|
||||||
* Dispatch to edit incoming settings.
|
* Dispatch to edit incoming settings.
|
||||||
*
|
*
|
||||||
* TODO: Cache the store lookup earlier, in an AsyncTask, to avoid this DB access
|
|
||||||
* TODO: Make things less hardwired
|
* TODO: Make things less hardwired
|
||||||
*/
|
*/
|
||||||
public void onIncomingSettings(Account account) {
|
public void onIncomingSettings(Account account) {
|
||||||
@ -600,7 +598,6 @@ public class AccountSettingsXL extends PreferenceActivity {
|
|||||||
/**
|
/**
|
||||||
* Dispatch to edit outgoing settings.
|
* Dispatch to edit outgoing settings.
|
||||||
*
|
*
|
||||||
* TODO: Cache the store lookup earlier, in an AsyncTask, to avoid this DB access
|
|
||||||
* TODO: Make things less hardwired
|
* TODO: Make things less hardwired
|
||||||
*/
|
*/
|
||||||
public void onOutgoingSettings(Account account) {
|
public void onOutgoingSettings(Account account) {
|
||||||
@ -640,7 +637,7 @@ public class AccountSettingsXL extends PreferenceActivity {
|
|||||||
Header prefsHeader = getAppPreferencesHeader();
|
Header prefsHeader = getAppPreferencesHeader();
|
||||||
this.switchToHeader(prefsHeader.fragment, prefsHeader.fragmentArguments);
|
this.switchToHeader(prefsHeader.fragment, prefsHeader.fragmentArguments);
|
||||||
mDeletingAccountId = account.mId;
|
mDeletingAccountId = account.mId;
|
||||||
invalidateHeaders();
|
updateAccounts();
|
||||||
} else {
|
} else {
|
||||||
// We should only be calling this while showing AccountSettingsFragment,
|
// We should only be calling this while showing AccountSettingsFragment,
|
||||||
// so a finish() should bring us back to headers. No point hiding the deleted account.
|
// so a finish() should bring us back to headers. No point hiding the deleted account.
|
||||||
|
Loading…
Reference in New Issue
Block a user