mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-11-29 15:51:17 +00:00
Fixed lint warnings.
This commit is contained in:
parent
52f84e0ec0
commit
28fa7068f1
6 changed files with 20 additions and 7 deletions
|
@ -61,7 +61,7 @@
|
||||||
</activity>
|
</activity>
|
||||||
<activity
|
<activity
|
||||||
android:name=".gui.FolderPickerActivity"
|
android:name=".gui.FolderPickerActivity"
|
||||||
android:label="@string/title_activity_folder_picker" >
|
android:label="@string/folder_picker_title" >
|
||||||
<meta-data
|
<meta-data
|
||||||
android:name="android.support.PARENT_ACTIVITY"
|
android:name="android.support.PARENT_ACTIVITY"
|
||||||
android:value=".gui.RepoSettingsActivity" />
|
android:value=".gui.RepoSettingsActivity" />
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.nutomic.syncthingandroid.gui;
|
package com.nutomic.syncthingandroid.gui;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
|
@ -67,6 +69,8 @@ public class NodeSettingsActivity extends PreferenceActivity implements
|
||||||
private Preference mDelete;
|
private Preference mDelete;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressLint("AppCompatMethod")
|
||||||
|
@TargetApi(11)
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package com.nutomic.syncthingandroid.gui;
|
package com.nutomic.syncthingandroid.gui;
|
||||||
|
|
||||||
|
import android.annotation.SuppressLint;
|
||||||
|
import android.annotation.TargetApi;
|
||||||
import android.app.Activity;
|
import android.app.Activity;
|
||||||
import android.app.AlertDialog;
|
import android.app.AlertDialog;
|
||||||
import android.content.ComponentName;
|
import android.content.ComponentName;
|
||||||
|
@ -78,6 +80,8 @@ public class RepoSettingsActivity extends PreferenceActivity
|
||||||
private Preference mDelete;
|
private Preference mDelete;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@SuppressLint("AppCompatMethod")
|
||||||
|
@TargetApi(11)
|
||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,7 @@ public class ConfigXml {
|
||||||
*
|
*
|
||||||
* Coming from 0.3.0 and earlier, the ignorePerms flag is set to true on every repository.
|
* Coming from 0.3.0 and earlier, the ignorePerms flag is set to true on every repository.
|
||||||
*/
|
*/
|
||||||
|
@SuppressWarnings("SdCardPath")
|
||||||
public void update() {
|
public void update() {
|
||||||
Log.i(TAG, "Checking for needed config updates");
|
Log.i(TAG, "Checking for needed config updates");
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
|
|
|
@ -4,10 +4,10 @@
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/create_folder"
|
android:id="@+id/create_folder"
|
||||||
android:title="Create Folder" />
|
android:title="@string/create_folder" />
|
||||||
|
|
||||||
<item
|
<item
|
||||||
android:id="@+id/select"
|
android:id="@+id/select"
|
||||||
android:title="Select" />
|
android:title="@string/select_folder" />
|
||||||
|
|
||||||
</menu>
|
</menu>
|
|
@ -185,6 +185,7 @@ Please report any problems you encounter.</string>
|
||||||
<!-- SettingsActivity -->
|
<!-- SettingsActivity -->
|
||||||
|
|
||||||
|
|
||||||
|
<!-- Activity title -->
|
||||||
<string name="settings_title">Settings</string>
|
<string name="settings_title">Settings</string>
|
||||||
|
|
||||||
<!-- Settings item that opens issue tracker -->
|
<!-- Settings item that opens issue tracker -->
|
||||||
|
@ -201,11 +202,18 @@ Please report any problems you encounter.</string>
|
||||||
|
|
||||||
<!-- FolderPickerAcitivity -->
|
<!-- FolderPickerAcitivity -->
|
||||||
|
|
||||||
|
<!-- Activity title -->
|
||||||
|
<string name="folder_picker_title">Folder Picker</string>
|
||||||
|
|
||||||
|
<!-- ListView empty text -->
|
||||||
<string name="directory_empty">Directory is Empty</string>
|
<string name="directory_empty">Directory is Empty</string>
|
||||||
|
|
||||||
|
<!-- Menu item to create folder -->
|
||||||
<string name="create_folder">Create new Folder</string>
|
<string name="create_folder">Create new Folder</string>
|
||||||
|
|
||||||
|
<!-- Menu item to select the current folder -->
|
||||||
|
<string name="select_folder">Select Folder</string>
|
||||||
|
|
||||||
<!-- RestApi -->
|
<!-- RestApi -->
|
||||||
|
|
||||||
|
|
||||||
|
@ -227,8 +235,4 @@ Please report any problems you encounter.</string>
|
||||||
<item>Tb/s</item>
|
<item>Tb/s</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string name="title_activity_folder_picker">FolderPickerActivity</string>
|
|
||||||
<string name="hello_world">Hello world!</string>
|
|
||||||
<string name="action_settings">Settings</string>
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue