Guy Carmeli 8 年之前
父節點
當前提交
5d5121e6b7
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      android/app/src/main/java/com/reactnativenavigation/utils/ViewUtils.java

+ 1
- 1
android/app/src/main/java/com/reactnativenavigation/utils/ViewUtils.java 查看文件

@@ -12,7 +12,7 @@ import com.reactnativenavigation.NavigationApplication;
12 12
 import java.util.concurrent.atomic.AtomicInteger;
13 13
 
14 14
 public class ViewUtils {
15
-    private static final AtomicInteger viewId = new AtomicInteger();
15
+    private static final AtomicInteger viewId = new AtomicInteger(1);
16 16
 
17 17
     public static void runOnPreDraw(final View view, final Runnable task) {
18 18
         view.getViewTreeObserver().addOnPreDrawListener(new ViewTreeObserver.OnPreDrawListener() {