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

Commit 7031e3f8 authored by Thiago Vinícius Freire de Araújo Ribeiro's avatar Thiago Vinícius Freire de Araújo Ribeiro Committed by Gerrit Code Review
Browse files

Status Bar: Fade CM widgets on Low Profile mode

CyanogenMod's status bar widgets do not fade (Circle battery, signal
text, etc), when low profile mode is entered.

This makes them behave.

Change-Id: Ibb79390d7ec08ce1bdc86a2d5e452ab4245f474f
parent b75eace6
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2117,7 +2117,10 @@ public class PhoneStatusBar extends BaseStatusBar {
            final View notifications = mStatusBarView.findViewById(R.id.notification_icon_area);
            final View systemIcons = mStatusBarView.findViewById(R.id.statusIcons);
            final View signal = mStatusBarView.findViewById(R.id.signal_cluster);
            final View signal2 = mStatusBarView.findViewById(R.id.signal_cluster_text);
            final View battery = mStatusBarView.findViewById(R.id.battery);
            final View battery2 = mStatusBarView.findViewById(R.id.battery_text);
            final View battery3 = mStatusBarView.findViewById(R.id.circle_battery);
            final View clock = mStatusBarView.findViewById(R.id.clock);

            final AnimatorSet lightsOutAnim = new AnimatorSet();
@@ -2125,7 +2128,10 @@ public class PhoneStatusBar extends BaseStatusBar {
                    ObjectAnimator.ofFloat(notifications, View.ALPHA, 0),
                    ObjectAnimator.ofFloat(systemIcons, View.ALPHA, 0),
                    ObjectAnimator.ofFloat(signal, View.ALPHA, 0),
                    ObjectAnimator.ofFloat(signal2, View.ALPHA, 0),
                    ObjectAnimator.ofFloat(battery, View.ALPHA, 0.5f),
                    ObjectAnimator.ofFloat(battery2, View.ALPHA, 0.5f),
                    ObjectAnimator.ofFloat(battery3, View.ALPHA, 0.5f),
                    ObjectAnimator.ofFloat(clock, View.ALPHA, 0.5f)
                );
            lightsOutAnim.setDuration(750);
@@ -2135,7 +2141,10 @@ public class PhoneStatusBar extends BaseStatusBar {
                    ObjectAnimator.ofFloat(notifications, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(systemIcons, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(signal, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(signal2, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(battery, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(battery2, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(battery3, View.ALPHA, 1),
                    ObjectAnimator.ofFloat(clock, View.ALPHA, 1)
                );
            lightsOnAnim.setDuration(250);