Use public API to launch search UI.

Test: manual
Change-Id: I5527dd6de5990aed365b6e78a9492ced00b99565
This commit is contained in:
Fan Zhang
2018-10-18 16:23:47 -07:00
parent 31a59e56d3
commit 6b88c9c1b7
2 changed files with 4 additions and 2 deletions

View File

@@ -23,6 +23,7 @@ import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.provider.Settings;
import android.view.View;
import android.widget.Toolbar;
@@ -35,7 +36,7 @@ import com.android.settingslib.search.SearchIndexableResources;
*/
public interface SearchFeatureProvider {
Intent SEARCH_UI_INTENT = new Intent("com.android.settings.action.SETTINGS_SEARCH");
Intent SEARCH_UI_INTENT = new Intent(Settings.ACTION_APP_SEARCH_SETTINGS);
int REQUEST_CODE = 0;
/**