Pārlūkot izejas kodu

Prevent video playing on background

Ofito 4 gadus atpakaļ
vecāks
revīzija
303a5b2687

+ 2
- 2
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java Parādīt failu

@@ -1122,12 +1122,12 @@ public class RNCWebViewManager extends SimpleViewManager<WebView> {
1122 1122
 
1123 1123
     @Override
1124 1124
     public void onHostResume() {
1125
-      // do nothing
1125
+      super.onResume();
1126 1126
     }
1127 1127
 
1128 1128
     @Override
1129 1129
     public void onHostPause() {
1130
-      // do nothing
1130
+      super.onPause();
1131 1131
     }
1132 1132
 
1133 1133
     @Override