Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +22 −22 Original line number Diff line number Diff line Loading @@ -380,28 +380,28 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { public void moveLeftRightSystemIcon(int ishide_notificationIcon){ Log.e("MoveLeftRightSystemIcon", "MoveLeftRightSystemIcon ......Testing ....."+ishide_notificationIcon); // int childCount = getChildCount(); // float width = getWidth(); // if(ishide_notificationIcon==1){ // //hide notificaton icon and move system icon right to left // if (!isLayoutRtl()) { // for (int i = 0; i < childCount; i++) { // View child = getChildAt(i); // StatusIconState state = getViewStateFromChild(child); // state.xTranslation = width - state.xTranslation - child.getWidth(); // } // } // } // else { // //show notification icon and move system icon left to right // if (isLayoutRtl()) { // for (int i = 0; i < childCount; i++) { // View child = getChildAt(i); // StatusIconState state = getViewStateFromChild(child); // state.xTranslation = width - state.xTranslation - child.getWidth(); // } // } // } int childCount = getChildCount(); float width = getWidth(); if(ishide_notificationIcon==1){ //hide notificaton icon and move system icon right to left if (!isLayoutRtl()) { for (int i = 0; i < childCount; i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); } } } else { //show notification icon and move system icon left to right if (isLayoutRtl()) { for (int i = 0; i < childCount; i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); } } } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +22 −22 Original line number Diff line number Diff line Loading @@ -380,28 +380,28 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout { public void moveLeftRightSystemIcon(int ishide_notificationIcon){ Log.e("MoveLeftRightSystemIcon", "MoveLeftRightSystemIcon ......Testing ....."+ishide_notificationIcon); // int childCount = getChildCount(); // float width = getWidth(); // if(ishide_notificationIcon==1){ // //hide notificaton icon and move system icon right to left // if (!isLayoutRtl()) { // for (int i = 0; i < childCount; i++) { // View child = getChildAt(i); // StatusIconState state = getViewStateFromChild(child); // state.xTranslation = width - state.xTranslation - child.getWidth(); // } // } // } // else { // //show notification icon and move system icon left to right // if (isLayoutRtl()) { // for (int i = 0; i < childCount; i++) { // View child = getChildAt(i); // StatusIconState state = getViewStateFromChild(child); // state.xTranslation = width - state.xTranslation - child.getWidth(); // } // } // } int childCount = getChildCount(); float width = getWidth(); if(ishide_notificationIcon==1){ //hide notificaton icon and move system icon right to left if (!isLayoutRtl()) { for (int i = 0; i < childCount; i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); } } } else { //show notification icon and move system icon left to right if (isLayoutRtl()) { for (int i = 0; i < childCount; i++) { View child = getChildAt(i); StatusIconState state = getViewStateFromChild(child); state.xTranslation = width - state.xTranslation - child.getWidth(); } } } } Loading