Skip to content

Commit

Permalink
Revert "Add haptic feedback to remove feed button in feed info sheet"
Browse files Browse the repository at this point in the history
This reverts commit a9b8f2f.
  • Loading branch information
msasikanth committed Feb 5, 2024
1 parent 3f4fb72 commit 747362c
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.hapticfeedback.HapticFeedbackType
import androidx.compose.ui.platform.LocalHapticFeedback
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import dev.sasikanth.rss.reader.components.ConfirmFeedDeleteDialog
Expand Down Expand Up @@ -135,13 +133,9 @@ fun FeedInfoBottomSheet(
private fun RemoveFeedButton(feed: Feed, onRemoveFeedClick: () -> Unit) {
Box {
var showConfirmDialog by remember { mutableStateOf(false) }
val hapticFeedback = LocalHapticFeedback.current

TextButton(
onClick = {
hapticFeedback.performHapticFeedback(HapticFeedbackType.LongPress)
showConfirmDialog = true
},
onClick = { showConfirmDialog = true },
contentPadding = PaddingValues(start = 16.dp, top = 16.dp, bottom = 16.dp, end = 24.dp),
shape = MaterialTheme.shapes.large
) {
Expand Down

0 comments on commit 747362c

Please sign in to comment.