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) |             addCategory(Intent.CATEGORY_LAUNCHER) | ||||||
|             `package` = packageName |             `package` = packageName | ||||||
|             component = ComponentName.unflattenFromString("$packageName/$activityName") |             component = ComponentName.unflattenFromString("$packageName/$activityName") | ||||||
|  |             addFlags(Intent.FLAG_RECEIVER_FOREGROUND) | ||||||
|             startActivity(this) |             startActivity(this) | ||||||
|         } |         } | ||||||
|     } catch (e: ActivityNotFoundException) { |     } catch (e: ActivityNotFoundException) { | ||||||
|   | |||||||
| @@ -247,6 +247,7 @@ class WidgetsFragment(context: Context, attributeSet: AttributeSet) : MyFragment | |||||||
|             -1, |             -1, | ||||||
|             appWidget.appPackageName, |             appWidget.appPackageName, | ||||||
|             "", |             "", | ||||||
|  |             "", | ||||||
|             type, |             type, | ||||||
|             appWidget.className, |             appWidget.className, | ||||||
|             -1, |             -1, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user