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

Commit 3344593e authored by Caitlin Cassidy's avatar Caitlin Cassidy
Browse files

[Dagger] Add PhoneStatusBarViewController.

Controller will be filled out in future CLs.

Test: atest and manual
Bug: 138786270
Change-Id: Id90471ce35e366ab4fba363379d7d61fcb277da3
parent 876cf97c
Loading
Loading
Loading
Loading
+34 −0
Original line number Original line Diff line number Diff line
/*
 * Copyright (C) 2021 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.systemui.statusbar.phone;

import com.android.systemui.util.ViewController;

/** Controller for {@link PhoneStatusBarView}. */
public class PhoneStatusBarViewController extends ViewController<PhoneStatusBarView> {
    protected PhoneStatusBarViewController(PhoneStatusBarView view) {
        super(view);
    }

    @Override
    protected void onViewAttached() {
    }

    @Override
    protected void onViewDetached() {
    }
}
+4 −0
Original line number Original line Diff line number Diff line
@@ -461,6 +461,7 @@ public class StatusBar extends SystemUI implements
    protected NotificationShadeWindowView mNotificationShadeWindowView;
    protected NotificationShadeWindowView mNotificationShadeWindowView;
    protected StatusBarWindowView mPhoneStatusBarWindow;
    protected StatusBarWindowView mPhoneStatusBarWindow;
    protected PhoneStatusBarView mStatusBarView;
    protected PhoneStatusBarView mStatusBarView;
    private PhoneStatusBarViewController mPhoneStatusBarViewController;
    private AuthRippleController mAuthRippleController;
    private AuthRippleController mAuthRippleController;
    private int mStatusBarWindowState = WINDOW_STATE_SHOWING;
    private int mStatusBarWindowState = WINDOW_STATE_SHOWING;
    protected NotificationShadeWindowController mNotificationShadeWindowController;
    protected NotificationShadeWindowController mNotificationShadeWindowController;
@@ -1204,6 +1205,9 @@ public class StatusBar extends SystemUI implements
                    mStatusBarView.setPanel(mNotificationPanelViewController);
                    mStatusBarView.setPanel(mNotificationPanelViewController);
                    mStatusBarView.setScrimController(mScrimController);
                    mStatusBarView.setScrimController(mScrimController);
                    mStatusBarView.setExpansionChangedListeners(mExpansionChangedListeners);
                    mStatusBarView.setExpansionChangedListeners(mExpansionChangedListeners);
                    mPhoneStatusBarViewController =
                            new PhoneStatusBarViewController(mStatusBarView);
                    mPhoneStatusBarViewController.init();


                    // CollapsedStatusBarFragment re-inflated PhoneStatusBarView and both of
                    // CollapsedStatusBarFragment re-inflated PhoneStatusBarView and both of
                    // mStatusBarView.mExpanded and mStatusBarView.mBouncerShowing are false.
                    // mStatusBarView.mExpanded and mStatusBarView.mBouncerShowing are false.