blob: 4be610fcd9ee398cb77581c96f6ce10c1d792e84 [file] [log] [blame]
Dave Mankoffeb593ae2019-09-04 11:31:55 -04001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Dave Mankofff4736812019-10-18 17:25:50 -040017package com.android.systemui.dagger;
Dave Mankoffeb593ae2019-09-04 11:31:55 -040018
19import android.app.Activity;
20
Dave Mankofff4736812019-10-18 17:25:50 -040021import com.android.systemui.ForegroundServicesDialog;
Dave Mankoffeb593ae2019-09-04 11:31:55 -040022import com.android.systemui.tuner.TunerActivity;
23
24import dagger.Binds;
25import dagger.Module;
26import dagger.multibindings.ClassKey;
27import dagger.multibindings.IntoMap;
28
29/**
30 * Services and Activities that are injectable should go here.
31 */
32@Module
33public abstract class ActivityBinder {
34 /** Inject into TunerActivity. */
35 @Binds
36 @IntoMap
37 @ClassKey(TunerActivity.class)
38 public abstract Activity bindTunerActivity(TunerActivity activity);
39
40 /** Inject into ForegroundServicesDialog. */
41 @Binds
42 @IntoMap
43 @ClassKey(ForegroundServicesDialog.class)
44 public abstract Activity bindForegroundServicesDialog(ForegroundServicesDialog activity);
45}