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

Commit 245e565d authored by narinder Rana's avatar narinder Rana
Browse files

system icon move to left : remove bug

parent 205d1044
Loading
Loading
Loading
Loading
+22 −21
Original line number Diff line number Diff line
@@ -380,27 +380,28 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
    public void moveLeftRightSystemIcon(int ishide_notificationIcon){

        Log.e("MoveLeftRightSystemIcon", "MoveLeftRightSystemIcon ......Testing ....."+ishide_notificationIcon);

       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();
//               }
//           }
//       }

    }