Skip to content

Commit

Permalink
fix(crash): 多余的触感反馈
Browse files Browse the repository at this point in the history
  • Loading branch information
Super12138 committed Feb 6, 2025
1 parent e44dcb8 commit 9fe2544
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,13 @@ import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.input.nestedscroll.nestedScroll
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.font.FontFamily
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import cn.super12138.todo.R
import cn.super12138.todo.ui.TodoDefaults
import cn.super12138.todo.ui.components.AnimatedExtendedFloatingActionButton
import cn.super12138.todo.utils.VibrationUtils

@OptIn(ExperimentalMaterial3Api::class)
@Composable
Expand All @@ -42,7 +40,6 @@ fun CrashPage(
exitApp: () -> Unit,
modifier: Modifier = Modifier
) {
val view = LocalView.current
val scrollBehavior = TopAppBarDefaults.exitUntilCollapsedScrollBehavior()
val scrollState = rememberScrollState()
val isExpanded by remember {
Expand All @@ -69,10 +66,7 @@ fun CrashPage(
},
floatingActionButton = {
AnimatedExtendedFloatingActionButton(
onClick = {
VibrationUtils.performHapticFeedback(view)
exitApp()
},
onClick = exitApp,
icon = {
Icon(
imageVector = Icons.AutoMirrored.Outlined.ExitToApp,
Expand Down

0 comments on commit 9fe2544

Please sign in to comment.