Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78749968 authored by Hilary Huo's avatar Hilary Huo
Browse files

[AllAppsSearch] Update AllAppsSearch interface to expose the activity to the plugin

Tested=Locally

Change-Id: I8986eb50fea2091d8a1aea3cc1c5ee58e3692bc6
parent a39544d5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −2
Original line number Diff line number Diff line
@@ -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);
}