@onekeyfe/react-native-lite-card 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -345,8 +345,12 @@ public final class Utils {
|
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
private void setTopActivity(final Activity activity) {
|
|
348
|
+
if (activity == null || mActivityList == null) {
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
348
351
|
if (mActivityList.contains(activity)) {
|
|
349
|
-
|
|
352
|
+
Activity lastActivity = mActivityList.getLast();
|
|
353
|
+
if (lastActivity != null && !lastActivity.equals(activity)) {
|
|
350
354
|
mActivityList.remove(activity);
|
|
351
355
|
mActivityList.addLast(activity);
|
|
352
356
|
}
|