Skip to content

Commit

Permalink
0.0.43.beta2
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzue committed Aug 13, 2021
1 parent 3f1a14b commit cd2593c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions DialogX/src/main/java/com/kongzue/dialogx/DialogX.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,13 @@ public class DialogX {
//使用振动反馈
public static boolean useHaptic = true;

/**
* 使用沉浸式适配
*
* 请注意,若你没有使用沉浸式适配,请关闭此选项,此选项将影响对话框布局是否允许延伸至导航栏背后显示
*/
public static boolean useActivityLayoutTranslationNavigationBar = true;

public enum THEME {
LIGHT, DARK, AUTO
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.kongzue.dialogx.DialogX;
import com.kongzue.dialogx.interfaces.BaseDialog;

import java.lang.ref.WeakReference;
Expand Down Expand Up @@ -110,7 +111,7 @@ public void onActivityCreated(@NonNull Activity activity, @Nullable Bundle saved
* 此标记影响的问题主要是在BottomDialog以及FullScreenDialog弹出后,
* 显示其它对话框出现的底部非安全区高度异常的情况
*/
if ((window.getDecorView().getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) != View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) {
if (DialogX.useActivityLayoutTranslationNavigationBar && ((window.getDecorView().getSystemUiVisibility() & View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION) != View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION)) {
window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);
}
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true

BUILD_VERSION=0.0.43.beta1
BUILD_VERSION=0.0.43.beta2
BUILD_VERSION_INT=42

0 comments on commit cd2593c

Please sign in to comment.