Skip to content

Commit

Permalink
v2.1.6: fix #1 (bug that effects API 23-25, Android 6.0-7.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
warren-bank committed May 2, 2020
1 parent 88fd6ad commit 9a7dc93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void onProviderEnabled(String provider) {

private static String getDirection(Location location) {
float bearing = location.getBearing();
float accuracy = (Build.VERSION.SDK_INT >= 23)
float accuracy = (Build.VERSION.SDK_INT >= 26)
? location.getBearingAccuracyDegrees()
: Float.MIN_VALUE;

Expand Down
4 changes: 2 additions & 2 deletions android-studio-project/constants.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project.ext {
releaseVersionCode = Integer.parseInt("002010511", 10)
releaseVersion = '002.01.05-11API'
releaseVersionCode = Integer.parseInt("002010611", 10)
releaseVersion = '002.01.06-11API'
minSdkVersion = 11
targetSdkVersion = 28
compileSdkVersion = 28
Expand Down

0 comments on commit 9a7dc93

Please sign in to comment.