Skip to content

Commit

Permalink
Padded all systems bars and reduced mainactivity bottom padding
Browse files Browse the repository at this point in the history
  • Loading branch information
juha-h committed Dec 14, 2024
1 parent 91d1d14 commit 04462f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/src/main/kotlin/com/tutpro/baresip/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class MainActivity : 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)
WindowInsetsCompat.CONSUMED
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingBottom="6dp"
android:layout_alignParentBottom="true" >

<Space
Expand Down

0 comments on commit 04462f4

Please sign in to comment.