@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
- if (!mActivityList.getLast().equals(activity)) {
352
+ Activity lastActivity = mActivityList.getLast();
353
+ if (lastActivity != null && !lastActivity.equals(activity)) {
350
354
  mActivityList.remove(activity);
351
355
  mActivityList.addLast(activity);
352
356
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-lite-card",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "lite card",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",