There was an error while loading. Please reload this page.
1 parent ece8ebf commit ba5f5efCopy full SHA for ba5f5ef
app/src/main/java/com/github/droidworksstudio/launcher/helper/AppReloader.kt
@@ -11,6 +11,7 @@ object AppReloader {
11
val intent = packageManager.getLaunchIntentForPackage(context.packageName)
12
val componentName = intent?.component
13
val mainIntent = Intent.makeRestartActivityTask(componentName)
14
+ mainIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
15
mainIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP or Intent.FLAG_ACTIVITY_SINGLE_TOP)
16
17
// Delay the restart slightly to ensure all current activities are finished
0 commit comments