Compare commits
9 Commits
Author | SHA1 | Date | |
---|---|---|---|
7e6c0b90e2 | |||
84c75f6be7 | |||
1b3ca8c8af | |||
f83a8b41e4 | |||
bc433b4185 | |||
34b13473c9 | |||
a642b51532 | |||
a5490b98c7 | |||
140350012b |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -33,3 +33,5 @@ google-services.json
|
|||||||
# Android Profiling
|
# Android Profiling
|
||||||
*.hprof
|
*.hprof
|
||||||
|
|
||||||
|
# Release Files
|
||||||
|
app/release/*
|
||||||
|
@@ -5,8 +5,8 @@ Timer which loops over the specified interval, playing your default notification
|
|||||||
## Update Notes
|
## Update Notes
|
||||||
|
|
||||||
### 2025-07-11
|
### 2025-07-11
|
||||||
(This article)[https://sijus.medium.com/resurrecting-a-5-year-old-android-app-a-developers-journey-59d8f5689e5b]
|
This article was very helpful in getting this app updated from SDK 25 to 36.
|
||||||
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
|
## Licenses
|
||||||
Chime sound byte came free from here:
|
Chime sound byte came free from here:
|
||||||
|
@@ -7,8 +7,8 @@ android {
|
|||||||
applicationId "com.hyperling.apps.infinitetimer"
|
applicationId "com.hyperling.apps.infinitetimer"
|
||||||
minSdkVersion 14
|
minSdkVersion 14
|
||||||
targetSdkVersion 36
|
targetSdkVersion 36
|
||||||
versionCode 8
|
versionCode 9
|
||||||
versionName "1.1.0"
|
versionName "1.1.1"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
@@ -219,8 +219,6 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
tvSeekBar = findViewById(R.id.tvSeekbar);
|
tvSeekBar = findViewById(R.id.tvSeekbar);
|
||||||
|
|
||||||
syncVolume();
|
|
||||||
|
|
||||||
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onProgressChanged(SeekBar seekBar, int i, boolean b) {
|
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");
|
if (DEBUG) Log.d(tag, "Finished");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -697,9 +692,11 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
if (DEBUG) Log.d(tag, "Starting");
|
if (DEBUG) Log.d(tag, "Starting");
|
||||||
|
|
||||||
int currVolume = audioManager.getStreamVolume(AudioManager.STREAM_MUSIC);
|
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);
|
tvSeekBar.setText(volume);
|
||||||
|
|
||||||
if (DEBUG) Log.d(tag, "Finished");
|
if (DEBUG) Log.d(tag, "Finished");
|
||||||
@@ -738,6 +735,7 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
sharedPreferences.edit().putBoolean(keyServiceRunning, false).apply();
|
sharedPreferences.edit().putBoolean(keyServiceRunning, false).apply();
|
||||||
|
|
||||||
recoverScreen();
|
recoverScreen();
|
||||||
|
syncVolume();
|
||||||
|
|
||||||
if (DEBUG) Log.d(tag, "Finished");
|
if (DEBUG) Log.d(tag, "Finished");
|
||||||
}
|
}
|
||||||
|
@@ -36,5 +36,5 @@
|
|||||||
<string name="action_enable_ads">Enable Ads</string>
|
<string name="action_enable_ads">Enable Ads</string>
|
||||||
<string name="action_exit">Exit</string>
|
<string name="action_exit">Exit</string>
|
||||||
|
|
||||||
<string name="tvSeekBar">Media Volume: </string>
|
<string name="tvSeekBar">Media Volume:</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Reference in New Issue
Block a user