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

Commit ace9aa40 authored by Justin Weir's avatar Justin Weir Committed by Android (Google) Code Review
Browse files

Merge changes Ic7751887,I87828825,I223185ac into tm-qpr-dev

* changes:
  Delete PanelViewController
  Remove references to PanelViewController
  Prepare PanelViewController to be absorbed by NPVC
parents 638d4593 1b6cfaf0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -33,10 +33,10 @@ import com.android.keyguard.KeyguardUpdateMonitor
import com.android.systemui.ActivityIntentHelper
import com.android.systemui.dagger.qualifiers.Main
import com.android.systemui.plugins.ActivityStarter
import com.android.systemui.shade.NotificationPanelViewController
import com.android.systemui.shared.system.ActivityManagerKt.isInForeground
import com.android.systemui.statusbar.StatusBarState
import com.android.systemui.statusbar.phone.CentralSurfaces
import com.android.systemui.shade.PanelViewController
import com.android.systemui.statusbar.policy.KeyguardStateController
import java.util.concurrent.Executor
import javax.inject.Inject
@@ -117,7 +117,7 @@ class CameraGestureHelper @Inject constructor(
                    )
                } catch (e: RemoteException) {
                    Log.w(
                        PanelViewController.TAG,
                        NotificationPanelViewController.TAG,
                        "Unable to start camera activity",
                        e
                    )
+6 −5
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@ import com.android.systemui.R;
import com.android.systemui.dagger.qualifiers.Main;
import com.android.systemui.dreams.touch.BouncerSwipeTouchHandler;
import com.android.systemui.dreams.touch.DreamTouchHandler;
import com.android.systemui.shade.PanelViewController;
import com.android.systemui.shade.NotificationPanelViewController;
import com.android.wm.shell.animation.FlingAnimationUtils;

import javax.inject.Named;
@@ -77,8 +77,9 @@ public class BouncerSwipeModule {
            Provider<FlingAnimationUtils.Builder> flingAnimationUtilsBuilderProvider) {
        return flingAnimationUtilsBuilderProvider.get()
                .reset()
                .setMaxLengthSeconds(PanelViewController.FLING_CLOSING_MAX_LENGTH_SECONDS)
                .setSpeedUpFactor(PanelViewController.FLING_SPEED_UP_FACTOR)
                .setMaxLengthSeconds(
                        NotificationPanelViewController.FLING_CLOSING_MAX_LENGTH_SECONDS)
                .setSpeedUpFactor(NotificationPanelViewController.FLING_SPEED_UP_FACTOR)
                .build();
    }

@@ -91,8 +92,8 @@ public class BouncerSwipeModule {
            Provider<FlingAnimationUtils.Builder> flingAnimationUtilsBuilderProvider) {
        return flingAnimationUtilsBuilderProvider.get()
                .reset()
                .setMaxLengthSeconds(PanelViewController.FLING_MAX_LENGTH_SECONDS)
                .setSpeedUpFactor(PanelViewController.FLING_SPEED_UP_FACTOR)
                .setMaxLengthSeconds(NotificationPanelViewController.FLING_MAX_LENGTH_SECONDS)
                .setSpeedUpFactor(NotificationPanelViewController.FLING_SPEED_UP_FACTOR)
                .build();
    }

+1361 −219

File changed.

Preview size limit exceeded, changes collapsed.

+2 −2
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ import com.android.systemui.statusbar.phone.KeyguardBottomAreaView;
public abstract class PanelView extends FrameLayout {
    public static final boolean DEBUG = false;
    public static final String TAG = PanelView.class.getSimpleName();
    private PanelViewController.TouchHandler mTouchHandler;
    private NotificationPanelViewController.TouchHandler mTouchHandler;

    protected CentralSurfaces mCentralSurfaces;
    protected HeadsUpManagerPhone mHeadsUpManager;
@@ -49,7 +49,7 @@ public abstract class PanelView extends FrameLayout {
        super(context, attrs, defStyleAttr);
    }

    public void setOnTouchListener(PanelViewController.TouchHandler touchHandler) {
    public void setOnTouchListener(NotificationPanelViewController.TouchHandler touchHandler) {
        super.setOnTouchListener(touchHandler);
        mTouchHandler = touchHandler;
    }
+0 −1489

File deleted.

Preview size limit exceeded, changes collapsed.

Loading