From cb2be702fa17a8ba50c1e6e915009a4eb9615cb3 Mon Sep 17 00:00:00 2001 From: voruti <45130096+voruti@users.noreply.github.com> Date: Sun, 30 Apr 2023 00:01:37 +0200 Subject: [PATCH] Raise long term app after disabling --- .../disabledlauncher/ui/screens/LongTermLauncherScreen.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/de/redno/disabledlauncher/ui/screens/LongTermLauncherScreen.kt b/app/src/main/java/de/redno/disabledlauncher/ui/screens/LongTermLauncherScreen.kt index 6a73fc7..73ec555 100644 --- a/app/src/main/java/de/redno/disabledlauncher/ui/screens/LongTermLauncherScreen.kt +++ b/app/src/main/java/de/redno/disabledlauncher/ui/screens/LongTermLauncherScreen.kt @@ -11,7 +11,9 @@ import androidx.compose.ui.res.stringResource import androidx.compose.ui.tooling.preview.Preview import de.redno.disabledlauncher.R import de.redno.disabledlauncher.model.App +import de.redno.disabledlauncher.model.ListType import de.redno.disabledlauncher.service.AppService +import de.redno.disabledlauncher.service.Datasource import de.redno.disabledlauncher.ui.components.AppList import de.redno.disabledlauncher.ui.components.ToolbarComponent import de.redno.disabledlauncher.ui.components.clickedApp @@ -61,6 +63,7 @@ fun LongTermLauncherScreen( // TODO: alternatively only enable app, configurable in settings } else { AppService.disableApp(context, app, true) + Datasource.raisePackage(context, app.packageName, ListType.LONG_TERM) } }, modifier = Modifier.padding(it)