Skip to content
Snippets Groups Projects
Commit e7c7cefc authored by Matthew Finkel's avatar Matthew Finkel
Browse files

fixup! Bug 40028: Implement new home screen

parent f61219e9
Branches
Tags
1 merge request!26Bug 40041 09
......@@ -345,6 +345,7 @@ class HomeFragment : Fragment() {
}
// This function should be paired with showSessionControlView()
@SuppressWarnings("ComplexMethod", "NestedBlockDepth", "LongMethod")
private fun adjustHomeFragmentView(mode: Mode, view: View?) {
view?.sessionControlRecyclerView?.apply {
visibility = View.INVISIBLE
......@@ -362,7 +363,8 @@ class HomeFragment : Fragment() {
// Reset this as SCROLL in case it was previously set as NO_SCROLL after bootstrap
children.forEach {
(it.layoutParams as AppBarLayout.LayoutParams).scrollFlags = AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL
(it.layoutParams as AppBarLayout.LayoutParams).scrollFlags =
AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL
}
}
view?.onion_pattern_image?.apply {
......@@ -419,7 +421,8 @@ class HomeFragment : Fragment() {
visibility = View.VISIBLE
children.forEach {
(it.layoutParams as AppBarLayout.LayoutParams).scrollFlags = if (onboarding.userHasBeenOnboarded()) {
(it.layoutParams as AppBarLayout.LayoutParams).scrollFlags =
if (onboarding.userHasBeenOnboarded()) {
AppBarLayout.LayoutParams.SCROLL_FLAG_NO_SCROLL
} else {
AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment