Skip to content

Commit

Permalink
去掉设置 NavigationViewHelper 中Activity DecorView 背景操作避免滑动返回背景不透明BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
AriesHoo committed Apr 18, 2018
1 parent 6a737c5 commit 49b79c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ ext {
minSdkVersion = 15
targetSdkVersion = 25
supportVersion = "25.3.1"
versionCode = 31
versionName = "3.1.0"
versionCode = 32
versionName = "3.1.1"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
* Description:
* 1、修改NavigationLayoutDrawable默认保持与activity的根布局背景一致
* 2、2018-2-26 15:56:47 新增setBottomView(View bottomView, boolean enable)用于控制底部View设置padding/margin
* 3、2018-4-18 17:50:35 去掉设置Activity DecorView 背景操作避免滑动返回背景不透明BUG
*/
public class NavigationViewHelper {

Expand Down Expand Up @@ -102,7 +103,6 @@ public NavigationViewHelper setTransEnable(boolean transEnable) {
setNavigationLayoutColor(Color.WHITE);
if (mContentView != null && mContentView.getBackground() != null) {
setNavigationLayoutDrawable(DrawableUtil.getNewDrawable(mContentView.getBackground()));
mDecorView.setBackgroundDrawable(DrawableUtil.getNewDrawable(mContentView.getBackground()));
}
return setNavigationViewColor(transEnable ? Color.TRANSPARENT : Color.argb(102, 0, 0, 0));
}
Expand Down

0 comments on commit 49b79c4

Please sign in to comment.