[android] don't check getIntent() for null as it should be non-null now

This commit is contained in:
Torsten Grote
2019-06-10 07:38:24 -03:00
parent 1c4d277771
commit dc2e42e1f2
2 changed files with 2 additions and 2 deletions

View File

@@ -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);
} }

View File

@@ -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());
} }