瀏覽代碼

Allows override of DefaultSplashLayout by child class (#4084)

This is mentionned in https://github.com/wix/react-native-navigation/issues/3905
Hugo Dozois 6 年之前
父節點
當前提交
f8a8aa0718
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/android/app/src/main/java/com/reactnativenavigation/NavigationActivity.java

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

@@ -124,7 +124,7 @@ public class NavigationActivity extends AppCompatActivity implements DefaultHard
124 124
         navigator.destroyViews();
125 125
     }
126 126
 
127
-    private void addDefaultSplashLayout() {
127
+    protected void addDefaultSplashLayout() {
128 128
         View view = new View(this);
129 129
         view.setBackgroundColor(Color.WHITE);
130 130
         setContentView(view);