|
|
@ -163,19 +163,12 @@ public class ProxyUtils { |
|
|
|
if (mPreferences.getUseProxy()) { |
|
|
|
if (mPreferences.getUseProxy()) { |
|
|
|
initializeProxy(activity); |
|
|
|
initializeProxy(activity); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.KITKAT_WATCH) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
WebkitProxy.resetProxy(BrowserApp.class.getName(), activity.getApplicationContext()); |
|
|
|
WebkitProxy.resetProxy(BrowserApp.class.getName(), activity.getApplicationContext()); |
|
|
|
} catch (Exception e) { |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
WebkitProxy.resetLollipopProxy(BrowserApp.class.getName(), activity.getApplicationContext()); |
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
mI2PProxyInitialized = false; |
|
|
|
mI2PProxyInitialized = false; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|