Commit 78247732 authored by Troy Hildebrandt's avatar Troy Hildebrandt Committed by Commit Bot

[Home] Fix bottom nav crash initializing menu color.

Removes a needless call to setMenuBackgroundColor that relied on the tab
model selector being initialized, causing an NPE if that wasn't the
case. We already call setMenuBackgroundColor in updateVisuals, which is
called at the appropriate times.

Bug: 779472
Change-Id: Id87722088da11e178b92c4495eb0113faf454418
Reviewed-on: https://chromium-review.googlesource.com/744322Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Commit-Queue: Troy Hildebrandt <thildebr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512696}
parent 206544e6
...@@ -352,8 +352,6 @@ public class BottomSheetContentController ...@@ -352,8 +352,6 @@ public class BottomSheetContentController
ViewGroup snackbarContainer = ViewGroup snackbarContainer =
(ViewGroup) mActivity.findViewById(R.id.bottom_sheet_snackbar_container); (ViewGroup) mActivity.findViewById(R.id.bottom_sheet_snackbar_container);
((MarginLayoutParams) snackbarContainer.getLayoutParams()).bottomMargin = mBottomNavHeight; ((MarginLayoutParams) snackbarContainer.getLayoutParams()).bottomMargin = mBottomNavHeight;
setMenuBackgroundColor(mTabModelSelector.isIncognitoSelected());
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment