diff options
author | John Reck <jreck@google.com> | 2012-04-24 16:02:13 -0700 |
---|---|---|
committer | John Reck <jreck@google.com> | 2012-04-24 16:02:13 -0700 |
commit | 821e426ad369be3d6decb51245dd1c3df653a0b7 (patch) | |
tree | 02ad76b80651875731041cefeb4ef6da33306e1c /src/com/android/browser/view | |
parent | af991f93d09bf4d2db3c7a8c03ca3ca4352bed83 (diff) | |
download | packages_apps_Browser-821e426ad369be3d6decb51245dd1c3df653a0b7.zip packages_apps_Browser-821e426ad369be3d6decb51245dd1c3df653a0b7.tar.gz packages_apps_Browser-821e426ad369be3d6decb51245dd1c3df653a0b7.tar.bz2 |
Remove more unused code
Change-Id: If5b84b904ca117b27dabdac87cb43682cf21b178
Diffstat (limited to 'src/com/android/browser/view')
-rw-r--r-- | src/com/android/browser/view/BookmarkExpandableView.java | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/com/android/browser/view/BookmarkExpandableView.java b/src/com/android/browser/view/BookmarkExpandableView.java index da96438..095bb7b 100644 --- a/src/com/android/browser/view/BookmarkExpandableView.java +++ b/src/com/android/browser/view/BookmarkExpandableView.java @@ -17,7 +17,6 @@ package com.android.browser.view; import android.content.Context; -import android.database.Cursor; import android.database.DataSetObserver; import android.provider.BrowserContract; import android.util.AttributeSet; @@ -33,12 +32,8 @@ import android.widget.FrameLayout; import android.widget.LinearLayout; import android.widget.TextView; -import com.android.browser.BookmarkDragHandler; -import com.android.browser.BookmarkDragHandler.BookmarkDragAdapter; -import com.android.browser.BookmarkDragHandler.BookmarkDragState; import com.android.browser.BreadCrumbView; import com.android.browser.BrowserBookmarksAdapter; -import com.android.browser.BrowserBookmarksPage.ExtraDragState; import com.android.browser.R; import com.android.internal.view.menu.MenuBuilder; @@ -53,9 +48,6 @@ public class BookmarkExpandableView extends ExpandableListView public static final String LOCAL_ACCOUNT_NAME = "local"; - // Experimental drag & drop - private static final boolean ENABLE_DRAG_DROP = false; - private BookmarkAccountAdapter mAdapter; private int mColumnWidth; private Context mContext; @@ -64,7 +56,6 @@ public class BookmarkExpandableView extends ExpandableListView private OnCreateContextMenuListener mOnCreateContextMenuListener; private boolean mLongClickable; private BreadCrumbView.Controller mBreadcrumbController; - private BookmarkDragHandler mDragHandler; private int mMaxColumnCount; public BookmarkExpandableView(Context context) { @@ -224,36 +215,6 @@ public class BookmarkExpandableView extends ExpandableListView return mAdapter.mChildren.get(groupPosition); } - public BookmarkDragAdapter getDragAdapter() { - return mDragAdapter; - } - - public void showContextMenuForState(BookmarkDragState state) { - ExtraDragState extraState = (ExtraDragState) state.extraState; - mContextMenuInfo = new BookmarkContextMenuInfo( - extraState.childPosition, - extraState.groupPosition); - if (getParent() != null) { - getParent().showContextMenuForChild(BookmarkExpandableView.this); - } - } - - private BookmarkDragAdapter mDragAdapter = new BookmarkDragAdapter() { - - @Override - public void setBookmarkDragHandler(BookmarkDragHandler handler) { - mDragHandler = handler; - } - - @Override - public Cursor getItemForView(View v) { - int groupPosition = (Integer) v.getTag(R.id.group_position); - int childPosition = (Integer) v.getTag(R.id.child_position); - return getChildAdapter(groupPosition).getItem(childPosition); - } - - }; - private OnClickListener mChildClickListener = new OnClickListener() { @Override @@ -288,23 +249,6 @@ public class BookmarkExpandableView extends ExpandableListView } }; - private OnLongClickListener mChildOnLongClickListener = new OnLongClickListener() { - - @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); - long id = (Long) v.getTag(R.id.child_id); - Cursor c = getChildAdapter(state.groupPosition) - .getItem(state.childPosition); - return mDragHandler.startDrag(v, c, id, state); - } - }; - public BreadCrumbView getBreadCrumbs(int groupPosition) { return mAdapter.getBreadCrumbView(groupPosition); } @@ -390,10 +334,6 @@ public class BookmarkExpandableView extends ExpandableListView v.setTag(R.id.child_id, childAdapter.getItemId(realChildPosition)); v.setOnClickListener(mChildClickListener); v.setLongClickable(mLongClickable); - if (mDragHandler != null) { - v.setOnLongClickListener(mChildOnLongClickListener); - mDragHandler.registerBookmarkDragHandler(v); - } if (cv == null) { row.addView(v); } else if (cv != v) { |