Skip to content

Commit

Permalink
Raise long term app after disabling
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Apr 29, 2023
1 parent e3de75b commit cb2be70
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit cb2be70

Please sign in to comment.