diff --git a/build.gradle b/build.gradle index 59cfa54..024dddd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ ext { minSdkVersion = 23 targetSdkVersion = 28 - versionCode = 67 + versionCode = 68 versionName = '5.0.1' kotlinyanVersion = '0.3.0' ankoVersion = '0.10.8' diff --git a/mobile/src/main/AndroidManifest.xml b/mobile/src/main/AndroidManifest.xml index 8bb3a68..95bec6e 100644 --- a/mobile/src/main/AndroidManifest.xml +++ b/mobile/src/main/AndroidManifest.xml @@ -62,7 +62,7 @@ + android:theme="@style/AppTheme.BottomAppBar"> @@ -81,7 +81,7 @@ + android:theme="@style/AppTheme.BottomAppBar"> @@ -90,7 +90,7 @@ + android:theme="@style/AppTheme.BottomAppBar"> @@ -117,7 +117,7 @@ + android:theme="@style/AppTheme.BottomAppBar"> @@ -126,7 +126,7 @@ + android:theme="@style/AppTheme.BottomBar.Grey"> @@ -145,7 +145,7 @@ + android:theme="@style/AppTheme.BottomAppBar"> diff --git a/mobile/src/main/kotlin/info/papdt/express/helper/ui/HomeActivity.kt b/mobile/src/main/kotlin/info/papdt/express/helper/ui/HomeActivity.kt index 41afedb..fcb3ff7 100644 --- a/mobile/src/main/kotlin/info/papdt/express/helper/ui/HomeActivity.kt +++ b/mobile/src/main/kotlin/info/papdt/express/helper/ui/HomeActivity.kt @@ -193,6 +193,15 @@ class HomeActivity : AbsActivity(), OnRefreshListener { }, action = ChooseCategoryDialog.ACTION_CHOOSE_CATEGORY) } + override fun onStop() { + super.onStop() + try { + packageDatabase.save() + } catch (e: Exception) { + e.printStackTrace() + } + } + private fun showBottomSheetBackground() { bottomSheetBackground.makeVisible() } diff --git a/mobile/src/main/res/layout/activity_details.xml b/mobile/src/main/res/layout/activity_details.xml index f80decc..b8fbbc6 100644 --- a/mobile/src/main/res/layout/activity_details.xml +++ b/mobile/src/main/res/layout/activity_details.xml @@ -58,7 +58,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/bottomBarColor" + android:background="?android:attr/colorPrimary" android:elevation="8dp" app:popupTheme="@style/Toolbar.Popup" app:theme="@style/ThemeOverlay.AppCompat.Dark" /> diff --git a/mobile/src/main/res/layout/activity_home.xml b/mobile/src/main/res/layout/activity_home.xml index a4828b9..027d26e 100644 --- a/mobile/src/main/res/layout/activity_home.xml +++ b/mobile/src/main/res/layout/activity_home.xml @@ -22,7 +22,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:theme="@style/ThemeOverlay.AppCompat.ActionBar" - android:background="?android:colorPrimary"> + android:background="?android:windowBackground"> @@ -81,7 +82,7 @@ android:id="@+id/bottom_bar" android:layout_width="match_parent" android:layout_height="?android:attr/actionBarSize" - android:background="?attr/bottomBarColor" + android:background="?android:attr/colorPrimary" android:orientation="horizontal" android:layout_gravity="bottom" android:elevation="10dp" diff --git a/mobile/src/main/res/layout/activity_manage_categories.xml b/mobile/src/main/res/layout/activity_manage_categories.xml index e18f9df..7d33218 100644 --- a/mobile/src/main/res/layout/activity_manage_categories.xml +++ b/mobile/src/main/res/layout/activity_manage_categories.xml @@ -66,7 +66,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/bottomBarColor" + android:background="?android:attr/colorPrimary" android:elevation="@dimen/app_bar_elevation" app:theme="@style/Toolbar.Dark" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" /> diff --git a/mobile/src/main/res/layout/activity_scanner.xml b/mobile/src/main/res/layout/activity_scanner.xml index e144a7f..8c02c6e 100644 --- a/mobile/src/main/res/layout/activity_scanner.xml +++ b/mobile/src/main/res/layout/activity_scanner.xml @@ -23,7 +23,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/bottomBarColor" + android:background="?android:attr/colorPrimary" android:elevation="@dimen/app_bar_elevation" android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> diff --git a/mobile/src/main/res/layout/activity_settings.xml b/mobile/src/main/res/layout/activity_settings.xml index 0bc3464..cccd154 100644 --- a/mobile/src/main/res/layout/activity_settings.xml +++ b/mobile/src/main/res/layout/activity_settings.xml @@ -25,7 +25,7 @@ android:id="@+id/toolbar" android:layout_width="match_parent" android:layout_height="?attr/actionBarSize" - android:background="?attr/bottomBarColor" + android:background="?android:attr/colorPrimary" android:elevation="@dimen/app_bar_elevation" app:popupTheme="@style/ThemeOverlay.AppCompat.Light" app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar" /> diff --git a/mobile/src/main/res/values-night/styles.xml b/mobile/src/main/res/values-night/styles.xml index 9881737..7d8cf0f 100644 --- a/mobile/src/main/res/values-night/styles.xml +++ b/mobile/src/main/res/values-night/styles.xml @@ -1,14 +1,13 @@ - diff --git a/mobile/src/main/res/values-v27/styles.xml b/mobile/src/main/res/values-v27/styles.xml new file mode 100644 index 0000000..92b3737 --- /dev/null +++ b/mobile/src/main/res/values-v27/styles.xml @@ -0,0 +1,14 @@ + + + + + + \ No newline at end of file diff --git a/mobile/src/main/res/values/attrs.xml b/mobile/src/main/res/values/attrs.xml index 0e77e15..9dc0fe5 100644 --- a/mobile/src/main/res/values/attrs.xml +++ b/mobile/src/main/res/values/attrs.xml @@ -18,7 +18,6 @@ - diff --git a/mobile/src/main/res/values/styles.xml b/mobile/src/main/res/values/styles.xml index ad08e69..c75c626 100644 --- a/mobile/src/main/res/values/styles.xml +++ b/mobile/src/main/res/values/styles.xml @@ -45,18 +45,17 @@ @null - -