mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-06-05 21:49:21 +02:00
launch the clicked app
This commit is contained in:
@ -19,7 +19,10 @@ class MainActivity : SimpleActivity() {
|
||||
setContentView(R.layout.activity_main)
|
||||
dbHelper = DbHelper(applicationContext)
|
||||
launchers_holder.adapter = MyCursorAdapter(applicationContext, dbHelper.getLaunchers()) {
|
||||
|
||||
val launchIntent = packageManager.getLaunchIntentForPackage(it.pkgName)
|
||||
if (launchIntent != null) {
|
||||
startActivity(launchIntent)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user