Skip to content

Commit

Permalink
try to fix popup height
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Dec 14, 2022
1 parent dbfa6ce commit 81a918c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
ext.xpopup_version = "2.9.17-beta"
ext.xpopup_version = "2.9.17-beta2"
repositories {
google()
mavenCentral()
Expand Down
11 changes: 6 additions & 5 deletions library/src/main/java/com/lxj/xpopup/core/FullScreenDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ private int getNavigationBarColor(){

public boolean isFuckVIVORoom(){
//vivo的Y和V开头的8.0和8.1系统特殊(y91 y85 y97):dialog无法覆盖到状态栏,并且坐标系下移了一个状态栏的距离
boolean isFuckModel = android.os.Build.MODEL.startsWith("Y")
|| android.os.Build.MODEL.startsWith("y")
|| android.os.Build.MODEL.startsWith("V")
|| android.os.Build.MODEL.startsWith("v");
return FuckRomUtils.isVivo() && (Build.VERSION.SDK_INT == 26 || Build.VERSION.SDK_INT == 27) && isFuckModel;
// boolean isFuckModel = android.os.Build.MODEL.startsWith("Y")
// || android.os.Build.MODEL.startsWith("y")
// || android.os.Build.MODEL.startsWith("V")
// || android.os.Build.MODEL.startsWith("v");
// return FuckRomUtils.isVivo() && (Build.VERSION.SDK_INT == 26 || Build.VERSION.SDK_INT == 27) && isFuckModel;
return false;
}

public void setWindowFlag(final int bits, boolean on) {
Expand Down

0 comments on commit 81a918c

Please sign in to comment.