Created
December 20, 2019 08:47
-
-
Save mumayank/ef17d71c31c29733ee53b88adb009a37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun openOlaApp(context: Context?) { | |
if (context == null) { | |
return | |
} | |
val launchIntent = | |
context.packageManager.getLaunchIntentForPackage(Constants.OLA_APP_PACKAGE_NAME) | |
launchIntent?.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK) | |
launchIntent?.let { context.startActivity(it) } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment