Fix crash when sharing to Tusky while not logged in (#1096)
This commit is contained in:
parent
6430ed02d7
commit
a0b3494c42
1 changed files with 5 additions and 0 deletions
|
@ -119,6 +119,11 @@ public final class MainActivity extends BottomSheetActivity implements ActionBut
|
|||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
if(accountManager.getActiveAccount() == null) {
|
||||
// will be redirected to LoginActivity by BaseActivity
|
||||
return;
|
||||
}
|
||||
|
||||
Intent intent = getIntent();
|
||||
boolean showNotificationTab = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue