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

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

manage using programing for Test

parent d1fa8f57
Loading
Loading
Loading
Loading
+25 −0
Original line number Diff line number Diff line
@@ -163,7 +163,32 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        notificationIconArea.addView(mNotificationIconAreaInner);
        // 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);

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



    }


    @Override
    public void disable(int state1, int state2, boolean animate) {
+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() {