Compare commits

...

10 Commits

Author SHA1 Message Date
7e6c0b90e2 Merge pull request 'Volume Seekbar Fixes' (#3) from dev into main
Reviewed-on: #3
2025-08-17 08:49:15 -07:00
84c75f6be7 No need to call something in onCreate which is called in onResume. 2025-08-17 08:41:29 -07:00
1b3ca8c8af Only change the seekbar if it differs so that the volume sidebar does not show up on every open. 2025-08-17 08:40:56 -07:00
f83a8b41e4 Ensure volume bar is accurate if the app is minimized and the volume is modified before the app is reopened. 2025-08-17 08:35:13 -07:00
bc433b4185 Correctly add a space between "Volume" and the status. 2025-08-17 08:33:00 -07:00
34b13473c9 Show the article URL for proper accreditation. 2025-07-19 15:54:00 -07:00
a642b51532 Increment version for future development. 2025-07-19 15:52:02 -07:00
a5490b98c7 Hide release files (APKs and JSON) from Git. 2025-07-19 15:51:05 -07:00
140350012b Fix URL. 2025-07-19 15:50:40 -07:00
d610bfd40b Merge pull request 'v1.1.0 - Update Targeted Version + Enhancements + Bugfixes' (#1) from dev into main
# Enhancements
- Target Android 36 and update theme so that the app may be used properly on current and future versions of Android.
- Volume slider for easy viewing and changing of current settings.
- Add a default sound for devices lacking notification sounds.
- Add a rounded icon.

# Bugfixes
- App opening with Start already pressed.
- Large intervals (hundreds of hours) causing odd behavior.
2025-07-19 15:25:33 -07:00
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);
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");
}

View File

@@ -36,5 +36,5 @@
<string name="action_enable_ads">Enable Ads</string>
<string name="action_exit">Exit</string>
<string name="tvSeekBar">Media Volume: </string>
<string name="tvSeekBar">Media Volume:</string>
</resources>