I swear, this time i thruly fixed the download thing
This commit is contained in:
parent
9f99281862
commit
7912dec909
|
@ -969,7 +969,7 @@ public class MainActivity extends AppCompatActivity implements View.OnLongClickL
|
||||||
//Make download possible
|
//Make download possible
|
||||||
webView.setDownloadListener(new DownloadListener() {
|
webView.setDownloadListener(new DownloadListener() {
|
||||||
|
|
||||||
@RequiresApi(api = Build.VERSION_CODES.M)//required for version
|
@TargetApi(Build.VERSION_CODES.M)
|
||||||
public void onDownloadStart(String url, String userAgent,
|
public void onDownloadStart(String url, String userAgent,
|
||||||
String contentDisposition, String mimetype,
|
String contentDisposition, String mimetype,
|
||||||
long contentLength) {
|
long contentLength) {
|
||||||
|
|
Loading…
Reference in New Issue