Fix crash when sharing to Tusky while not logged in (#1096)
This commit is contained in:
parent
fe16e9148c
commit
e3736a0dbc
@ -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 New Issue
Block a user