mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
[android] don't check getIntent() for null as it should be non-null now
This commit is contained in:
@@ -57,7 +57,7 @@ public class AddContactActivity extends BriarActivity implements
|
||||
});
|
||||
|
||||
Intent i = getIntent();
|
||||
if (state == null && i != null) {
|
||||
if (state == null) {
|
||||
// do not react to the intent again when recreating the activity
|
||||
onNewIntent(i);
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ public class NavDrawerActivity extends BriarActivity implements
|
||||
startFragment(ContactListFragment.newInstance(),
|
||||
R.id.nav_btn_contacts);
|
||||
}
|
||||
if (state == null && getIntent() != null) {
|
||||
if (state == null) {
|
||||
// do not call this again when there's existing state
|
||||
onNewIntent(getIntent());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user