Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
razerdp committed Jul 2, 2020
1 parent f6add76 commit 46e1558
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@
* 增加KeyEventListener,允许用户外部监听并处理传递到BasePopup的KeyEvent [#296](https://github.com/razerdp/BasePopup/issues/296)
* 动画优化(进度70%)
* 增加BasePopup覆盖导航栏的功能:`setOverlayNavigationBar`,相关讨论:[关于MIUI小白条及类似的“全面屏手势提示线”覆盖问题描述](https://github.com/razerdp/BasePopup/issues/307)
* **【2.2.4.0703】** (2020/07/03)
* 修复lazypopup中gravity覆盖的问题 [#310](https://github.com/razerdp/BasePopup/issues/310)


<br>
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ ext {
minSdkVersion = 19
minLibSdkVersion = 16
targetSdkVersion = 29
versionCode = 110
versionName = '2.2.4.0702'
versionCode = 111
versionName = '2.2.4.0703'

candy = true
group = 'com.github.razerdp'
Expand Down
3 changes: 2 additions & 1 deletion lib/src/main/java/razerdp/basepopup/BasePopupHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ void preMeasurePopupView(View mContentView, int w, int h) {
}

void checkAndSetGravity(ViewGroup.LayoutParams p) {
if (p == null) return;
//如果设置过gravity,则采取设置的gravity,顶替掉xml设置的
if (p == null || this.popupGravity != Gravity.NO_GRAVITY) return;
if (p instanceof LinearLayout.LayoutParams) {
setPopupGravity(gravityMode, ((LinearLayout.LayoutParams) p).gravity);
} else if (p instanceof FrameLayout.LayoutParams) {
Expand Down

0 comments on commit 46e1558

Please sign in to comment.