Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +0 −1 Original line number Diff line number Diff line Loading @@ -423,7 +423,6 @@ public class BubbleController { WindowContainerTransaction t) { // This is triggered right before the rotation is applied if (fromRotation != toRotation) { mBubblePositioner.setRotation(toRotation); if (mStackView != null) { // Layout listener set on stackView will update the positioner // once the rotation is applied Loading libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubblePositioner.java +3 −5 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; import android.annotation.IntDef; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Insets; import android.graphics.PointF; Loading Loading @@ -112,10 +113,6 @@ public class BubblePositioner { update(); } public void setRotation(int rotation) { mRotation = rotation; } /** * Available space and inset information. Call this when config changes * occur or when added to a window. Loading Loading @@ -273,7 +270,8 @@ public class BubblePositioner { /** @return whether the device is in landscape orientation. */ public boolean isLandscape() { return mRotation == Surface.ROTATION_90 || mRotation == Surface.ROTATION_270; return mContext.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; } /** @return whether the screen is considered large. */ Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleController.java +0 −1 Original line number Diff line number Diff line Loading @@ -423,7 +423,6 @@ public class BubbleController { WindowContainerTransaction t) { // This is triggered right before the rotation is applied if (fromRotation != toRotation) { mBubblePositioner.setRotation(toRotation); if (mStackView != null) { // Layout listener set on stackView will update the positioner // once the rotation is applied Loading
libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubblePositioner.java +3 −5 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ import static java.lang.annotation.RetentionPolicy.SOURCE; import android.annotation.IntDef; import android.content.Context; import android.content.res.Configuration; import android.content.res.Resources; import android.graphics.Insets; import android.graphics.PointF; Loading Loading @@ -112,10 +113,6 @@ public class BubblePositioner { update(); } public void setRotation(int rotation) { mRotation = rotation; } /** * Available space and inset information. Call this when config changes * occur or when added to a window. Loading Loading @@ -273,7 +270,8 @@ public class BubblePositioner { /** @return whether the device is in landscape orientation. */ public boolean isLandscape() { return mRotation == Surface.ROTATION_90 || mRotation == Surface.ROTATION_270; return mContext.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE; } /** @return whether the screen is considered large. */ Loading