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,7 +94,7 @@ public class MainActivity extends ReactActivity
|
|||
|
||||
@Override
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue