9 Commits
1.1.0 ... main

5 changed files with 12 additions and 12 deletions

2
.gitignore vendored
View File

@@ -33,3 +33,5 @@ google-services.json
# Android Profiling
*.hprof
# Release Files
app/release/*

View File

@@ -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:

View File

@@ -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 {

View File

@@ -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);
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");
}