mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 12:19:54 +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();
|
Intent i = getIntent();
|
||||||
if (state == null && i != null) {
|
if (state == null) {
|
||||||
// do not react to the intent again when recreating the activity
|
// do not react to the intent again when recreating the activity
|
||||||
onNewIntent(i);
|
onNewIntent(i);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ public class NavDrawerActivity extends BriarActivity implements
|
|||||||
startFragment(ContactListFragment.newInstance(),
|
startFragment(ContactListFragment.newInstance(),
|
||||||
R.id.nav_btn_contacts);
|
R.id.nav_btn_contacts);
|
||||||
}
|
}
|
||||||
if (state == null && getIntent() != null) {
|
if (state == null) {
|
||||||
// do not call this again when there's existing state
|
// do not call this again when there's existing state
|
||||||
onNewIntent(getIntent());
|
onNewIntent(getIntent());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user