mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
close the launcher at launching an app
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user