remove setSaveFormData since minSdkVersion >= 26
This commit is contained in:
parent
216195954e
commit
6a9f7e11b1
@ -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
|
@Override
|
||||||
@SuppressLint({"SetJavaScriptEnabled", "ClickableViewAccessibility"})
|
@SuppressLint({"SetJavaScriptEnabled", "ClickableViewAccessibility"})
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
@ -180,7 +174,6 @@ public class PdfViewer extends AppCompatActivity implements LoaderManager.Loader
|
|||||||
settings.setAllowFileAccess(false);
|
settings.setAllowFileAccess(false);
|
||||||
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
|
settings.setCacheMode(WebSettings.LOAD_NO_CACHE);
|
||||||
settings.setJavaScriptEnabled(true);
|
settings.setJavaScriptEnabled(true);
|
||||||
disableSaveFormData(settings);
|
|
||||||
|
|
||||||
CookieManager.getInstance().setAcceptCookie(false);
|
CookieManager.getInstance().setAcceptCookie(false);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user