Update gradle and fix proxy port bug

This commit is contained in:
vanitasvitae 2016-10-18 21:15:54 +02:00
parent 6b512ee110
commit 3e7c843d7b
Signed by: vanitasvitae
GPG Key ID: DCCFB3302C9E4615
2 changed files with 2 additions and 7 deletions

View File

@ -271,12 +271,7 @@ public class AppSettings {
* @return proxy port
*/
public int getProxyPort() {
try {
return Integer.parseInt(getString(prefApp, R.string.pref_key__http_proxy_port, "0"));
} catch (Exception e) {
setString(prefApp, R.string.pref_key__http_proxy_port, "0");
return 0;
}
return getInt(prefApp, R.string.pref_key__http_proxy_port, 0);
}
public void setProxyHttpPort(int value) {

View File

@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0'
classpath 'com.android.tools.build:gradle:2.2.1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
// NOTE: Do not place your application dependencies here; they belong