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
|
@Override
|
||||||
public void onNewIntent(final Intent intent) {
|
public void onNewIntent(final Intent intent) {
|
||||||
if (intent.getData().getScheme().startsWith("app-settings")) {
|
if (intent.getDataString() != null && intent.getData().getScheme().startsWith("app-settings")) {
|
||||||
startActivity(createNotificationSettingsIntent());
|
startActivity(createNotificationSettingsIntent());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue