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

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

Issue 2412273002: [Offline pages] Ensuring verbose Offline status does not show next to the security padlock (Closed)
Patch Set: [Offline pages] Ensuring verbose Offline status does not show next to the security padlock Created 4 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
index 0316586707af28178ece61d8c59e9e304409d2ce..55675709cb03954df95c3e6744db075c020463a5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
@@ -671,6 +671,11 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener,
public void onAnimationEnd(Animator animation) {
if (animation == mSecurityButtonShowAnimator) {
mNavigationButton.setVisibility(INVISIBLE);
+ // This is done specifically not to show offline page verbose status with the
+ // icon. It should be properly solved, when omnibox verbose status animation is
+ // implemented. See: http://crbug.com/648129
+ updateVerboseStatusVisibility();
+ setUrlToPageUrl();
Ted C 2016/10/12 23:46:22 why setUrlToPageUrl? That doesn't look right to m
fgorski 2016/10/13 18:04:35 If we don't we can get padlock shown with a scheme
} else if (animation == mNavigationIconShowAnimator) {
mSecurityButton.setVisibility(INVISIBLE);
}
@@ -1389,8 +1394,8 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener,
* omnibox.
*/
private void updateVerboseStatusVisibility() {
- boolean verboseStatusVisible =
- mNavigationButtonType == NavigationButtonType.OFFLINE && !mUrlHasFocus;
+ boolean verboseStatusVisible = mNavigationButtonType == NavigationButtonType.OFFLINE
+ && !mUrlHasFocus && mNavigationButton.getVisibility() == VISIBLE;
int verboseStatusVisibility = verboseStatusVisible ? VISIBLE : GONE;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698