Skip to content

Commit 77085b5

Browse files
andi@tryb.deandi@tryb.de
authored andcommitted
update zoom to activity and prepare release
1 parent 6c35cb1 commit 77085b5

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ android {
1111
applicationId "org.blitzortung.android.app"
1212
minSdkVersion 15
1313
targetSdkVersion 29
14-
versionCode 251
14+
versionCode 252
1515
versionName '2.0.19'
1616
multiDexEnabled true
1717
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

app/src/main/java/org/blitzortung/android/app/Main.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,8 @@ class Main : FragmentActivity(), OnSharedPreferenceChangeListener {
261261
val currentLocation = locationHandler.location
262262
if (currentLocation != null) {
263263
val diameter = if (!keepZoomOnGotoOwnLocation) {
264-
val radius = determineTargetZoomRadius(alertHandler)
265-
266-
//Calculate the new diameter
267-
1.5f * 2f * radius
264+
// Calculate the new diameter
265+
1.5f * determineTargetZoomRadius(alertHandler)
268266
} else {
269267
//User doesn't want to zoom, so we do not provide a diameter
270268
null

app/src/test/java/org/blitzortung/android/app/components/VersionComponentTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class VersionComponentTest {
6161
}
6262

6363
companion object {
64-
val CURRENT_VERSION_CODE = 251
64+
val CURRENT_VERSION_CODE = 252
6565
val CURRENT_VERSION_NAME = "2.0.19"
6666
}
6767
}

0 commit comments

Comments
 (0)