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

Commit 616de308 authored by Alex Chau's avatar Alex Chau Committed by Android (Google) Code Review
Browse files

Merge "Add debug logs for hotseat disapperaed bug" into tm-qpr-dev

parents 83a8dad3 04658bcd
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -160,6 +160,7 @@ import java.util.StringJoiner;


        mIconAlignment.finishAnimation();
        mIconAlignment.finishAnimation();


        Log.d("b/260135164", "onDestroy - updateIconAlphaForHome(1)");
        mLauncher.getHotseat().setIconsAlpha(1f);
        mLauncher.getHotseat().setIconsAlpha(1f);
        mLauncher.getStateManager().removeStateListener(mStateListener);
        mLauncher.getStateManager().removeStateListener(mStateListener);


@@ -404,6 +405,8 @@ import java.util.StringJoiner;
                public void onAnimationEnd(Animator animation) {
                public void onAnimationEnd(Animator animation) {
                    if (isInStashedState && committed) {
                    if (isInStashedState && committed) {
                        // Reset hotseat alpha to default
                        // Reset hotseat alpha to default
                        Log.d("b/260135164",
                                "playStateTransitionAnim#onAnimationEnd - setIconsAlpha(1)");
                        mLauncher.getHotseat().setIconsAlpha(1);
                        mLauncher.getHotseat().setIconsAlpha(1);
                    }
                    }
                }
                }
@@ -452,6 +455,9 @@ import java.util.StringJoiner;
         * Hide Launcher Hotseat icons when Taskbar icons have opacity. Both icon sets
         * Hide Launcher Hotseat icons when Taskbar icons have opacity. Both icon sets
         * should not be visible at the same time.
         * should not be visible at the same time.
         */
         */
        Log.d("b/260135164",
                "updateIconAlphaForHome - setIconsAlpha(" + (hotseatVisible ? 1 : 0)
                        + "), isTaskbarPresent: " + mLauncher.getDeviceProfile().isTaskbarPresent);
        mLauncher.getHotseat().setIconsAlpha(hotseatVisible ? 1 : 0);
        mLauncher.getHotseat().setIconsAlpha(hotseatVisible ? 1 : 0);
        mLauncher.getHotseat().setQsbAlpha(
        mLauncher.getHotseat().setQsbAlpha(
                mLauncher.getDeviceProfile().isQsbInline && !hotseatVisible ? 0 : 1);
                mLauncher.getDeviceProfile().isQsbInline && !hotseatVisible ? 0 : 1);