Padded all systems bars in all activities

This commit is contained in:
Juha Heinanen
2024-12-15 00:57:43 +02:00
parent 04462f4fa9
commit 0a17139f9c
12 changed files with 20 additions and 24 deletions
@@ -49,7 +49,7 @@ class ChatsActivity: AppCompatActivity() {
ViewCompat.setOnApplyWindowInsetsListener(window.decorView) { v: View, insets: WindowInsetsCompat ->
val systemBars: Insets = insets.getInsets(WindowInsetsCompat.Type.systemBars())
v.setPadding(0, systemBars.top, 0, systemBars.bottom)
v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
if (Build.VERSION.SDK_INT >= 35)
binding.ChatsView.updatePadding(top = systemBars.top + 56)
WindowInsetsCompat.CONSUMED