Skip to content
Snippets Groups Projects
Commit eb0881a3 authored by maxime's avatar maxime
Browse files

Home: Tablet device fit system windows

Change-Id: I9e21ed33dc59b31d83141dc0929ef08f1f939af8
parent 2d4ac37d
No related branches found
No related tags found
No related merge requests found
......@@ -139,8 +139,9 @@ class HomeActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen
startActivity(intent)
return
}
WindowCompat.setDecorFitsSystemWindows(window, false)
if (!DeviceUtils.isTablet(this)) {
WindowCompat.setDecorFitsSystemWindows(window, false)
}
mBinding = ActivityHomeBinding.inflate(layoutInflater).also { binding ->
setContentView(binding.root)
......@@ -154,7 +155,6 @@ class HomeActivity : AppCompatActivity(), NavigationBarView.OnItemSelectedListen
enableAccount(isChecked)
}
binding.contactImage?.setOnClickListener { fConversation?.openContact() }
if (!DeviceUtils.isTablet(this) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
window.navigationBarColor = ElevationOverlayProvider(this).compositeOverlayWithThemeSurfaceColorIfNeeded(binding.navigationView.elevation)
}
......
......@@ -10,6 +10,7 @@
android:id="@+id/app_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fitsSystemWindows="true"
app:elevation="0dp">
<com.google.android.material.appbar.MaterialToolbar
......@@ -71,7 +72,7 @@
android:ellipsize="middle"
android:singleLine="true"
android:textSize="14sp"
tools:text="@tools:sample/full_names"/>
tools:text="@tools:sample/full_names" />
</LinearLayout>
<cx.ring.views.SwitchButton
......@@ -99,7 +100,7 @@
android:id="@+id/main_frame"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_below="@id/main_toolbar" />
android:layout_below="@id/app_bar" />
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/navigation_view"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment