diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/BookmarksView.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/BookmarksView.java index 4b00f6a4a..cd82489b6 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/BookmarksView.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/BookmarksView.java @@ -164,13 +164,6 @@ public void onClick(@NonNull View view, @NonNull Bookmark item) { public void onDelete(@NonNull View view, @NonNull Bookmark item) { mBinding.bookmarksList.requestFocusFromTouch(); - mBookmarkAdapter.removeItem(item); - if (mBookmarkAdapter.itemCount() == 0) { - mBinding.setIsEmpty(true); - mBinding.setIsLoading(false); - mBinding.executePendingBindings(); - } - SessionStore.get().getBookmarkStore().deleteBookmarkById(item.getGuid()); } diff --git a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/HistoryView.java b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/HistoryView.java index 7113cc5a3..c94ce2445 100644 --- a/app/src/common/shared/org/mozilla/vrbrowser/ui/views/HistoryView.java +++ b/app/src/common/shared/org/mozilla/vrbrowser/ui/views/HistoryView.java @@ -167,13 +167,6 @@ public void onClick(View view, VisitInfo item) { public void onDelete(View view, VisitInfo item) { mBinding.historyList.requestFocusFromTouch(); - mHistoryAdapter.removeItem(item); - if (mHistoryAdapter.itemCount() == 0) { - mBinding.setIsEmpty(true); - mBinding.setIsLoading(false); - mBinding.executePendingBindings(); - } - SessionStore.get().getHistoryStore().deleteVisitsFor(item.getUrl()); } @@ -381,7 +374,6 @@ private void showHistory(List historyItems) { mBinding.setIsEmpty(false); mBinding.setIsLoading(false); mHistoryAdapter.setHistoryList(historyItems); - mBinding.historyList.post(() -> mBinding.historyList.smoothScrollToPosition(0)); } }