mirror of https://github.com/M66B/FairEmail.git
Skip adding widgets if should authenticate
This commit is contained in:
parent
618be15466
commit
d8b1f2d916
|
@ -378,12 +378,18 @@ abstract class ActivityBase extends AppCompatActivity implements SharedPreferenc
|
|||
finishAffinity();
|
||||
|
||||
if (auth) {
|
||||
Intent intent = getIntent();
|
||||
processStreams(intent);
|
||||
Intent main = new Intent(this, ActivityMain.class)
|
||||
.putExtra("intent", intent);
|
||||
main.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
startActivity(main);
|
||||
if (this instanceof ActivityWidget ||
|
||||
this instanceof ActivityWidgetSync ||
|
||||
this instanceof ActivityWidgetUnified) {
|
||||
Toast.makeText(this, R.string.title_notification_redacted, Toast.LENGTH_LONG).show();
|
||||
} else {
|
||||
Intent intent = getIntent();
|
||||
processStreams(intent);
|
||||
Intent main = new Intent(this, ActivityMain.class)
|
||||
.putExtra("intent", intent);
|
||||
main.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
|
||||
startActivity(main);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue