Skip to content

Commit

Permalink
Enable strong skipping. (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed May 23, 2024
1 parent 9352b93 commit bbf5666
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ android {
namespace 'com.dessalines.thumbkey'
}

composeCompiler {
enableStrongSkippingMode = true
}

dependencies {
// Compose BOM
implementation platform('androidx.compose:compose-bom:2024.05.00')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fun LookAndFeelActivity(
var keyWidthSliderState by remember { mutableStateOf(keyWidthState) }

// Need to coerce key width = null to be the same size as the keyHeight
val nonSquareKeysState = remember { mutableStateOf(settings?.keySize !== (settings?.keyWidth ?: settings?.keySize)) }
val nonSquareKeysState = remember { mutableStateOf(settings?.keySize != (settings?.keyWidth ?: settings?.keySize)) }

var pushupSizeState = (settings?.pushupSize ?: DEFAULT_PUSHUP_SIZE).toFloat()
var pushupSizeSliderState by remember { mutableFloatStateOf(pushupSizeState) }
Expand Down

0 comments on commit bbf5666

Please sign in to comment.