Infeasible
Status Update
Comments
jb...@google.com <jb...@google.com> #2
This sounds like a platform issue which is out of scope for the Navigation library. You should file a bug against the platform so they can investigate the issues with those particular devices.
un...@gmail.com <un...@gmail.com> #3
Same issue in Redmi Note 10 Pro Max, This issue started when I updated to Android 12 from Android 11.
go...@gmail.com <go...@gmail.com> #4
Same issue in Redmi K30
ke...@gmail.com <ke...@gmail.com> #5
Same issue with Google Pixel 5 Android 12
lu...@gmail.com <lu...@gmail.com> #6
Same issue in Mi Note 10 Lite.
:(
you have been able to find a solution?
:(
you have been able to find a solution?
re...@gmail.com <re...@gmail.com> #7
Same issue in Xiaomi Mi 11 Lite 5G NE android 12
ii...@songe.li <ii...@songe.li> #8
you can try add a middle Activity, it can solve my problem on Redmi K40
// MainActivity.kt
class MainActivity : ComponentActivity(){}
// EntryActivity.kt
class EntryActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
startActivity(Intent(this@EntryActivity, MainActivity::class.java))
}
override fun onRestart() {
super.onRestart()
finish()
}
}
ie...@moneytree.jp <ie...@moneytree.jp> #9
Same issue with a Mi 11 after updating to Android 12
fe...@gmail.com <fe...@gmail.com> #10
Same issue with a Mi 10T after updating to Android 12
az...@gmail.com <az...@gmail.com> #11
Same issue with a POCO X3 Pro after updating to Android 12
fe...@gmail.com <fe...@gmail.com> #12
Same issue on Nokia 5.1 on Anroid 10
fe...@gmail.com <fe...@gmail.com> #13
Solved! https://stackoverflow.com/a/72119807/2416823
Put your NavHost in Scaffold:
YourAppTheme {
Scaffold {
NavHost()
}
}
Put your NavHost in Scaffold:
YourAppTheme {
Scaffold {
NavHost()
}
}
er...@gmail.com <er...@gmail.com> #14
Same here with Poco F3 Android 12. Wrapping it with Scaffold solved my problem as well =)
64...@gmail.com <64...@gmail.com> #15
Same here with Mi 11 @ Android 12. I reported the bug to the MIUI team too and they said they'd look into it...
un...@gmail.com <un...@gmail.com> #16
The issue resolved in Redmi Note 10 Pro Max - Androdi 12 - MIUI 13, After updating to Version: MIUI Global 13.0.4 Stable 13.0.4.0(SKFINXM)
cg...@gmail.com <cg...@gmail.com> #17
a hack way to fix this:
lifecycleScope.launch {
delay(50)
window.setBackgroundDrawableResource(android.R.color.transparent)
}
add this to onCreate
bi...@gmail.com <bi...@gmail.com> #18
Same on mi 11 pro, wrapping with Scaffold didn't solve my problem, delay() did, at least delay 231ms,and I choose delay 300ms
st...@verizonconnect.com <st...@verizonconnect.com> #19
I had the same error (poco f3), not at the launch of the application but when I rotate the screen. I fixed this by adding the delay. I want just to notify something that maybe can help, when I use the layout inspector of android studio it doesn't happens.
ya...@gmail.com <ya...@gmail.com> #20
Same with Mi 11 NE 5G Android 12
da...@gmail.com <da...@gmail.com> #21
Same issue on Xiaomi Mi 11i - MIUI Global 13.0.5 - Android 12.
I test with both solutions (delay and Scaffold) and they both work fine!
I test with both solutions (delay and Scaffold) and they both work fine!
fd...@gmail.com <fd...@gmail.com> #22
Same in Xiaomi Mi 11T Pro (Android 12) at the launch of the application and also when I rotate the screen.
I fixed this by adding the delay (300ms) before setContent.
When I use the layout inspector of android studio it doesn't happens and starts perfectly too. #19
I fixed this by adding the delay (300ms) before setContent.
When I use the layout inspector of android studio it doesn't happens and starts perfectly too. #19
pa...@gmail.com <pa...@gmail.com> #23
The same issue here(XIAOMI POCO X3 PRO - Android 12 - MIUI Global 13.0.3)
I fixed adding the delay (300ms) before setContent.
I fixed adding the delay (300ms) before setContent.
ha...@gmail.com <ha...@gmail.com> #24
not only xiaomi models affect all the all mobile models
lu...@gmail.com <lu...@gmail.com> #25
Seems like adding ScaffoldDefaults.contentWindowInsets before navhost solves the issue
setContent {
MonoTheme {
/**
* Due to this bughttps://issuetracker.google.com/issues/227926002 when using
* splash screen API on some devices with Compose Jetpack Navigation leads to a blank
* screen. However wrapping the [NavHost] in a [Scaffold] solves this issue, so after
* digging a bit, I figured out the following line is the workaround for the
* blank screen bug
*/
ScaffoldDefaults.contentWindowInsets
NavHost()
}
}
setContent {
MonoTheme {
/**
* Due to this bug
* splash screen API on some devices with Compose Jetpack Navigation leads to a blank
* screen. However wrapping the [NavHost] in a [Scaffold] solves this issue, so after
* digging a bit, I figured out the following line is the workaround for the
* blank screen bug
*/
ScaffoldDefaults.contentWindowInsets
NavHost()
}
}
ch...@gmail.com <ch...@gmail.com> #26
yes, ScaffoldDefaults.contentWindowInsets is fix to me ,xiaomi11.
if you use
implementation 'androidx.compose.material:material:1.3.1'
replacec ScaffoldDefaults.contentWindowInsets to WindowInsets.statusBars
if you use
implementation 'androidx.compose.material:material:1.3.1'
replacec ScaffoldDefaults.contentWindowInsets to WindowInsets.statusBars
mi...@gmail.com <mi...@gmail.com> #27
Thank you! Adding ScaffoldDefaults.contentWindowInsets
before NavHost worked for me. POCO X3 NFC (Android 12, MIUI Global 14.0.2).
mo...@gmail.com <mo...@gmail.com> #28
In my case I am using BOM. I set it with the latest version at the moment which is 2024.02.02
Description
Component used: Navigation
Version used: 2.5.0-alpha03
Jetpack Compose version: 1.2.0-aplha06
Steps to Reproduce:
make a basic navigation code and run such as
Expected:
Activity shows startDestination screen immediately after app start
Actual:
Activity shows blank(white) screen, does not show startDestination screen. Then I tapped anywhere on the screen, startDestination screen appears.