diff --git a/app/src/main/java/com/github/libretube/ThemeChanger.kt b/app/src/main/java/com/github/libretube/ThemeChanger.kt index d99b134d8..3c1cd115d 100644 --- a/app/src/main/java/com/github/libretube/ThemeChanger.kt +++ b/app/src/main/java/com/github/libretube/ThemeChanger.kt @@ -79,6 +79,6 @@ fun changeIcon(context: Context, newLogoActivityAlias: String) { fun restartMainActivity(context: Context) { val pm: PackageManager = context.packageManager val intent = pm.getLaunchIntentForPackage(context.packageName) - intent?.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP) + intent?.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK context.startActivity(intent) }