diff options
author | Bjorn Bringert <bringert@android.com> | 2009-07-27 11:48:32 +0100 |
---|---|---|
committer | Bjorn Bringert <bringert@android.com> | 2009-07-27 11:48:32 +0100 |
commit | 9377738cdbb7eb0a1267cb536443cbed700ff5e9 (patch) | |
tree | ddef17dfb1761fe7fc820a6a476c10c77b303909 /core/java | |
parent | 6ddaa3497ce7af2c303771365449501e2be52511 (diff) | |
download | frameworks_base-9377738cdbb7eb0a1267cb536443cbed700ff5e9.zip frameworks_base-9377738cdbb7eb0a1267cb536443cbed700ff5e9.tar.gz frameworks_base-9377738cdbb7eb0a1267cb536443cbed700ff5e9.tar.bz2 |
Remove search dialog PRE_CLOSE event
This is part of the fix for http://b/issue?id=2000655
Diffstat (limited to 'core/java')
-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"); |