Browse Source

Prevent video playing on background

Ofito 4 years ago
parent
commit
303a5b2687

+ 2
- 2
android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java View File

1122
 
1122
 
1123
     @Override
1123
     @Override
1124
     public void onHostResume() {
1124
     public void onHostResume() {
1125
-      // do nothing
1125
+      super.onResume();
1126
     }
1126
     }
1127
 
1127
 
1128
     @Override
1128
     @Override
1129
     public void onHostPause() {
1129
     public void onHostPause() {
1130
-      // do nothing
1130
+      super.onPause();
1131
     }
1131
     }
1132
 
1132
 
1133
     @Override
1133
     @Override