79325812

Date: 2025-01-03 07:53:21
Score: 0.5
Natty:
Report link

As Mike M. mentioned, there was a bug during activity recreation and his suggested workaround is the solution. So, for those who also faced this issue, you should do:

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    // Add these 3 lines to your code
    if (savedInstanceState != null && Build.VERSION.SDK_INT >= 35) {
        WindowCompat.setDecorFitsSystemWindows(window, false)
    }
    enableEdgeToEdge()
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nazar Taraniuk