mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
commit
ff2e103586
@ -79,6 +79,6 @@ fun changeIcon(context: Context, newLogoActivityAlias: String) {
|
|||||||
fun restartMainActivity(context: Context) {
|
fun restartMainActivity(context: Context) {
|
||||||
val pm: PackageManager = context.packageManager
|
val pm: PackageManager = context.packageManager
|
||||||
val intent = pm.getLaunchIntentForPackage(context.packageName)
|
val intent = pm.getLaunchIntentForPackage(context.packageName)
|
||||||
intent?.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP)
|
intent?.flags = Intent.FLAG_ACTIVITY_CLEAR_TASK
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user