@Override public void onResume() { super.onResume(); if (!(this instanceof Search)) { // necessary b/c no guarantee Search.onStop will be called before MessageList.onResume // when returning from search results Search.setActive(false); } if (mAccount != null && !mAccount.isAvailable(this)) { onAccountUnavailable(); return; } StorageManager.getInstance(getApplication()).addListener(mStorageListener); }