Padded all systems bars in all activities
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user