Skip to content

Commit

Permalink
fix #88 by using structural equals instead of referential equals
Browse files Browse the repository at this point in the history
  • Loading branch information
wuan committed Apr 16, 2016
1 parent 49a1f3d commit aa478c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ android {
applicationId "org.blitzortung.android.app"
minSdkVersion 8
targetSdkVersion 23
versionCode 167
versionName "1.4.6"
versionCode 168
versionName "1.4.7"
multiDexEnabled true
}
buildTypes {
Expand Down
4 changes: 3 additions & 1 deletion app/src/main/java/org/blitzortung/android/app/Preferences.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class Preferences : PreferenceActivity(), OnSharedPreferenceChangeListener {
startActivity(Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS));
}
}

else -> {}
}
}

Expand All @@ -87,7 +89,7 @@ class Preferences : PreferenceActivity(), OnSharedPreferenceChangeListener {

private fun configureLocationProviderPreferences(sharedPreferences: SharedPreferences) : String {
val locationProvider = sharedPreferences.get(PreferenceKey.LOCATION_MODE, LocationManager.NETWORK_PROVIDER)
enableManualLocationMode(locationProvider === LocationHandler.MANUAL_PROVIDER)
enableManualLocationMode(locationProvider == LocationHandler.MANUAL_PROVIDER)

return locationProvider
}
Expand Down

0 comments on commit aa478c1

Please sign in to comment.