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 1e19245 commit 6c5d6c2Copy full SHA for 6c5d6c2
library/src/main/java/com/aries/library/fast/util/FastUtil.java
@@ -33,6 +33,7 @@
33
* 1、将startActivity 参数Activity 改为Context
34
* 2、2018-7-23 09:29:55 新增获取App 应用名称方法
35
* 3、2019-2-15 11:28:53 修改startActivity 方法增加single tag设置方法{@link #setActivitySingleFlag(int)}
36
+ * 4、2019-2-22 13:49:12 修改{@link #getRootView(Activity)} 判断逻辑
37
*/
38
public class FastUtil {
39
@@ -91,6 +92,9 @@ public static View getRootView(Activity activity) {
91
92
if (activity == null) {
93
return null;
94
}
95
+ if (activity.findViewById(android.R.id.content) == null) {
96
+ return null;
97
+ }
98
return ((ViewGroup) activity.findViewById(android.R.id.content)).getChildAt(0);
99
100
0 commit comments