summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarTablet.java
diff options
context:
space:
mode:
authorPankaj Garg <pgarg@codeaurora.org>2014-12-12 11:06:17 -0800
committerWebTech Code Review <code-review@localhost>2014-12-12 16:04:06 -0800
commit5ae52a04ebf5c95aa8095eeea4c333320e604129 (patch)
tree3415fe1203e86d304d50cd0c1a76e9b335a2b6ef /src/com/android/browser/NavigationBarTablet.java
parenta27cc65811e9ade0d1e6a24b75bafbbc4978f4ac (diff)
downloadandroid_packages_apps_Gello-5ae52a04ebf5c95aa8095eeea4c333320e604129.tar.gz
android_packages_apps_Gello-5ae52a04ebf5c95aa8095eeea4c333320e604129.tar.bz2
android_packages_apps_Gello-5ae52a04ebf5c95aa8095eeea4c333320e604129.zip
Fixed forward button navigation in browser tablet UI
The forward button was enabled even though browser had no forward navigation entry. The code was checking for backward navigation entry instead of forward navigation. Change-Id: Id532b55b2439d92eb5f8cef30e3ad191778228cb
Diffstat (limited to 'src/com/android/browser/NavigationBarTablet.java')
-rw-r--r--src/com/android/browser/NavigationBarTablet.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java
index 17f7398e..055da984 100644
--- a/src/com/android/browser/NavigationBarTablet.java
+++ b/src/com/android/browser/NavigationBarTablet.java
@@ -134,7 +134,7 @@ public class NavigationBarTablet extends NavigationBarBase implements StateListe
void updateNavigationState(Tab tab) {
if (tab != null) {
mBackButton.setEnabled(tab.canGoBack());
- mForwardButton.setEnabled(tab.canGoBack());
+ mForwardButton.setEnabled(tab.canGoForward());
}
updateUrlIcon();
}