Skip to content

Commit

Permalink
update : 同步更改app事例代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzhun committed Nov 13, 2018
1 parent fe31ab8 commit a821216
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public void onClick(View v) {
NotchTools.getFullScreenTools().fullScreenUseStatus(this, new OnNotchCallBack() {
@Override
public void onNotchPropertyCallback(NotchProperty notchProperty) {
int notchHeight = notchProperty.getMarginTop();
int marginTop = notchProperty.getMarginTop();
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) mBackView.getLayoutParams();
layoutParams.topMargin += notchHeight;
layoutParams.topMargin += marginTop;
mBackView.setLayoutParams(layoutParams);
}

Expand Down

0 comments on commit a821216

Please sign in to comment.