Skip to content

Commit

Permalink
update: back handler with delete model
Browse files Browse the repository at this point in the history
  • Loading branch information
muedsa committed Nov 30, 2023
1 parent d9e272f commit 7596794
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.muedsa.agetv.ui.features.home.favorites

import androidx.activity.compose.BackHandler
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
Expand Down Expand Up @@ -57,6 +58,10 @@ fun FavoritesScreen(

val focusManager = LocalFocusManager.current

BackHandler(enabled = deleteMode) {
deleteMode = false
}

Column(modifier = Modifier.padding(start = ScreenPaddingLeft)) {
Row(verticalAlignment = Alignment.CenterVertically) {
Text(
Expand Down

0 comments on commit 7596794

Please sign in to comment.