Fix 'Add Bookmarks' button on History view crash
Bug: 3292625
Fixed this by removing the 'Add Bookmarks' button from the history view
altogether, as per the "final screens" design spec
Change-Id: I4fa645b14f2a3ba60de6e01370f85f351e3a383d
diff --git a/src/com/android/browser/CombinedBookmarkHistoryView.java b/src/com/android/browser/CombinedBookmarkHistoryView.java
index cc56489..426b34d 100644
--- a/src/com/android/browser/CombinedBookmarkHistoryView.java
+++ b/src/com/android/browser/CombinedBookmarkHistoryView.java
@@ -197,6 +197,7 @@
fragment = mBookmarks;
mSeperateSelectAdd.setVisibility(View.VISIBLE);
mBookmarksHeader.setVisibility(View.VISIBLE);
+ mAddBookmark.setVisibility(View.VISIBLE);
mTabBookmarks.setActivated(true);
mTabHistory.setActivated(false);
break;
@@ -204,6 +205,7 @@
fragment = mHistory;
mBookmarksHeader.setVisibility(View.INVISIBLE);
mSeperateSelectAdd.setVisibility(View.INVISIBLE);
+ mAddBookmark.setVisibility(View.INVISIBLE);
mTabBookmarks.setActivated(false);
mTabHistory.setActivated(true);
break;