mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-07 23:38:54 +01:00
close the launcher at launching an app
This commit is contained in:
parent
6092bd5411
commit
dae7d4eed7
@ -60,6 +60,7 @@ class MainActivity : SimpleActivity(), AddAppDialog.AddLaunchersInterface, Recyc
|
|||||||
val launchIntent = packageManager.getLaunchIntentForPackage(it.pkgName)
|
val launchIntent = packageManager.getLaunchIntentForPackage(it.pkgName)
|
||||||
if (launchIntent != null) {
|
if (launchIntent != null) {
|
||||||
startActivity(launchIntent)
|
startActivity(launchIntent)
|
||||||
|
finish()
|
||||||
} else {
|
} else {
|
||||||
startActivity(viewIntent("https://play.google.com/store/apps/details?id=" + it.pkgName))
|
startActivity(viewIntent("https://play.google.com/store/apps/details?id=" + it.pkgName))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user