Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +2 −5 Original line number Diff line number Diff line Loading @@ -175,14 +175,11 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue 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(); } isLayoutRtl()=false; } else { notificationIconArea.setVisibility(View.INVISIBLE); isLayoutRtl()=true; } Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +8 −8 Original line number Diff line number Diff line Loading @@ -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() { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +2 −5 Original line number Diff line number Diff line Loading @@ -175,14 +175,11 @@ public class CollapsedStatusBarFragment extends Fragment implements CommandQueue 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(); } isLayoutRtl()=false; } else { notificationIconArea.setVisibility(View.INVISIBLE); isLayoutRtl()=true; } Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusIconContainer.java +8 −8 Original line number Diff line number Diff line Loading @@ -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() { Loading