Merge "[AllAppsSearch] Update AllAppsSearch interface to expose the activity to the plugin" into ub-launcher3-rvc-dev am: e6843777b0

Change-Id: Iecf2d87e6411c34b872feb6f54a81096505c414c
This commit is contained in:
TreeHugger Robot
2020-05-01 23:25:28 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 3 deletions
@@ -281,7 +281,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);
}