File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
java/com/github/droidworksstudio/launcher/helper Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 39
39
android : supportsRtl =" true"
40
40
android : theme =" @style/Theme.Launcher"
41
41
android : enableOnBackInvokedCallback =" true"
42
+ android : launchMode =" singleTop"
43
+ android : clearTaskOnLaunch =" true"
42
44
tools : targetApi =" tiramisu" >
43
45
<activity
44
46
android : name =" .ui.activities.LauncherActivity"
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ object AppReloader {
11
11
val intent = packageManager.getLaunchIntentForPackage(context.packageName)
12
12
val componentName = intent?.component
13
13
val mainIntent = Intent .makeRestartActivityTask(componentName)
14
+ mainIntent.setFlags(Intent .FLAG_ACTIVITY_CLEAR_TOP or Intent .FLAG_ACTIVITY_SINGLE_TOP )
14
15
15
16
// Delay the restart slightly to ensure all current activities are finished
16
17
Handler (Looper .getMainLooper()).post {
You can’t perform that action at this time.
0 commit comments