|
@@ -75,6 +75,9 @@ public class ActivityUtil {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static Activity getTopActivity() {
|
|
public static Activity getTopActivity() {
|
|
|
|
|
+ if (getActivityCount() == 0) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
return Holder.INSTANCE.activityStack.peek();
|
|
return Holder.INSTANCE.activityStack.peek();
|
|
|
}
|
|
}
|
|
|
|
|
|