|
|
@ -34,6 +34,8 @@ import android.view.MotionEvent;
|
|
|
|
import android.view.View;
|
|
|
|
import android.view.View;
|
|
|
|
import android.webkit.DownloadListener;
|
|
|
|
import android.webkit.DownloadListener;
|
|
|
|
import android.webkit.RenderProcessGoneDetail;
|
|
|
|
import android.webkit.RenderProcessGoneDetail;
|
|
|
|
|
|
|
|
import android.webkit.WebResourceError;
|
|
|
|
|
|
|
|
import android.webkit.WebResourceRequest;
|
|
|
|
import android.webkit.WebSettings;
|
|
|
|
import android.webkit.WebSettings;
|
|
|
|
import android.webkit.WebView;
|
|
|
|
import android.webkit.WebView;
|
|
|
|
import android.webkit.WebViewClient;
|
|
|
|
import android.webkit.WebViewClient;
|
|
|
@ -188,6 +190,10 @@ public class WebViewEx extends WebView implements DownloadListener, View.OnLongC
|
|
|
|
Log.i("Changed scale=" + newScale);
|
|
|
|
Log.i("Changed scale=" + newScale);
|
|
|
|
intf.onScaleChanged(newScale);
|
|
|
|
intf.onScaleChanged(newScale);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void onReceivedError(WebView view, WebResourceRequest request, WebResourceError error) {
|
|
|
|
|
|
|
|
Log.w("WebViewEx error " + error.getErrorCode() + ":" + error.getDescription());
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
|
|
|
|