Skip to content

Commit

Permalink
Removed edge-to-edge from WindowExtensions.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury committed Jan 21, 2025
1 parent f83ad8c commit 1444cb8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import org.wordpress.android.ui.accounts.login.components.WordpressJetpackLogo
import org.wordpress.android.ui.compose.TestTags
import org.wordpress.android.ui.compose.components.ColumnWithFrostedGlassBackground
import org.wordpress.android.ui.compose.theme.AppThemeM3
import org.wordpress.android.util.extensions.setEdgeToEdgeContentDisplay

val LocalPosition = compositionLocalOf { 0f }

Expand Down Expand Up @@ -74,16 +73,6 @@ class LoginPrologueRevampedFragment : Fragment() {
loginPrologueListener = context
}

override fun onResume() {
super.onResume()
requireActivity().window.setEdgeToEdgeContentDisplay(true)
}

override fun onPause() {
super.onPause()
requireActivity().window.setEdgeToEdgeContentDisplay(false)
}

companion object {
const val TAG = "login_prologue_revamped_fragment_tag"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,9 @@ package org.wordpress.android.util.extensions
import android.os.Build
import android.view.Window
import android.view.WindowInsets
import androidx.core.view.WindowCompat
import androidx.core.view.WindowInsetsControllerCompat
import org.wordpress.android.util.ColorUtils

fun Window.setEdgeToEdgeContentDisplay(isEnabled: Boolean) {
val decorFitsSystemWindows = !isEnabled
WindowCompat.setDecorFitsSystemWindows(this, decorFitsSystemWindows)
}

fun Window.setWindowStatusBarColor(color: Int) {
setWindowBarColor(color, InsetsType.STATUS_BAR)
}
Expand Down

0 comments on commit 1444cb8

Please sign in to comment.