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

Commit 71a2ecb8 authored by narinder Rana's avatar narinder Rana
Browse files

manage using programing for Test

parent 5c915aee
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -175,14 +175,11 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        if(isHide){
            notificationIconArea.setVisibility(View.GONE);

            for (int i = 0; i < getChildCount(); i++) {
                View child = getChildAt(i);
                StatusIconState state = getViewStateFromChild(child);
                state.xTranslation = width - state.xTranslation - child.getWidth();
            }
            isLayoutRtl()=false;
        }
        else {
            notificationIconArea.setVisibility(View.INVISIBLE);
            isLayoutRtl()=true;
        }


+8 −8
Original line number Diff line number Diff line
@@ -271,14 +271,14 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
            }
        }

//        // Stole this from NotificationIconContainer. Not optimal but keeps the layout logic clean
//        if (isLayoutRtl()) {
//            for (int i = 0; i < childCount; i++) {
//                View child = getChildAt(i);
//                StatusIconState state = getViewStateFromChild(child);
//                state.xTranslation = width - state.xTranslation - child.getWidth();
//            }
//        }
        // Stole this from NotificationIconContainer. Not optimal but keeps the layout logic clean
        if (isLayoutRtl()) {
            for (int i = 0; i < childCount; i++) {
                View child = getChildAt(i);
                StatusIconState state = getViewStateFromChild(child);
                state.xTranslation = width - state.xTranslation - child.getWidth();
            }
        }
    }

    private void applyIconStates() {