summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-07-07 11:44:31 -0700
committerJohn Reck <jreck@google.com>2011-07-07 11:44:31 -0700
commit4ab7529499ab631010488f318e254806cb91f5e9 (patch)
treec600014a7df1f2efa026ce7d8bb0de8b472e0ae2
parent180d76d96625a92e0dcaeaaf7ab94dda4eb238b8 (diff)
downloadpackages_apps_browser-4ab7529499ab631010488f318e254806cb91f5e9.zip
packages_apps_browser-4ab7529499ab631010488f318e254806cb91f5e9.tar.gz
packages_apps_browser-4ab7529499ab631010488f318e254806cb91f5e9.tar.bz2
Disable bookmark drag&drop support
Bug: 4982126 Due to time constraints, system-wide drag and drop hasn't gotten the UX attention needed. So for now, disable drag & drop in bookmarks. Change-Id: Idbc0b90be18c3845679205b3fed55f4176b9be50
-rw-r--r--src/com/android/browser/view/BookmarkExpandableView.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/browser/view/BookmarkExpandableView.java b/src/com/android/browser/view/BookmarkExpandableView.java
index 6f5fdaa..baa9172 100644
--- a/src/com/android/browser/view/BookmarkExpandableView.java
+++ b/src/com/android/browser/view/BookmarkExpandableView.java
@@ -49,6 +49,9 @@ import java.util.HashMap;
public class BookmarkExpandableView extends ExpandableListView
implements BreadCrumbView.Controller {
+ // Experimental drag & drop
+ private static final boolean ENABLE_DRAG_DROP = false;
+
private BookmarkAccountAdapter mAdapter;
private int mColumnWidth;
private Context mContext;
@@ -280,6 +283,9 @@ public class BookmarkExpandableView extends ExpandableListView
@Override
public boolean onLongClick(View v) {
+ if (!ENABLE_DRAG_DROP) {
+ return false;
+ }
ExtraDragState state = new ExtraDragState();
state.groupPosition = (Integer) v.getTag(R.id.group_position);
state.childPosition = (Integer) v.getTag(R.id.child_position);