Sha256: 6aca86009f420b65c8eedb2e1d1d890d64d12d6791116428dbe311e3c91c557e
Contents?: true
Size: 1.06 KB
Versions: 32
Compression:
Stored size: 1.06 KB
Contents
package com.rhomobile.rhodes.webview; import com.rhomobile.rhodes.RhodesActivity; import android.view.Window; import android.webkit.JsResult; import android.webkit.WebChromeClient; import android.webkit.WebView; public class ChromeClientOld extends WebChromeClient { private RhodesActivity mRhodesActivity; public ChromeClientOld(RhodesActivity rhodesActivity) { mRhodesActivity = rhodesActivity; } @Override public void onProgressChanged(WebView view, int newProgress) { if (RhodesActivity.ENABLE_LOADING_INDICATION) { newProgress *= 100; if (newProgress < 0) newProgress = 0; if (newProgress > RhodesActivity.MAX_PROGRESS) newProgress = RhodesActivity.MAX_PROGRESS; mRhodesActivity.getWindow().setFeatureInt(Window.FEATURE_PROGRESS, newProgress); } super.onProgressChanged(view, newProgress); } @Override public boolean onJsAlert(WebView view, String url, String message, JsResult result) { return false; } @Override public boolean onJsConfirm(WebView view, String url, String message, JsResult result) { return false; } }
Version data entries
32 entries across 32 versions & 1 rubygems