@@ -835,7 +835,7 @@ public void showAtLocation(IBinder token, int gravity, int x, int y) {
835835
836836 preparePopup (p );
837837 if (gravity == Gravity .NO_GRAVITY ) {
838- gravity = Gravity .TOP | Gravity .LEFT ;
838+ gravity = Gravity .TOP | Gravity .START ;
839839 }
840840 p .gravity = gravity ;
841841 p .x = x ;
@@ -1003,7 +1003,7 @@ private WindowManager.LayoutParams createPopupLayout(IBinder token) {
10031003 // screen. The view is then positioned to the appropriate location
10041004 // by setting the x and y offsets to match the anchor's bottom
10051005 // left corner
1006- p .gravity = Gravity .LEFT | Gravity .TOP ;
1006+ p .gravity = Gravity .START | Gravity .TOP ;
10071007 p .width = mLastWidth = mWidth ;
10081008 p .height = mLastHeight = mHeight ;
10091009 if (mBackground != null ) {
@@ -1100,7 +1100,7 @@ private boolean findDropDownPosition(View anchor, WindowManager.LayoutParams p,
11001100
11011101 boolean onTop = false ;
11021102
1103- p .gravity = Gravity .LEFT | Gravity .TOP ;
1103+ p .gravity = Gravity .START | Gravity .TOP ;
11041104
11051105 anchor .getLocationOnScreen (mScreenLocation );
11061106 final Rect displayFrame = new Rect ();
@@ -1134,7 +1134,7 @@ private boolean findDropDownPosition(View anchor, WindowManager.LayoutParams p,
11341134 onTop = (displayFrame .bottom - mScreenLocation [1 ] - anchor .getHeight () - yoff ) <
11351135 (mScreenLocation [1 ] - yoff - displayFrame .top );
11361136 if (onTop ) {
1137- p .gravity = Gravity .LEFT | Gravity .BOTTOM ;
1137+ p .gravity = Gravity .START | Gravity .BOTTOM ;
11381138 p .y = root .getHeight () - mDrawingLocation [1 ] + yoff ;
11391139 } else {
11401140 p .y = mDrawingLocation [1 ] + anchor .getHeight () + yoff ;
0 commit comments