Assigned
Status Update
Comments
mi...@google.com <mi...@google.com> #2
Can you write down the repro step with a bit more information such as build info, bug report, etc ?
se...@gmail.com <se...@gmail.com> #3
Set these flags:
window.apply {
clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS)
addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS)
decorView.systemUiVisibility =
SYSTEM_UI_FLAG_HIDE_NAVIGATION or
SYSTEM_UI_FLAG_IMMERSIVE_STICKY or
SYSTEM_UI_FLAG_LOW_PROFILE or
SYSTEM_UI_FLAG_LAYOUT_STABLE or
SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
statusBarColor = Color.TRANSPARENT
}
In Fragment get the insets and consume:
fun View.setMarginTop(marginTop: Int) {
val menuLayoutParams = this.layoutParams as ViewGroup.MarginLayoutParams
menuLayoutParams.setMargins(0, marginTop, 0, 0)
this.layoutParams = menuLayoutParams
}
ViewCompat.setOnApplyWindowInsetsListener(view?.findViewById(R.id.workout_checkin_container)!!) { _, insets ->
view?.findViewById<AppBarLayout>(R.id.app_bar_checkin)?.setMarginTop(insets.systemWindowInsetTop)
view?.findViewById<ConstraintLayout>(R.id.bottom_sheet_gratitude)?.setMarginTop(insets.systemWindowInsetTop)
insets.consumeSystemWindowInsets()
}
This will successfully put the fragment into full screen mode. However on Samsung s10: Version: Android 10 Build: QP1A.190711.020.G973FXXU9DTJA
When the user interacts with the view i.e touches an edit text or even taking a screenshot both the status bar and navigation bar will reappear. I don't have specific bug report as the app doesnt crash or throw any error logs. It just gets knocked out of full screen mode when you interact with the view. Works perfectly though on emulator: Pixel 3&4 api 29&30 tested. Seems to be a samsung issue.
ak...@google.com <ak...@google.com>
to...@gmail.com <to...@gmail.com> #4
I completely understand that this utilization of a Windows platform to enter intercept in Android device is completely easily be able to be used for an intent that it's not the fitness or the original inception. A simple ping can be loaded with x86 hundreds of Windows applications masquerading as a pain image it is a completely pestering nightmare.
https://drive.google.com/file/d/11U4tGAj_ijQ8PIakrazM4asMxBTE5KUG/view?usp=drive_web (Screenshot_20200621-215424.png)
Description
Component used: WindowsManager Version used: Devices/Android versions reproduced on:
If this is a bug in the library, we would appreciate if you could attach:
I was speaking with Chris Banes on twitter regarding an issue with full screen mode. When the appropriate flags are set and insets set up to enable full screen mode, on samsung galaxy s10 device with api 29 when clicking on an edit text or taking a screenshot the status bar and navigation bar will reappear and not disappear again. Chris Banes believes this is a samsung problem as when tested on emulator pixel 3 & 4 with api 29 & 30 it worked perfectly as expected. Chris was saying you guys could forward it on to Samsung to get it fixed.