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

Commit 3e2ac9d2 authored by narinder Rana's avatar narinder Rana
Browse files

add function showHideNotificationIcon and moveLeftRight System icon

parent eb4a1921
Loading
Loading
Loading
Loading
+16 −8
Original line number Diff line number Diff line
@@ -328,18 +328,26 @@ 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++) {
//        if (isLayoutRtl()) {
//            for (int i = 0; i < childCount; i++) {
//                View child = getChildAt(i);
//                StatusIconState state = getViewStateFromChild(child);
//                state.xTranslation = width - state.xTranslation - child.getWidth();
//            }
//        }
    }

    public void moveLeftRightSystemIcon(){

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

        for (int i = 0; i < getChildCount(); i++) {
            View child = getChildAt(i);
            StatusIconState state = getViewStateFromChild(child);
            state.xTranslation = width - state.xTranslation - child.getWidth();
            }
        }
            state.xTranslation = getWidth() - state.xTranslation - child.getWidth();
        }

    public void MoveLeftRightSystemIcon(){

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

    }