[AllAppsSearch] Update AllAppsSearch interface to expose the activity to the plugin
Tested=Locally Change-Id: I8986eb50fea2091d8a1aea3cc1c5ee58e3692bc6
This commit is contained in:
parent
a39544d562
commit
7874996823
|
@ -279,7 +279,7 @@ public class AllAppsTransitionController implements StateHandler, OnDeviceProfil
|
|||
R.layout.all_apps_content_layout, mAppsView, false);
|
||||
mAppsView.addView(mPluginContent);
|
||||
mPluginContent.setAlpha(0f);
|
||||
mPlugin.setup((ViewGroup) mPluginContent);
|
||||
mPlugin.setup((ViewGroup) mPluginContent, mLauncher);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
|
||||
package com.android.systemui.plugins;
|
||||
|
||||
import android.app.Activity;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.EditText;
|
||||
|
||||
|
@ -27,8 +28,8 @@ import com.android.systemui.plugins.annotations.ProvidesInterface;
|
|||
@ProvidesInterface(action = AllAppsSearchPlugin.ACTION, version = AllAppsSearchPlugin.VERSION)
|
||||
public interface AllAppsSearchPlugin extends Plugin {
|
||||
String ACTION = "com.android.systemui.action.PLUGIN_ALL_APPS_SEARCH_ACTIONS";
|
||||
int VERSION = 1;
|
||||
int VERSION = 2;
|
||||
|
||||
void setup(ViewGroup parent);
|
||||
void setup(ViewGroup parent, Activity activity);
|
||||
void setEditText(EditText editText);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue