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

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

Issue 2742433002: 📰 Do not refresh Tiles while visible (Closed)
Patch Set: move loadTiles with other private methods 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/widget/BottomSheet.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java
index c84d09a0fd1e48cbe325b73c5b897f3815facccf..1bf6755621b4903482135918dc862467826676b5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/BottomSheet.java
@@ -440,6 +440,11 @@ public Tab getActiveTab() {
return mTabModelSelector.getCurrentTab();
}
+ @Override
+ public boolean isVisible() {
+ return mCurrentState != SHEET_STATE_PEEK;
+ }
+
/**
* Determines if a touch event is inside the toolbar. This assumes the toolbar is the full
* width of the screen and that the toolbar is at the top of the bottom sheet.

Powered by Google App Engine
This is Rietveld 408576698