From edd409f236312de7f46d417cfdde6a55a7793581 Mon Sep 17 00:00:00 2001 From: arpruss Date: Sun, 15 Sep 2019 20:59:25 -0500 Subject: [PATCH] 1.20 --- app/build.gradle | 4 ++-- .../java/omegacentauri/mobi/simplestopwatch/MyChrono.java | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7da14d6..f875b80 100755 --- a/app/build.gradle +++ b/app/build.gradle @@ -7,8 +7,8 @@ android { applicationId "omegacentauri.mobi.simplestopwatch" minSdkVersion 4 targetSdkVersion 28 - versionCode 19 - versionName "1.19" + versionCode 20 + versionName "1.20" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { diff --git a/app/src/main/java/omegacentauri/mobi/simplestopwatch/MyChrono.java b/app/src/main/java/omegacentauri/mobi/simplestopwatch/MyChrono.java index 14b5305..0d42bbb 100755 --- a/app/src/main/java/omegacentauri/mobi/simplestopwatch/MyChrono.java +++ b/app/src/main/java/omegacentauri/mobi/simplestopwatch/MyChrono.java @@ -358,7 +358,8 @@ public void setAudio(String soundMode) { } shortTone.write(tone, 0, shortLength); AudioManager am = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); - am.setStreamVolume(STREAM, am.getStreamMaxVolume(STREAM), 0); + if (options.getBoolean(Options.PREF_BOOST, false)) + am.setStreamVolume(STREAM, am.getStreamMaxVolume(STREAM), 0); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && boostAudio) { try {