Merge pull request #322 from Bnyro/master

animation fix
This commit is contained in:
Bnyro 2022-05-27 19:37:48 +02:00 committed by GitHub
commit ff2e103586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}