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

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

Issue 2584983002: Fixed disabled status of Find-in-page previous/next arrows (Closed)
Patch Set: Created 4 years 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/widget/findinpage/FindToolbar.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbar.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbar.java
index 1de6c0ecfce2c0c0825bebf3f6f867227d0483f8..de8a7c05b0187f0a9b73ead8e7ed47c05b16354b 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbar.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/findinpage/FindToolbar.java
@@ -235,7 +235,6 @@ public class FindToolbar extends LinearLayout
if (mFindInPageBridge == null) return;
mAccessibilityDidActivateResult = false;
- setPrevNextEnabled(s.length() > 0);
if (mSettingFindTextProgrammatically) return;
@@ -430,6 +429,8 @@ public class FindToolbar extends LinearLayout
result.numberOfMatches);
setStatus(text, result.numberOfMatches == 0);
+ setPrevNextEnabled(result.numberOfMatches > 0);
+
// The accessible version will be something like "Result 1 of 9".
String accessibleText = getAccessibleStatusText(
Math.max(result.activeMatchOrdinal, 0),
« 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