Skip to content

Commit

Permalink
update zoom to activity and prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed May 15, 2020
1 parent 6c35cb1 commit 77085b5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
applicationId "org.blitzortung.android.app"
minSdkVersion 15
targetSdkVersion 29
versionCode 251
versionCode 252
versionName '2.0.19'
multiDexEnabled true
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down
6 changes: 2 additions & 4 deletions app/src/main/java/org/blitzortung/android/app/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,8 @@ class Main : FragmentActivity(), OnSharedPreferenceChangeListener {
val currentLocation = locationHandler.location
if (currentLocation != null) {
val diameter = if (!keepZoomOnGotoOwnLocation) {
val radius = determineTargetZoomRadius(alertHandler)

//Calculate the new diameter
1.5f * 2f * radius
// Calculate the new diameter
1.5f * determineTargetZoomRadius(alertHandler)
} else {
//User doesn't want to zoom, so we do not provide a diameter
null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class VersionComponentTest {
}

companion object {
val CURRENT_VERSION_CODE = 251
val CURRENT_VERSION_CODE = 252
val CURRENT_VERSION_NAME = "2.0.19"
}
}

0 comments on commit 77085b5

Please sign in to comment.