Skip to content

Commit a683d06

Browse files
committed
remove else condition since our sdk version will be always 21 or higher, that is the lollipop version
1 parent c7baf74 commit a683d06

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

android/src/main/java/com/reactnativecommunity/webview/RNCWebViewClient.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ public void onPageFinished(WebView webView, String url) {
6262
if (cookies != null) {
6363
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
6464
CookieManager.getInstance().flush();
65-
} else {
66-
CookieSyncManager.getInstance().sync();
6765
}
6866
}
6967

0 commit comments

Comments
 (0)