Loading libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java +4 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,10 @@ public class DragLayout extends LinearLayout { MATCH_PARENT)); ((LayoutParams) mDropZoneView1.getLayoutParams()).weight = 1; ((LayoutParams) mDropZoneView2.getLayoutParams()).weight = 1; int orientation = getResources().getConfiguration().orientation; setOrientation(orientation == Configuration.ORIENTATION_LANDSCAPE ? LinearLayout.HORIZONTAL : LinearLayout.VERTICAL); updateContainerMargins(getResources().getConfiguration().orientation); } Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/DragLayout.java +4 −0 Original line number Diff line number Diff line Loading @@ -105,6 +105,10 @@ public class DragLayout extends LinearLayout { MATCH_PARENT)); ((LayoutParams) mDropZoneView1.getLayoutParams()).weight = 1; ((LayoutParams) mDropZoneView2.getLayoutParams()).weight = 1; int orientation = getResources().getConfiguration().orientation; setOrientation(orientation == Configuration.ORIENTATION_LANDSCAPE ? LinearLayout.HORIZONTAL : LinearLayout.VERTICAL); updateContainerMargins(getResources().getConfiguration().orientation); } Loading