forked from organicmaps/organicmaps
Merge pull request #4557 from alexzatsepin/MAPSME-2793-start-uber-as-new-task
[android] Added FLAG_NEW_TASK to uber launch
This commit is contained in:
commit
a34bbc79f7
1 changed files with 1 additions and 0 deletions
|
@ -408,6 +408,7 @@ public class Utils
|
|||
PackageManager pm = context.getPackageManager();
|
||||
pm.getPackageInfo("com.ubercab", PackageManager.GET_ACTIVITIES);
|
||||
Intent intent = new Intent(Intent.ACTION_VIEW);
|
||||
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
intent.setData(Uri.parse(links.getDeepLink()));
|
||||
context.startActivity(intent);
|
||||
} catch (PackageManager.NameNotFoundException e)
|
||||
|
|
Loading…
Add table
Reference in a new issue