am ac96f640
: Merge "Check for account before launching welcome screen."
* commit 'ac96f64081ac5d90815be2529dfedba28a90e4b4': Check for account before launching welcome screen.
This commit is contained in:
commit
ec865cad01
@ -1778,7 +1778,7 @@ public class MessageCompose extends Activity implements OnClickListener, OnFocus
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isOpenedFromWidget() || !systemKey) {
|
if ((isOpenedFromWidget() || !systemKey) && (mAccount != null)) {
|
||||||
// Otherwise, need to open the main screen for the appropriate account.
|
// Otherwise, need to open the main screen for the appropriate account.
|
||||||
// Note that mAccount should always be set by the time the action bar is set up.
|
// Note that mAccount should always be set by the time the action bar is set up.
|
||||||
startActivity(Welcome.createOpenAccountInboxIntent(this, mAccount.mId));
|
startActivity(Welcome.createOpenAccountInboxIntent(this, mAccount.mId));
|
||||||
|
Loading…
Reference in New Issue
Block a user