Skip to content

Commit

Permalink
修复BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
mbacuiz committed Nov 27, 2019
1 parent feb537e commit e70cba4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
9 changes: 1 addition & 8 deletions anylayer/src/main/java/per/goweii/anylayer/ViewManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,7 @@ public void attach() {
}
checkChildParent();
if (!isAttached()) {
mParent.post(new Runnable() {
@Override
public void run() {
if (!isAttached()) {
onAttach();
}
}
});
onAttach();
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ protected void onCreate(Bundle savedInstanceState) {
StatusBarUtils.translucentStatusBar(this);
setContentView(R.layout.activity_full_screen);
initView();
Layer dialog = AnyLayer.dialog(this)
.contentView(R.layout.dialog_normal)
.backgroundColorRes(R.color.dialog_bg)
.gravity(Gravity.CENTER)
.cancelableOnTouchOutside(true)
.cancelableOnClickKeyBack(true)
.onClickToDismiss(R.id.fl_dialog_no);
dialog.show();
dialog.dismiss();
}

private void initView() {
Expand Down

0 comments on commit e70cba4

Please sign in to comment.