Hide toolbar in activity and remove label from home fragment
parent
c7af502db7
commit
895ba021e7
|
@ -73,6 +73,7 @@ open class HomeActivity : AppCompatActivity() {
|
|||
val navigationToolbar = findViewById<Toolbar>(R.id.navigationToolbar)
|
||||
setSupportActionBar(navigationToolbar)
|
||||
NavigationUI.setupWithNavController(navigationToolbar, navHost.navController, appBarConfiguration)
|
||||
supportActionBar?.hide()
|
||||
|
||||
intent
|
||||
?.let { SafeIntent(it) }
|
||||
|
|
|
@ -246,8 +246,9 @@ class HomeFragment : Fragment(), CoroutineScope, AccountObserver {
|
|||
homeViewModel?.layoutManagerState?.also { parcelable ->
|
||||
sessionControlComponent.view.layoutManager?.onRestoreInstanceState(parcelable)
|
||||
}
|
||||
val progress = homeViewModel?.motionLayoutProgress
|
||||
homeLayout?.progress =
|
||||
if (homeViewModel?.motionLayoutProgress ?: 0F > MOTION_LAYOUT_PROGRESS_ROUND_POINT) 1.0f else 0f
|
||||
if (progress ?: 0F > MOTION_LAYOUT_PROGRESS_ROUND_POINT) 1.0f else 0f
|
||||
homeViewModel?.layoutManagerState = null
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
<fragment
|
||||
android:id="@+id/homeFragment"
|
||||
android:name="org.mozilla.fenix.home.HomeFragment"
|
||||
android:label="fragment_home"
|
||||
tools:layout="@layout/fragment_home">
|
||||
<action
|
||||
android:id="@+id/action_homeFragment_to_turnOnSyncFragment"
|
||||
|
|
Loading…
Reference in New Issue