remove setSaveFormData since minSdkVersion >= 26

This commit is contained in:
Daniel Micay 2021-11-21 15:54:29 -05:00
parent 216195954e
commit 6a9f7e11b1

View File

@ -150,12 +150,6 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
}
}
// Can be removed once minSdkVersion >= 26
@SuppressWarnings("deprecation")
private void disableSaveFormData(final WebSettings settings) {
settings.setSaveFormData(false);
}
@Override
@SuppressLint({"SetJavaScriptEnabled", "ClickableViewAccessibility"})
protected void onCreate(Bundle savedInstanceState) {
@ -180,7 +174,6 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
settings.setAllowFileAccess(false);
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
settings.setJavaScriptEnabled(true);
disableSaveFormData(settings);
CookieManager.getInstance().setAcceptCookie(false);