|
@@ -112,8 +112,8 @@ public class BottomDialogTouchEventInterceptor {
|
|
|
} else {
|
|
|
if (impl.boxBkg.getY() > bkgOldY + dip2px(35)) {
|
|
|
impl.preDismiss();
|
|
|
- } else if (impl.boxBkg.getY() < bkgOldY - dip2px(5)) {
|
|
|
- ObjectAnimator enterAnim = ObjectAnimator.ofFloat(impl.boxBkg, "y", impl.boxBkg.getY(), impl.boxRoot.getUnsafePlace().top);
|
|
|
+ } else {
|
|
|
+ ObjectAnimator enterAnim = ObjectAnimator.ofFloat(impl.boxBkg, "y", impl.boxBkg.getY(), impl.bkgEnterAimY);
|
|
|
enterAnim.setDuration(300);
|
|
|
enterAnim.start();
|
|
|
}
|