summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/NavigationBarTablet.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-09-06 16:30:29 -0700
committerJohn Reck <jreck@google.com>2011-09-06 16:30:29 -0700
commita60fffaa18e26b29880c7ce21548af4f8ec0e443 (patch)
treebcd4e2fe617c2d968d82ef806ac36cfb0d9db946 /src/com/android/browser/NavigationBarTablet.java
parent4b97ed9959dfffc95a035f28430426b15a5a8957 (diff)
downloadandroid_packages_apps_Gello-a60fffaa18e26b29880c7ce21548af4f8ec0e443.tar.gz
android_packages_apps_Gello-a60fffaa18e26b29880c7ce21548af4f8ec0e443.tar.bz2
android_packages_apps_Gello-a60fffaa18e26b29880c7ce21548af4f8ec0e443.zip
Monkey protection
Bug: 5134204 Change-Id: Id61b16b17b4a054ab7f1948614399f157f52821f
Diffstat (limited to 'src/com/android/browser/NavigationBarTablet.java')
-rw-r--r--src/com/android/browser/NavigationBarTablet.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/browser/NavigationBarTablet.java b/src/com/android/browser/NavigationBarTablet.java
index 8c08dcf4..661ed714 100644
--- a/src/com/android/browser/NavigationBarTablet.java
+++ b/src/com/android/browser/NavigationBarTablet.java
@@ -20,6 +20,7 @@ import android.animation.AnimatorListenerAdapter;
import android.animation.AnimatorSet;
import android.animation.ObjectAnimator;
import android.content.Context;
+import android.content.Intent;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.graphics.Bitmap;
@@ -161,7 +162,10 @@ public class NavigationBarTablet extends NavigationBarBase {
} else if (mForwardButton == v) {
mUiController.getCurrentTab().goForward();
} else if (mStar == v) {
- getContext().startActivity(mUiController.createBookmarkCurrentPageIntent(true));
+ Intent intent = mUiController.createBookmarkCurrentPageIntent(true);
+ if (intent != null) {
+ getContext().startActivity(intent);
+ }
} else if (mAllButton == v) {
mUiController.bookmarksOrHistoryPicker(false);
} else if (mSearchButton == v) {