Dont throw error on empty data
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
039ae7be59
commit
e45c8f85f9
|
@ -94,8 +94,8 @@ public class MainActivity extends ReactActivity
|
|||
|
||||
@Override
|
||||
public void onNewIntent(final Intent intent) {
|
||||
if (intent.getData().getScheme().startsWith("app-settings")) {
|
||||
startActivity(createNotificationSettingsIntent());
|
||||
if (intent.getDataString() != null && intent.getData().getScheme().startsWith("app-settings")) {
|
||||
startActivity(createNotificationSettingsIntent());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue