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

Commit 8876b561 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Make BubbleOverflowActivity Injectable"

parents b995a435 6cdc706c
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -10,6 +10,8 @@ import androidx.recyclerview.widget.RecyclerView;

import com.android.systemui.R;

import javax.inject.Inject;

/**
 * Activity for showing aged out bubbles.
 * Must be public to be accessible to androidx...AppComponentFactory
@@ -17,6 +19,12 @@ import com.android.systemui.R;
public class BubbleOverflowActivity extends Activity {
    private RecyclerView mRecyclerView;
    private int mMaxBubbles;
    private BubbleController mBubbleController;

    @Inject
    public BubbleOverflowActivity(BubbleController controller) {
        mBubbleController = controller;
    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
@@ -64,6 +72,6 @@ public class BubbleOverflowActivity extends Activity {
    }

    public void onDestroy() {
        super.onStop();
        super.onDestroy();
    }
}
+7 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package com.android.systemui.dagger;
import android.app.Activity;

import com.android.systemui.ForegroundServicesDialog;
import com.android.systemui.bubbles.BubbleOverflowActivity;
import com.android.systemui.keyguard.WorkLockActivity;
import com.android.systemui.screenrecord.ScreenRecordDialog;
import com.android.systemui.settings.BrightnessDialog;
@@ -63,4 +64,10 @@ public abstract class DefaultActivityBinder {
    @IntoMap
    @ClassKey(ScreenRecordDialog.class)
    public abstract Activity bindScreenRecordDialog(ScreenRecordDialog activity);

    /** Inject into BubbleOverflowActivity. */
    @Binds
    @IntoMap
    @ClassKey(BubbleOverflowActivity.class)
    public abstract Activity bindBubbleOverflowActivity(BubbleOverflowActivity activity);
}