From f200ee36243cd972f4d19431ba95d8e6702d3a04 Mon Sep 17 00:00:00 2001 From: Gideon Okuro Date: Tue, 2 Jul 2024 15:10:01 +0300 Subject: [PATCH 1/2] restore default system window behavior --- .../org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt | 2 -- .../ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite | 2 -- 2 files changed, 4 deletions(-) diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt index c86508b6dc..a1ed747a43 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt +++ b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt @@ -17,7 +17,6 @@ import android.view.View import androidx.activity.OnBackPressedCallback import androidx.core.content.ContextCompat import androidx.core.content.res.ResourcesCompat -import androidx.core.view.WindowCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsControllerCompat import androidx.drawerlayout.widget.DrawerLayout @@ -131,7 +130,6 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N result?.stickyFooter?.setPadding(0, 0, 0, 0) // moves logout button to the very bottom of the drawer. Without it, the "logout" button suspends a little. result?.actionBarDrawerToggle?.isDrawerIndicatorEnabled = true dl = result?.drawerLayout - WindowCompat.setDecorFitsSystemWindows(window, false) WindowInsetsControllerCompat(window, window.decorView).hide(WindowInsetsCompat.Type.statusBars()) result?.drawerLayout?.fitsSystemWindows = false topbarSetting() diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite index 77fe5e75ce..0f86051004 100644 --- a/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite +++ b/app/src/main/java/org/ole/planet/myplanet/ui/dashboard/DashboardActivity.kt.lite @@ -17,7 +17,6 @@ import android.view.View import androidx.activity.OnBackPressedCallback import androidx.core.content.ContextCompat import androidx.core.content.res.ResourcesCompat -import androidx.core.view.WindowCompat import androidx.core.view.WindowInsetsCompat import androidx.core.view.WindowInsetsControllerCompat import androidx.drawerlayout.widget.DrawerLayout @@ -131,7 +130,6 @@ class DashboardActivity : DashboardElementActivity(), OnHomeItemClickListener, N result?.stickyFooter?.setPadding(0, 0, 0, 0) // moves logout button to the very bottom of the drawer. Without it, the "logout" button suspends a little. result?.actionBarDrawerToggle?.isDrawerIndicatorEnabled = true dl = result?.drawerLayout - WindowCompat.setDecorFitsSystemWindows(window, false) WindowInsetsControllerCompat(window, window.decorView).hide(WindowInsetsCompat.Type.statusBars()) result?.drawerLayout?.fitsSystemWindows = false topbarSetting() From 8c4def4e911622488756878cd3a9f4f44ca2ed80 Mon Sep 17 00:00:00 2001 From: dogi Date: Tue, 2 Jul 2024 14:04:50 -0400 Subject: [PATCH 2/2] Update build.gradle --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3a6b0a09db..13b22c724c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -9,8 +9,8 @@ android { applicationId "org.ole.planet.myplanet" minSdkVersion 21 targetSdkVersion 34 - versionCode 1640 - versionName "0.16.40" + versionCode 1644 + versionName "0.16.44" ndkVersion '21.3.6528147' testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" vectorDrawables.useSupportLibrary = true