use custom protocol for resources

This commit is contained in:
fkloft
2013-12-24 11:32:19 +01:00
parent 0c4cb8479e
commit 9208552e29
8 changed files with 339 additions and 251 deletions

View File

@@ -190,6 +190,13 @@ public class IITC_JSInterface {
});
}
public boolean showZoom() {
PackageManager pm = mIitc.getPackageManager();
boolean hasMultitouch = pm.hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH);
boolean forcedZoom = mIitc.getPrefs().getBoolean("pref_user_zoom", false);
return forcedZoom || !hasMultitouch;
}
@JavascriptInterface
public void setFollowMode(final boolean follow) {
mIitc.runOnUiThread(new Runnable() {