Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/CollapsedStatusBarFragment.java +25 −0 Original line number Diff line number Diff line Loading @@ -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) { 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 +25 −0 Original line number Diff line number Diff line Loading @@ -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) { 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