From 4ff475261b7a2093ffb2bc497fb53ced9371b8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolf-Martell=20Montw=C3=A9?= Date: Mon, 29 Apr 2024 18:02:16 +0200 Subject: [PATCH] Remove MessageList special SystemBar and Toolbar handling --- .../java/com/fsck/k9/activity/MessageList.kt | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt index 229a426a5..f8458796d 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/activity/MessageList.kt @@ -4,21 +4,17 @@ import android.app.SearchManager import android.content.Context import android.content.Intent import android.content.res.Configuration -import android.graphics.Color -import android.os.Build import android.os.Bundle import android.os.Parcelable import android.view.KeyEvent import android.view.Menu import android.view.MenuItem import android.view.View -import android.view.WindowManager import android.view.animation.AnimationUtils import android.widget.ProgressBar import androidx.appcompat.app.ActionBar import androidx.appcompat.view.ActionMode import androidx.appcompat.widget.SearchView -import androidx.appcompat.widget.Toolbar import androidx.drawerlayout.widget.DrawerLayout import androidx.drawerlayout.widget.DrawerLayout.DrawerListener import androidx.fragment.app.FragmentManager @@ -165,23 +161,6 @@ open class MessageList : } } - window.statusBarColor = Color.TRANSPARENT - - val rootLayout = findViewById(R.id.drawerLayout) - - rootLayout.systemUiVisibility = rootLayout.systemUiVisibility or View.SYSTEM_UI_FLAG_LAYOUT_STABLE or - View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN - - if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) { - window.addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS) - } - - val toolbar = findViewById(R.id.toolbar) - toolbar.setOnApplyWindowInsetsListener { view, insets -> - view.setPadding(view.paddingLeft, insets.systemWindowInsetTop, view.paddingRight, view.paddingBottom) - insets - } - val swipeRefreshLayout = findViewById(R.id.material_drawer_swipe_refresh) swipeRefreshLayout.layoutParams.width = getOptimalDrawerWidth(this)