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

Commit 594d85ee authored by narinder Rana's avatar narinder Rana
Browse files

remove state and statusIconState

parent 71a2ecb8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -18,4 +18,6 @@
<resources>
    <!-- Whether to show the user switcher in quick settings when only a single user is present. -->
    <bool name="qs_show_user_switcher_for_single_user">false</bool>


</resources>
+2 −2
Original line number Diff line number Diff line
@@ -175,11 +175,11 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue
        if(isHide){
            notificationIconArea.setVisibility(View.GONE);

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


+7 −7
Original line number Diff line number Diff line
@@ -272,13 +272,13 @@ 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();
            }
        }
//        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() {