Skip to content

Commit

Permalink
app: Remove duplicate haptics
Browse files Browse the repository at this point in the history
  • Loading branch information
YuKongA committed Oct 26, 2024
1 parent b1dd180 commit 3c06c03
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.hapticfeedback.HapticFeedbackType.Companion.LongPress
import androidx.compose.ui.platform.LocalHapticFeedback
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.unit.DpSize
import androidx.compose.ui.unit.dp
Expand Down Expand Up @@ -63,7 +61,6 @@ fun PlatformView(
platformCode: MutableState<String>
) {
val platform = Data().platformNames
val hapticFeedback = LocalHapticFeedback.current

Column {
Text(
Expand All @@ -80,7 +77,6 @@ fun PlatformView(
checked = (text == selectedOption),
onCheckedChange = {
onOptionSelected(text)
hapticFeedback.performHapticFeedback(LongPress)
platformCode.value = Data().platformCode(text)
}
)
Expand All @@ -94,7 +90,6 @@ fun CornerView(
cornerCode: MutableState<String>
) {
val corner = Data().cornerNames
val hapticFeedback = LocalHapticFeedback.current

Column {
Text(
Expand All @@ -111,7 +106,6 @@ fun CornerView(
checked = (text == selectedOption),
onCheckedChange = {
onOptionSelected(text)
hapticFeedback.performHapticFeedback(LongPress)
cornerCode.value = Data().cornerCode(text)
}
)
Expand All @@ -125,7 +119,6 @@ fun ResolutionView(
resolutionCode: MutableState<String>
) {
val resolution = Data().resolutionNames
val hapticFeedback = LocalHapticFeedback.current

Column {
Text(
Expand All @@ -143,7 +136,6 @@ fun ResolutionView(
checked = (text == selectedOption),
onCheckedChange = {
onOptionSelected(text)
hapticFeedback.performHapticFeedback(LongPress)
resolutionCode.value = Data().resolutionCode(text)
}
)
Expand Down

0 comments on commit 3c06c03

Please sign in to comment.