Skip to content

Commit

Permalink
MODIFIED:modified BarsHelper setNavBarVisibility
Browse files Browse the repository at this point in the history
  • Loading branch information
minminaya committed Apr 24, 2018
1 parent 28453c3 commit 5014bd1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions MD/BarsHelper.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
| ```showNavigationBar``` | 显示导航栏 |
| ```isStatusBarVisible``` | 判断当前Activity的可见性 |
| ```setNavigationBarColor``` | 设置当前的导航栏颜色 |
| ```setNavBarVisibility``` | 设置当前的导航栏沉浸式 |

详细使用可以看注释

Expand Down
2 changes: 1 addition & 1 deletion aau/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 21
targetSdkVersion 26
versionCode 6
versionName "1.0.5"
versionName "1.0.6"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
2 changes: 1 addition & 1 deletion aau/src/main/java/com/minminaya/aau/utils/BarsHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public static void hideNavigationBar(Activity activity) {
* @param activity activity
* @param isVisible {@code true}: 可见<br>{@code false}: 不可见
*/
public void setNavBarVisibility(final Activity activity, boolean isVisible) {
public static void setNavBarVisibility(final Activity activity, boolean isVisible) {
if (isVisible) {
activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS);
} else {
Expand Down

0 comments on commit 5014bd1

Please sign in to comment.