mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-02-01 01:46:44 +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)
|
||||
if (launchIntent != null) {
|
||||
startActivity(launchIntent)
|
||||
finish()
|
||||
} else {
|
||||
startActivity(viewIntent("https://play.google.com/store/apps/details?id=" + it.pkgName))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user