manager: change webui TaskDescription title

This commit is contained in:
Rifat Azad
2025-05-25 10:49:56 +06:00
parent 44ad960da7
commit 39617497ca
2 changed files with 4 additions and 4 deletions

View File

@@ -41,10 +41,10 @@ class WebUIActivity : ComponentActivity() {
val name = intent.getStringExtra("name")!! val name = intent.getStringExtra("name")!!
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
setTaskDescription(ActivityManager.TaskDescription("KernelSU - $name")) setTaskDescription(ActivityManager.TaskDescription("KernelSU Next - $name"))
} else { } else {
val taskDescription = val taskDescription =
ActivityManager.TaskDescription.Builder().setLabel("KernelSU - $name").build() ActivityManager.TaskDescription.Builder().setLabel("KernelSU Next - $name").build()
setTaskDescription(taskDescription) setTaskDescription(taskDescription)
} }

View File

@@ -59,10 +59,10 @@ class WebUIXActivity : ComponentActivity() {
val name = intent.getStringExtra("name")!! val name = intent.getStringExtra("name")!!
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) { if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
setTaskDescription(ActivityManager.TaskDescription("KernelSU - $name")) setTaskDescription(ActivityManager.TaskDescription("KernelSU Next - $name"))
} else { } else {
val taskDescription = val taskDescription =
ActivityManager.TaskDescription.Builder().setLabel("KernelSU - $name").build() ActivityManager.TaskDescription.Builder().setLabel("KernelSU Next - $name").build()
setTaskDescription(taskDescription) setTaskDescription(taskDescription)
} }