close the launcher at launching an app

This commit is contained in:
tibbi 2016-12-06 21:20:40 +01:00
parent 6092bd5411
commit dae7d4eed7

View File

@ -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))
}