Commit dc2e42e1 authored by Torsten Grote's avatar Torsten Grote

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

parent 1c4d2777
Pipeline #3507 passed with stage
in 9 minutes and 19 seconds
...@@ -57,7 +57,7 @@ public class AddContactActivity extends BriarActivity implements ...@@ -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 ...@@ -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());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment