summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarTablet.java
diff options
context:
space:
mode:
authorMichael Kolb <kolby@google.com>2012-03-09 15:08:23 -0800
committerMichael Kolb <kolby@google.com>2012-03-09 15:08:23 -0800
commitc832e5e47b6d91a3d805c71848c863696ea8c892 (patch)
tree4376ce66f796dee92e6360e4c5db5fccff346c3f /src/com/android/browser/NavigationBarTablet.java
parent859cde607ba579b20dcdc6866fc6fdcf6ed75117 (diff)
downloadandroid_packages_apps_Gello-c832e5e47b6d91a3d805c71848c863696ea8c892.tar.gz
android_packages_apps_Gello-c832e5e47b6d91a3d805c71848c863696ea8c892.tar.bz2
android_packages_apps_Gello-c832e5e47b6d91a3d805c71848c863696ea8c892.zip
Bad Monkey.
Bug: 6028523 Change-Id: I960bcbb90344a4008f33551a846f2d5e8baeee22
Diffstat (limited to 'src/com/android/browser/NavigationBarTablet.java')
-rw-r--r--src/com/android/browser/NavigationBarTablet.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java
index 026e9030..3403fd7e 100644
--- a/src/com/android/browser/NavigationBarTablet.java
+++ b/src/com/android/browser/NavigationBarTablet.java
@@ -165,9 +165,9 @@ public class NavigationBarTablet extends NavigationBarBase {
@Override
public void onClick(View v) {
- if (mBackButton == v) {
+ if ((mBackButton == v) && (mUiController.getCurrentTab() != null)) {
mUiController.getCurrentTab().goBack();
- } else if (mForwardButton == v) {
+ } else if ((mForwardButton == v) && (mUiController.getCurrentTab() != null)) {
mUiController.getCurrentTab().goForward();
} else if (mStar == v) {
Intent intent = mUiController.createBookmarkCurrentPageIntent(true);