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

Commit eb4a1921 authored by narinder Rana's avatar narinder Rana
Browse files

add function showHideNotificationIcon and moveLeftRight System icon

parent 52b9d81f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -179,6 +179,17 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        showNotificationIconArea(false);
    }



    public void showHideNotificationIcon(){

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

        ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        notificationIconArea.setVisibility(View.GONE);
    }


    @Override
    public void disable(int displayId, int state1, int state2, boolean animate) {
        if (displayId != getContext().getDisplayId()) {
+8 −1
Original line number Diff line number Diff line
@@ -328,7 +328,7 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
        }

        // Stole this from NotificationIconContainer. Not optimal but keeps the layout logic clean
        if (isLayoutRtl()) {
        if (!isLayoutRtl()) {
            for (int i = 0; i < childCount; i++) {
                View child = getChildAt(i);
                StatusIconState state = getViewStateFromChild(child);
@@ -337,6 +337,13 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
        }
    }

    public void MoveLeftRightSystemIcon(){

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

    }


    private void applyIconStates() {
        for (int i = 0; i < getChildCount(); i++) {
            View child = getChildAt(i);