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

Commit 4216ba3f authored by narinder Rana's avatar narinder Rana
Browse files

manage statusIconState function : bug fix

parent 5c703974
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -287,19 +287,19 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {

    public void showHideNotificationIconArea(boolean isHide){

        ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        //ViewGroup notificationIconArea = mStatusBar.findViewById(R.id.notification_icon_area);
        if(isHide){
            notificationIconArea.setVisibility(View.GONE);
          //  notificationIconArea.setVisibility(View.GONE);
            // isLayoutRtl()=false;

            for (int i = 0; i < childCount; i++) {
            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();
            }
        }
        else {
            notificationIconArea.setVisibility(View.INVISIBLE);
            //notificationIconArea.setVisibility(View.INVISIBLE);
            //isLayoutRtl()=true;
        }