Use Search.SOURCE from android-common
The SOURCE (search source identifier) constant is moving from hidden in android.app.SearchManager to com.android.common.Search. Part of http://b/issue?id=2429556 Change-Id: I68fa792f2d452aadcb9216f5c780bd082ca5039f
This commit is contained in:
@@ -19,6 +19,8 @@ include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE_TAGS := optional
|
||||
|
||||
LOCAL_STATIC_JAVA_LIBRARIES := android-common
|
||||
|
||||
LOCAL_SRC_FILES := $(call all-subdir-java-files)
|
||||
|
||||
LOCAL_PACKAGE_NAME := Launcher2
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.launcher2;
|
||||
|
||||
import com.android.common.Search;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.app.AlertDialog;
|
||||
import android.app.Dialog;
|
||||
@@ -963,7 +965,7 @@ public final class Launcher extends Activity
|
||||
}
|
||||
if (appSearchData == null) {
|
||||
appSearchData = new Bundle();
|
||||
appSearchData.putString(SearchManager.SOURCE, "launcher-search");
|
||||
appSearchData.putString(Search.SOURCE, "launcher-search");
|
||||
}
|
||||
|
||||
final SearchManager searchManager =
|
||||
|
||||
Reference in New Issue
Block a user