Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Klagarge committed Feb 9, 2022
1 parent 26c5e22 commit 9835ebb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ android {

minSdkVersion 21
targetSdkVersion 31
versionCode 28
versionName "1.4.3"
versionCode 29
versionName "1.4.4"
signingConfig signingConfigs.release
}

Expand Down
Binary file modified app/release/app-release.aab
Binary file not shown.
10 changes: 5 additions & 5 deletions app/src/main/java/dickclock/team/snake/SettingsFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,11 @@ private void updateUI() {
return;
}

// Update User part
mHasBorder.setChecked(Settings.hasBorder);
mHasGrid.setChecked(Settings.hasGrid);
mSensitivity.setProgress(mSensitivity.getMax() - (Settings.sensitivity - 5));

// Update Color part
mBorderTextView.setVisibility(mHasBorder.isChecked() ? View.VISIBLE : View.GONE);
mBorderSeekBar.setVisibility(mHasBorder.isChecked() ? View.VISIBLE : View.GONE);
Expand All @@ -161,11 +166,6 @@ private void updateUI() {
mBackgroundSeekBar.setBackgroundColor(Settings.background);
mBackgroundSeekBar.setProgress(getHue(Settings.background));

// Update User part
mHasBorder.setChecked(Settings.hasBorder);
mHasGrid.setChecked(Settings.hasGrid);
mSensitivity.setProgress(mSensitivity.getMax() - (Settings.sensitivity - 5));

// Update Fun part
if (Settings.fruitsChance != Settings.fruitsChanceBase) {
mChanceForBanana.setText(String.valueOf(Settings.fruitsChance - Settings.fruitsChanceBase));
Expand Down

0 comments on commit 9835ebb

Please sign in to comment.