Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(577)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java

Issue 2751583002: 🏡 Show correct BottomSheetContent toolbar when contents swapped (Closed)
Patch Set: Remove duplicate "and" Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
index e79d47a9df396cff10ee8182e0c016d6f9883fc6..3df208e2b94f268dbbc7c41ffc2493e420425a39 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ChromeActivity.java
@@ -431,18 +431,18 @@ public abstract class ChromeActivity extends AsyncInitializationActivity
ControlContainer controlContainer =
(ControlContainer) findViewById(R.id.control_container);
+ // Inflate the correct toolbar layout for the device.
+ int toolbarLayoutId = getToolbarLayoutId();
+ if (toolbarLayoutId != NO_TOOLBAR_LAYOUT && controlContainer != null) {
+ controlContainer.initWithToolbar(toolbarLayoutId);
+ }
+
// Get a handle to the bottom sheet if using the bottom control container.
if (controlContainerLayoutId == R.layout.bottom_control_container) {
View coordinator = findViewById(R.id.coordinator);
mBottomSheet = (BottomSheet) findViewById(R.id.bottom_sheet);
mBottomSheet.init(coordinator, controlContainer.getView());
}
-
- // Inflate the correct toolbar layout for the device.
- int toolbarLayoutId = getToolbarLayoutId();
- if (toolbarLayoutId != NO_TOOLBAR_LAYOUT && controlContainer != null) {
- controlContainer.initWithToolbar(toolbarLayoutId);
- }
} finally {
StrictMode.setThreadPolicy(oldPolicy);
}

Powered by Google App Engine
This is Rietveld 408576698