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 19b54f0 commit 8c2f3baCopy full SHA for 8c2f3ba
library/src/main/java/com/hjq/window/EasyWindow.java
@@ -1248,9 +1248,12 @@ public int getViewHeight() {
1248
}
1249
1250
/**
1251
- * 根据 ViewId 获取 View
+ * 根据 ViewId 获取 View(返回可能为空)
1252
*/
1253
public <V extends View> V findViewById(int id) {
1254
+ if (mDecorView == null) {
1255
+ return null;
1256
+ }
1257
return mDecorView.findViewById(id);
1258
1259
0 commit comments