diff --git a/app/build.gradle b/app/build.gradle
index 9f13749..28f5556 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -3,7 +3,7 @@ plugins {
}
android {
- compileSdkVersion 30
+ compileSdkVersion 31
buildToolsVersion "30.0.3"
apply plugin: "androidx.navigation.safeargs"
@@ -11,9 +11,9 @@ android {
defaultConfig {
applicationId "cc.pogoda.mobile.meteosystem"
minSdkVersion 24
- targetSdkVersion 30
- versionCode 17
- versionName "0.17-beta"
+ targetSdkVersion 31
+ versionCode 18
+ versionName "0.18-beta"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index c671ae6..6e7ffef 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -32,25 +32,45 @@
android:exported="true" />
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ android:launchMode="singleTop"
+ android:exported="true" >
-
-
+
+
diff --git a/app/src/main/java/cc/pogoda/mobile/meteosystem/Main.java b/app/src/main/java/cc/pogoda/mobile/meteosystem/Main.java
index 2e062cf..1d8d0f1 100644
--- a/app/src/main/java/cc/pogoda/mobile/meteosystem/Main.java
+++ b/app/src/main/java/cc/pogoda/mobile/meteosystem/Main.java
@@ -147,7 +147,7 @@ public class Main extends Application {
favsSummaryUpdater = new FavouritesStationSummaryUpdaterThread(hashmapFavStationSystemNameToSummary, hashmapAllStationSystemNameToAvailParameters);
- favsSummaryUpdater.start(100);
+ favsSummaryUpdater.start(50);
// if (AppConfiguration.locale != null && !AppConfiguration.locale.equals("default") ) {
// Logger.debug("[Main][onCreate][AppConfiguration.locale = " + AppConfiguration.locale + "]");
diff --git a/app/src/main/java/cc/pogoda/mobile/meteosystem/config/ConstAppConfiguration.java b/app/src/main/java/cc/pogoda/mobile/meteosystem/config/ConstAppConfiguration.java
index 648d847..8240a22 100644
--- a/app/src/main/java/cc/pogoda/mobile/meteosystem/config/ConstAppConfiguration.java
+++ b/app/src/main/java/cc/pogoda/mobile/meteosystem/config/ConstAppConfiguration.java
@@ -2,10 +2,14 @@ package cc.pogoda.mobile.meteosystem.config;
public class ConstAppConfiguration {
- public static final int REUPDATE_VALUES_ON_ACTIVITY_ON_FAIL = 3000;
+ public static final int REUPDATE_VALUES_ON_ACTIVITY_ON_FAIL = 1000;
public static final int NORMAL_UPDATE_VALUES_ON_ACTIVITY = 60000;
+ /**
+ * This is an interval how often labels on Favourites List (with station
+ * summary) are updated.
+ */
public static final int DETAILS_ON_FAVS_LIST_REUPDATE = 500;
public static final int DETAILS_ON_FAVS_LIST_DEFAULT_UPDATE = 45000;