mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-02 01:01:17 +00:00
Fixed lint problems.
This commit is contained in:
parent
0ed561015c
commit
15f2d5e43f
3 changed files with 16 additions and 1 deletions
|
@ -17,7 +17,7 @@ repositories {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.android.support:appcompat-v7:18.0.+'
|
compile 'com.android.support:appcompat-v7:19.1.+'
|
||||||
}
|
}
|
||||||
|
|
||||||
android {
|
android {
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.nutomic.syncthingandroid;
|
package com.nutomic.syncthingandroid;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
@ -18,7 +20,13 @@ public class SettingsActivity extends PreferenceActivity {
|
||||||
|
|
||||||
private static final String SYNCTHING_VERSION_KEY = "syncthing_version";
|
private static final String SYNCTHING_VERSION_KEY = "syncthing_version";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Loads layout, sets version from Rest API.
|
||||||
|
*
|
||||||
|
* Manual target API as we manually check if ActionBar is available (for ActionBar back button).
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@TargetApi(11)
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
package com.nutomic.syncthingandroid;
|
package com.nutomic.syncthingandroid;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
|
@ -90,7 +91,13 @@ public class WebGuiActivity extends Activity {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialize WebView.
|
||||||
|
*
|
||||||
|
* Ignore lint javascript warning as js is loaded only from our known, local service.
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressLint("SetJavaScriptEnabled")
|
||||||
public void onCreate(Bundle savedInstanceState) {
|
public void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
getApplicationContext().startService(
|
getApplicationContext().startService(
|
||||||
|
|
Loading…
Reference in a new issue