diff --git a/.gitignore b/.gitignore index a8b0d1d..bdb1455 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,5 @@ google-services.json # Android Profiling *.hprof +# Release Files +app/release/* diff --git a/README.md b/README.md index 7a9415e..1a11a97 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ Timer which loops over the specified interval, playing your default notification ## Update Notes ### 2025-07-11 -(This article)[https://sijus.medium.com/resurrecting-a-5-year-old-android-app-a-developers-journey-59d8f5689e5b] - was very helpful in getting this app updated from SDK 25 to 36. +This article was very helpful in getting this app updated from SDK 25 to 36. + - https://sijus.medium.com/resurrecting-a-5-year-old-android-app-a-developers-journey-59d8f5689e5b ## Licenses Chime sound byte came free from here: diff --git a/app/build.gradle b/app/build.gradle index e5b53a3..4744a7c 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "com.hyperling.apps.infinitetimer" minSdkVersion 14 targetSdkVersion 36 - versionCode 8 - versionName "1.1.0" + versionCode 9 + versionName "1.1.1" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java b/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java index 05f5547..e4fd2fc 100755 --- a/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java +++ b/app/src/main/java/com/hyperling/apps/infinitetimer/MainActivity.java @@ -219,8 +219,6 @@ public class MainActivity extends AppCompatActivity { tvSeekBar = findViewById(R.id.tvSeekbar); - syncVolume(); - seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int i, boolean b) { @@ -239,9 +237,6 @@ public class MainActivity extends AppCompatActivity { } }); - - recoverScreen(); - if (DEBUG) Log.d(tag, "Finished"); } @@ -697,9 +692,11 @@ public class MainActivity extends AppCompatActivity { if (DEBUG) Log.d(tag, "Starting"); int currVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC); - seekBar.setProgress(currVolume); + if (currVolume != seekBar.getProgress()) { + seekBar.setProgress(currVolume); + } - String volume = getString(R.string.tvSeekBar) + seekBar.getProgress() + "/" + seekBar.getMax(); + String volume = getString(R.string.tvSeekBar) + " " + seekBar.getProgress() + "/" + seekBar.getMax(); tvSeekBar.setText(volume); if (DEBUG) Log.d(tag, "Finished"); @@ -738,6 +735,7 @@ public class MainActivity extends AppCompatActivity { sharedPreferences.edit().putBoolean(keyServiceRunning, false).apply(); recoverScreen(); + syncVolume(); if (DEBUG) Log.d(tag, "Finished"); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5df19ae..c905abf 100755 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -36,5 +36,5 @@ Enable Ads Exit - Media Volume: + Media Volume: