Skip to content

Commit

Permalink
reduce code
Browse files Browse the repository at this point in the history
  • Loading branch information
junixapp committed Dec 28, 2018
1 parent e94af99 commit 64f74f1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void onDismiss() {
@Override
public void onConfirm(String text) {
toast("input text: " + text);
XPopup.get(getActivity()).asLoading().show();
}
})
.show();
Expand Down
1 change: 0 additions & 1 deletion library/src/main/java/com/lxj/xpopup/XPopup.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public void show() {
throw new IllegalArgumentException("context must be an instance of Activity");
}
Activity activity = (Activity) contextRef.get();
activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);

activityView = (ViewGroup) activity.getWindow().getDecorView();

Expand Down

0 comments on commit 64f74f1

Please sign in to comment.