mirror of
				https://github.com/SimpleMobileTools/Simple-Launcher.git
				synced 2025-06-05 21:59:15 +02:00 
			
		
		
		
	launch the selected app on click
This commit is contained in:
		| @@ -99,7 +99,12 @@ class MainActivity : SimpleActivity() { | ||||
|  | ||||
|     private fun setupAdapter(launchers: ArrayList<AppLauncher>) { | ||||
|         LaunchersAdapter(this, launchers, launchers_fastscroller) { | ||||
|  | ||||
|             val launchIntent = packageManager.getLaunchIntentForPackage((it as AppLauncher).packageName) | ||||
|             try { | ||||
|                 startActivity(launchIntent) | ||||
|             } catch (e: Exception) { | ||||
|                 showErrorToast(e) | ||||
|             } | ||||
|         }.apply { | ||||
|             launchers_grid.adapter = this | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user