Merge branch 'readonly-p4-donut' into donut
This commit is contained in:
commit
bf85aa4a81
@ -180,6 +180,8 @@ public class Accounts extends ListActivity implements OnItemClickListener, OnCli
|
|||||||
mSelectedContextAccount.getStoreUri(),
|
mSelectedContextAccount.getStoreUri(),
|
||||||
getApplication(),
|
getApplication(),
|
||||||
localStore.getPersistentCallbacks()).delete();
|
localStore.getPersistentCallbacks()).delete();
|
||||||
|
// Remove the Store instance from cache.
|
||||||
|
Store.removeInstance(mSelectedContextAccount.getStoreUri());
|
||||||
// If no error, then delete LocalStore
|
// If no error, then delete LocalStore
|
||||||
localStore.delete();
|
localStore.delete();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
@ -185,6 +185,17 @@ public abstract class Store {
|
|||||||
|
|
||||||
return store;
|
return store;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete an instance of a mail store.
|
||||||
|
*
|
||||||
|
* The store should have been notified already by calling delete(), and the caller should
|
||||||
|
* also take responsibility for deleting the matching LocalStore, etc.
|
||||||
|
* @param storeUri the store to be removed
|
||||||
|
*/
|
||||||
|
public synchronized static void removeInstance(String storeUri) {
|
||||||
|
mStores.remove(storeUri);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get class of SettingActivity for this Store class.
|
* Get class of SettingActivity for this Store class.
|
||||||
|
Loading…
Reference in New Issue
Block a user