1 /*
2  * Copyright (C) 2022 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 package com.android.launcher3.allapps;
17 
18 import android.content.Context;
19 import android.util.AttributeSet;
20 
21 import com.android.launcher3.DeviceProfile;
22 import com.android.launcher3.secondarydisplay.SecondaryDisplayLauncher;
23 
24 /**
25  * AllAppsContainerView for secondary launcher
26  */
27 public class SecondaryLauncherAllAppsContainerView extends
28         ActivityAllAppsContainerView<SecondaryDisplayLauncher> {
29 
SecondaryLauncherAllAppsContainerView(Context context)30     public SecondaryLauncherAllAppsContainerView(Context context) {
31         this(context, null);
32     }
33 
SecondaryLauncherAllAppsContainerView(Context context, AttributeSet attrs)34     public SecondaryLauncherAllAppsContainerView(Context context, AttributeSet attrs) {
35         this(context, attrs, 0);
36     }
37 
SecondaryLauncherAllAppsContainerView(Context context, AttributeSet attrs, int defStyleAttr)38     public SecondaryLauncherAllAppsContainerView(Context context, AttributeSet attrs,
39             int defStyleAttr) {
40         super(context, attrs, defStyleAttr);
41     }
42 
43     @Override
updateBackgroundVisibility(DeviceProfile deviceProfile)44     protected void updateBackgroundVisibility(DeviceProfile deviceProfile) {}
45 
46     @Override
isInAllApps()47     public boolean isInAllApps() {
48         return mActivityContext.isAppDrawerShown();
49     }
50 }
51