Loading packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java +0 −15 Original line number Diff line number Diff line Loading @@ -175,9 +175,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { mRotatedBackground = true; mBackground.setRotatedBackground(true); LinearLayout linearLayout = (LinearLayout) mChild; if (to == ROTATION_SEASCAPE) { swapOrder(linearLayout); } if (mSwapOrientation) { linearLayout.setOrientation(LinearLayout.HORIZONTAL); } Loading @@ -188,9 +185,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { mRotatedBackground = false; mBackground.setRotatedBackground(false); LinearLayout linearLayout = (LinearLayout) mChild; if (from == ROTATION_SEASCAPE) { swapOrder(linearLayout); } if (mSwapOrientation) { linearLayout.setOrientation(LinearLayout.VERTICAL); } Loading @@ -199,15 +193,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { } } private void swapOrder(LinearLayout linearLayout) { ArrayList<View> children = new ArrayList<>(); for (int i = 0; i < linearLayout.getChildCount(); i++) { children.add(0, linearLayout.getChildAt(0)); linearLayout.removeViewAt(0); } children.forEach(v -> linearLayout.addView(v)); } private void rotateRight() { rotateRight(this); rotateRight(mChild); Loading Loading
packages/SystemUI/src/com/android/systemui/HardwareUiLayout.java +0 −15 Original line number Diff line number Diff line Loading @@ -175,9 +175,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { mRotatedBackground = true; mBackground.setRotatedBackground(true); LinearLayout linearLayout = (LinearLayout) mChild; if (to == ROTATION_SEASCAPE) { swapOrder(linearLayout); } if (mSwapOrientation) { linearLayout.setOrientation(LinearLayout.HORIZONTAL); } Loading @@ -188,9 +185,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { mRotatedBackground = false; mBackground.setRotatedBackground(false); LinearLayout linearLayout = (LinearLayout) mChild; if (from == ROTATION_SEASCAPE) { swapOrder(linearLayout); } if (mSwapOrientation) { linearLayout.setOrientation(LinearLayout.VERTICAL); } Loading @@ -199,15 +193,6 @@ public class HardwareUiLayout extends FrameLayout implements Tunable { } } private void swapOrder(LinearLayout linearLayout) { ArrayList<View> children = new ArrayList<>(); for (int i = 0; i < linearLayout.getChildCount(); i++) { children.add(0, linearLayout.getChildAt(0)); linearLayout.removeViewAt(0); } children.forEach(v -> linearLayout.addView(v)); } private void rotateRight() { rotateRight(this); rotateRight(mChild); Loading