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

Commit 5c703974 authored by narinder Rana's avatar narinder Rana
Browse files

manage statusIconState function

parent 594d85ee
Loading
Loading
Loading
Loading
+0 −16
Original line number Diff line number Diff line
@@ -164,27 +164,11 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        // Default to showing until we know otherwise.
        showNotificationIconArea(false);

        showHideNotificationIconArea(true);

    }


    public void showHideNotificationIconArea(boolean isHide){

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

           // isLayoutRtl()=false;
        }
        else {
            notificationIconArea.setVisibility(View.INVISIBLE);
            //isLayoutRtl()=true;
        }



    }


    @Override
+26 −0
Original line number Diff line number Diff line
@@ -279,6 +279,32 @@ public class StatusIconContainer extends AlphaOptimizedLinearLayout {
//                state.xTranslation = width - state.xTranslation - child.getWidth();
//            }
//        }

        showHideNotificationIconArea(true);

    }


    public void showHideNotificationIconArea(boolean isHide){

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

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



    }

    private void applyIconStates() {