diff options
-rw-r--r-- | core/java/android/app/SearchManager.java | 7 | ||||
-rw-r--r-- | core/java/android/app/SuggestionsAdapter.java | 20 |
2 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/app/SearchManager.java b/core/java/android/app/SearchManager.java index 000f394..fd559d6 100644 --- a/core/java/android/app/SearchManager.java +++ b/core/java/android/app/SearchManager.java @@ -1215,13 +1215,6 @@ public class SearchManager = "DialogCursorProtocol.POST_REFRESH.displayNotify"; /** - * Just before closing the cursor. - */ - public final static int PRE_CLOSE = 1; - public final static String PRE_CLOSE_SEND_MAX_DISPLAY_POS - = "DialogCursorProtocol.PRE_CLOSE.sendDisplayPosition"; - - /** * When a position has been clicked. */ public final static int CLICK = 2; diff --git a/core/java/android/app/SuggestionsAdapter.java b/core/java/android/app/SuggestionsAdapter.java index 67ca734..4a00e48 100644 --- a/core/java/android/app/SuggestionsAdapter.java +++ b/core/java/android/app/SuggestionsAdapter.java @@ -194,10 +194,6 @@ class SuggestionsAdapter extends ResourceCursorAdapter { public void changeCursor(Cursor c) { if (DBG) Log.d(LOG_TAG, "changeCursor(" + c + ")"); - if (mCursor != null) { - callCursorPreClose(mCursor); - } - try { super.changeCursor(c); if (c != null) { @@ -213,22 +209,6 @@ class SuggestionsAdapter extends ResourceCursorAdapter { } } - /** - * Handle sending and receiving information associated with - * {@link DialogCursorProtocol#PRE_CLOSE}. - * - * @param cursor The cursor to call. - */ - private void callCursorPreClose(Cursor cursor) { - if (!mGlobalSearchMode) return; - final Bundle request = new Bundle(); - request.putInt(DialogCursorProtocol.METHOD, DialogCursorProtocol.PRE_CLOSE); - request.putInt(DialogCursorProtocol.PRE_CLOSE_SEND_MAX_DISPLAY_POS, mMaxDisplayed); - final Bundle response = cursor.respond(request); - - mMaxDisplayed = -1; - } - @Override public void notifyDataSetChanged() { if (DBG) Log.d(LOG_TAG, "notifyDataSetChanged"); |