@@ -1376,12 +1376,34 @@ public void setSystemUiVisibility(int vis, int mask) {
13761376
13771377 private void setStatusBarLowProfile (boolean lightsOut ) {
13781378 if (mLightsOutAnimation == null ) {
1379- mLightsOutAnimation = ObjectAnimator .ofFloat (mStatusBarContents , View .ALPHA , 0 );
1380- mLightsOutAnimation .setDuration (750 );
1381-
1382- mLightsOnAnimation = new AnimatorSet ();
1383- mLightsOnAnimation = ObjectAnimator .ofFloat (mStatusBarContents , View .ALPHA , 1 );
1384- mLightsOnAnimation .setDuration (250 );
1379+ final View notifications = mStatusBarView .findViewById (R .id .notification_icon_area );
1380+ final View systemIcons = mStatusBarView .findViewById (R .id .statusIcons );
1381+ final View signal = mStatusBarView .findViewById (R .id .signal_cluster );
1382+ final View battery = mStatusBarView .findViewById (R .id .battery );
1383+ final View clock = mStatusBarView .findViewById (R .id .clock );
1384+
1385+ final AnimatorSet lightsOutAnim = new AnimatorSet ();
1386+ lightsOutAnim .playTogether (
1387+ ObjectAnimator .ofFloat (notifications , View .ALPHA , 0 ),
1388+ ObjectAnimator .ofFloat (systemIcons , View .ALPHA , 0 ),
1389+ ObjectAnimator .ofFloat (signal , View .ALPHA , 0 ),
1390+ ObjectAnimator .ofFloat (battery , View .ALPHA , 0.5f ),
1391+ ObjectAnimator .ofFloat (clock , View .ALPHA , 0.5f )
1392+ );
1393+ lightsOutAnim .setDuration (750 );
1394+
1395+ final AnimatorSet lightsOnAnim = new AnimatorSet ();
1396+ lightsOnAnim .playTogether (
1397+ ObjectAnimator .ofFloat (notifications , View .ALPHA , 1 ),
1398+ ObjectAnimator .ofFloat (systemIcons , View .ALPHA , 1 ),
1399+ ObjectAnimator .ofFloat (signal , View .ALPHA , 1 ),
1400+ ObjectAnimator .ofFloat (battery , View .ALPHA , 1 ),
1401+ ObjectAnimator .ofFloat (clock , View .ALPHA , 1 )
1402+ );
1403+ lightsOnAnim .setDuration (250 );
1404+
1405+ mLightsOutAnimation = lightsOutAnim ;
1406+ mLightsOnAnimation = lightsOnAnim ;
13851407 }
13861408
13871409 mLightsOutAnimation .cancel ();
0 commit comments