File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
library/src/main/java/com/hjq/window Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -924,8 +924,7 @@ public void show() {
924924 mOnWindowLifecycleCallback .onWindowShow (this );
925925 }
926926
927- } catch (NullPointerException | IllegalStateException |
928- IllegalArgumentException | WindowManager .BadTokenException e ) {
927+ } catch (Exception e ) {
929928 // 如果这个 View 对象被重复添加到 WindowManager 则会抛出异常
930929 // java.lang.IllegalStateException: View has already been added to the window manager.
931930 e .printStackTrace ();
@@ -968,7 +967,7 @@ public void cancel() {
968967 mOnWindowLifecycleCallback .onWindowCancel (this );
969968 }
970969
971- } catch (NullPointerException | IllegalArgumentException | IllegalStateException e ) {
970+ } catch (Exception e ) {
972971 e .printStackTrace ();
973972 } finally {
974973 // 当前没有显示
You can’t perform that action at this time.
0 commit comments