We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3b346a commit 6a9397fCopy full SHA for 6a9397f
1 file changed
library/src/main/java/com/hjq/window/EasyWindow.java
@@ -924,8 +924,7 @@ public void show() {
924
mOnWindowLifecycleCallback.onWindowShow(this);
925
}
926
927
- } catch (NullPointerException | IllegalStateException |
928
- IllegalArgumentException | WindowManager.BadTokenException e) {
+ } catch (Exception e) {
929
// 如果这个 View 对象被重复添加到 WindowManager 则会抛出异常
930
// java.lang.IllegalStateException: View has already been added to the window manager.
931
e.printStackTrace();
@@ -968,7 +967,7 @@ public void cancel() {
968
967
mOnWindowLifecycleCallback.onWindowCancel(this);
969
970
971
- } catch (NullPointerException | IllegalArgumentException | IllegalStateException e) {
972
973
} finally {
974
// 当前没有显示
0 commit comments