diff --git a/README.md b/README.md
index 33b60e8..cdfa14e 100644
--- a/README.md
+++ b/README.md
@@ -52,6 +52,6 @@ If you know the solution to a bug please report it in the corresponding issue an
## Try my other apps
-| RadarWeather | Gas Prices | Smart Eggtimer | Level | hEARtest | GPS Cockpit |
-| ------- | --- | --- |--- | --- | --- |
-| [](https://f-droid.org/packages/org.woheller69.weather/)| [](https://f-droid.org/packages/org.woheller69.spritpreise/) | [](https://f-droid.org/packages/org.woheller69.eggtimer/) | [](https://f-droid.org/packages/org.woheller69.level/) | [](https://f-droid.org/packages/org.woheller69.audiometry/) | [](https://f-droid.org/packages/org.woheller69.gpscockpit/) |
\ No newline at end of file
+| RadarWeather | Gas Prices | Smart Eggtimer | Level | hEARtest | GPS Cockpit | Audio Analyzer |
+| ------- | --- | --- |--- | --- | --- | --- |
+| [](https://f-droid.org/packages/org.woheller69.weather/)| [](https://f-droid.org/packages/org.woheller69.spritpreise/) | [](https://f-droid.org/packages/org.woheller69.eggtimer/) | [](https://f-droid.org/packages/org.woheller69.level/) | [](https://f-droid.org/packages/org.woheller69.audiometry/) | [](https://f-droid.org/packages/org.woheller69.gpscockpit/) | [](https://f-droid.org/packages/org.woheller69.audio_analyzer_for_android/) |
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 21c54c1..9801520 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -15,8 +15,8 @@ android {
// do not increase targetSdkVersion beyond 29, this will make permission requests for GPS much more complex
//noinspection ExpiredTargetSdkVersion
targetSdkVersion 29
- versionCode 54
- versionName "5.4"
+ versionCode 55
+ versionName "5.5"
buildConfigField "String", "DEFAULT_API_KEY", "\"00000000000000000000000000000000\""
buildConfigField "String", "BASE_URL", "\"https://api.openweathermap.org/data/2.5/\""
diff --git a/app/src/main/java/org/woheller69/weather/activities/SettingsActivity.java b/app/src/main/java/org/woheller69/weather/activities/SettingsActivity.java
index 5ad673e..1a8b5b8 100644
--- a/app/src/main/java/org/woheller69/weather/activities/SettingsActivity.java
+++ b/app/src/main/java/org/woheller69/weather/activities/SettingsActivity.java
@@ -32,11 +32,12 @@ protected void onRestart() {
@RequiresApi(api = Build.VERSION_CODES.Q)
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
+ super.onRequestPermissionsResult(requestCode, permissions, grantResults);
if (requestCode == 1) {
if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {
- if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) && (Build.VERSION.SDK_INT>=Build.VERSION_CODES.Q)){
- if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) != PackageManager.PERMISSION_GRANTED){
- ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_BACKGROUND_LOCATION},1);
+ if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) && (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)) {
+ if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) != PackageManager.PERMISSION_GRANTED) {
+ ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_BACKGROUND_LOCATION}, 1);
}
}
}
diff --git a/fastlane/metadata/android/de-DE/changelogs/55.txt b/fastlane/metadata/android/de-DE/changelogs/55.txt
new file mode 100644
index 0000000..b690fdc
--- /dev/null
+++ b/fastlane/metadata/android/de-DE/changelogs/55.txt
@@ -0,0 +1,2 @@
+Aktualisieren der GPS Position direkt in der App (ohne Widget)
+Bugfixes
\ No newline at end of file
diff --git a/fastlane/metadata/android/en-US/changelogs/55.txt b/fastlane/metadata/android/en-US/changelogs/55.txt
new file mode 100644
index 0000000..ca76faf
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/55.txt
@@ -0,0 +1,2 @@
+Added option to update GPS location in app (without widget)
+Bugfixes
\ No newline at end of file