|
@@ -1,19 +0,0 @@
|
1
|
|
-package com.reactnativenavigation.utils;
|
2
|
|
-
|
3
|
|
-import android.content.Intent;
|
4
|
|
-
|
5
|
|
-import com.reactnativenavigation.NavigationApplication;
|
6
|
|
-
|
7
|
|
-public class IntentUtils {
|
8
|
|
- public static Intent getLauncherIntent() {
|
9
|
|
- Intent intent = NavigationApplication.instance.getPackageManager().getLaunchIntentForPackage(NavigationApplication.instance.getPackageName());
|
10
|
|
- if (intent == null)
|
11
|
|
- intent = new Intent();
|
12
|
|
- intent.setPackage(null);
|
13
|
|
- intent.setFlags(0);
|
14
|
|
- intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
15
|
|
- intent.setAction(Intent.ACTION_MAIN);
|
16
|
|
- intent.addCategory(Intent.CATEGORY_LAUNCHER);
|
17
|
|
- return intent;
|
18
|
|
- }
|
19
|
|
-}
|