mirror of
				https://github.com/SimpleMobileTools/Simple-Launcher.git
				synced 2025-06-05 21:59:15 +02:00 
			
		
		
		
	adding an extra flag at creating our own launcher intent
This commit is contained in:
		| @@ -23,6 +23,7 @@ fun Activity.launchApp(packageName: String, activityName: String) { | ||||
|             addCategory(Intent.CATEGORY_LAUNCHER) | ||||
|             `package` = packageName | ||||
|             component = ComponentName.unflattenFromString("$packageName/$activityName") | ||||
|             addFlags(Intent.FLAG_RECEIVER_FOREGROUND) | ||||
|             startActivity(this) | ||||
|         } | ||||
|     } catch (e: ActivityNotFoundException) { | ||||
|   | ||||
| @@ -247,6 +247,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment | ||||
|             -1, | ||||
|             appWidget.appPackageName, | ||||
|             "", | ||||
|             "", | ||||
|             type, | ||||
|             appWidget.className, | ||||
|             -1, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user