1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-26 22:31:16 +00:00

Fixing introduced lint errors/warnings.

This commit is contained in:
George Venios 2015-09-09 01:06:48 +01:00
parent 7629ddbdcd
commit a76bc00eb9
24 changed files with 7 additions and 105 deletions

View file

@ -225,8 +225,7 @@ public class FolderPickerActivity extends SyncthingActivity
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
ArrayAdapter<File> adapter = (ArrayAdapter<File>) mListView.getAdapter();
File f = adapter.getItem(i);
File f = mFilesAdapter.getItem(i);
if (f.isDirectory()) {
displayFolder(f);
invalidateOptions();

View file

@ -5,7 +5,6 @@ import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
@ -159,14 +158,10 @@ public class DrawerFragment extends Fragment implements RestApi.OnReceiveSystemI
mDeviceId.setText(info.myID);
mDeviceId.setVisibility(View.VISIBLE);
mDeviceId.setOnTouchListener(new View.OnTouchListener() {
mDeviceId.setOnClickListener(new View.OnClickListener() {
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
if (motionEvent.getAction() == MotionEvent.ACTION_UP) {
mActivity.getApi().copyDeviceId(mDeviceId.getText().toString());
return true;
}
return false;
public void onClick(View v) {
mActivity.getApi().copyDeviceId(mDeviceId.getText().toString());
}
});
mCpuUsage.setText(new DecimalFormat("0.00").format(info.cpuPercent) + "%");

View file

@ -180,7 +180,7 @@ public class FolderFragment extends Fragment
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
return inflater.inflate(R.layout.fragment_folder, null);
return inflater.inflate(R.layout.fragment_folder, container, false);
}
@Override

View file

@ -1,23 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:minHeight="45dip">
<ImageView
android:id="@+id/icon"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"/>
<TextView
android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center_vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
android:textAppearance="?android:attr/textAppearanceMedium"/>
</LinearLayout>

View file

@ -7,6 +7,6 @@
android:id="@+id/add_folder"
android:icon="@drawable/ic_add_white_24dp_active"
android:title="@string/add_folder"
app:showAsAction="ifRoom" />
app:showAsAction="never" />
</menu>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">ID adresáře musí být krátký identifikátor (64 znaků nebo méně) obsahující pouze písmena, čísla, tečky (.), pomlčky (-) a podtržítka (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Cesta k adresáři nesmí být prázdná</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Nejdříve prosím připojte přístroj.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID přístroje</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">Die Verzeichnis-ID muss eine kurze Kennung (64 Zeichen oder weniger) sein. Sie kann nur aus Buchstaben, Zahlen und dem Punkt- (.), Bindestrich- (-), und Unterstrich- (_) Zeichen bestehen.</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Der Ordnerpfad darf nicht leer sein</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Bitte verbinde zuerst ein Gerät.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">Geräte-ID</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">El ID de carpeta tiene que ser un identificador corto (64 caracteres o menos) formado por letras, números y los caracteres como el punto (.), el guión (-) y el subrayado(_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">La ruta a la carpeta no puede estar vacia</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Para empezar conecte un dispositivo, por favor.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID del dispositivo</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">L\'ID du dossier doit être un identifiant court (64 caractères ou moins) pouvant contenir les valeurs suivantes: lettres, chiffres, point (.), tiret milieu (-), et tiret-bas (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Le chemin du dossier ne doit pas être vide</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">SVP, connectez-vous d\'abord à une machine.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID machine</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">L\'ID della cartella dev\'essere un identificatore breve (64 caratteri o meno) costituito solamente da lettere, numeri, punti (.), trattini (-) e trattini bassi (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Il percorso della cartella non può essere vuoto</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Prima devi connettere un dispositivo.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID Dispositivo</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">フォルダーIDは、文字、数字、ドット (.)、ダッシュ (-)、アンダースコア (_) からなる、短い識別子 (64文字以下) でなければなりません。</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">フォルダーのパスは空にできません</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">まずデバイスに接続してください。</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">デバイス ID</string>

View file

@ -74,8 +74,6 @@
<string name="folder_id_invalid">폴더 ID는 문자, 숫자, 마침표(.), 붙임표(-), 밑줄 문자(_)로만 구성되어 있는 짧은 식별자(64자 이하)여야 합니다.</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">폴더 경로를 공백으로 둘 수 없습니다</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">먼저 기기를 연결해 주십시오.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">기기 ID</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">De map-ID moet een korte aanduiding (64 of minder tekens) zijn, bestaande uit enkel letters, cijfers, punten (.), streepjes (-) en onderstrepingstekens (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Het mappad mag niet leeg zijn</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Verbind eerst met een knooppunt.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">Apparaat-ID</string>

View file

@ -77,8 +77,6 @@
<string name="folder_id_invalid">Nazwa katalogu musi być krótka (64 lub mniej znaków). Może zawierać tylko litery, cyfry, kropki, myślniki i znak podkreślenia.</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Ścieżka do folderu nie może być pusta</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Proszę najpierw podłączyć urządzenie.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID urządzenia</string>

View file

@ -80,8 +80,6 @@ As estatísticas agregadas estão disponíveis publicamente em https://data.sync
<string name="folder_id_invalid">O ID da pasta deve ser um nome curto (64 caracteres ou menos) consistindo apenas em letras, números, ponto (.), hífen (-) ou underscore (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">O caminho da pasta não pode ficar vazio</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Conecte um dispositivo antes, por favor.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID do dispositivo</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">O ID da pasta tem que ser um identificador curto (64 caracteres ou menos) consistindo apenas em letras, números e os caracteres ponto (.), hífen (-) e sublinhado (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">O caminho da pasta não pode estar vazio</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Ligue primeiro um dispositivo, por favor.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID do dispositivo</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">ID папки должен быть коротким идентификатором (64 символов или меньше) состоящий из букв, цифр и символов точки (.), тире(-) и подчеркивания (_).</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Путь к папке не может быть пустым</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Сначала подключите устройство</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">ID устройства</string>

View file

@ -74,8 +74,6 @@
<string name="folder_id_invalid">Klasör ID, (64 karakterden daha az) ve sadece harf, sayı, nokta (.), çizgi (-) ve altçizgi (_) karakterleri içermesi gerekir.</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">Klasör yolu boş olmamalı</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">Lütfen önce bir cihaz bağlayın.</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">Cihaz ID</string>

View file

@ -78,8 +78,6 @@
<string name="folder_id_invalid">文件夹标识必须由不长于 64 位字符,且仅能包含字母、数字、半角句号(.)、横线(-和下划线_</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">文件夹路径不得为空</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">请先连接设备</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">设备标识</string>

View file

@ -71,8 +71,6 @@
<string name="folder_id_invalid">資料夾識別碼必須為一段只包含半形英文字母、數字、點 (.)、連接符號 (-) 以及底線 (_) 的簡短識別碼 (不多於 64 個字元)</string>
<!--Toast shown when trying to create a folder with an empty path-->
<string name="folder_path_required">資料夾路徑不得為空</string>
<!--Toast shown when selecting 'devices' if no devices have been added-->
<string name="no_devices">請先連接至一個裝置。</string>
<!--DeviceSettingsFragment-->
<!--Setting title-->
<string name="device_id">裝置識別碼</string>

View file

@ -2,9 +2,7 @@
<resources>
<color name="primary">#03A9F4</color>
<color name="primary_dark">#0288D1</color>
<color name="primary_light">#B3E5FC</color>
<color name="accent">#FFC107</color>
<color name="icons">#FFFFFF</color>
<color name="divider">#1F000000</color>
<color name="text_red">#ffff4444</color>

View file

@ -135,9 +135,6 @@
<!-- Toast shown when trying to create a folder with an empty path -->
<string name="folder_path_required">The folder path must not be empty</string>
<!-- Toast shown when selecting 'devices' if no devices have been added -->
<string name="no_devices">Please connect a device first.</string>
<!-- Dialog shown before config export -->
<string name="dialog_confirm_export">Do you really want to export your configuration? Existing files will be overwritten.</string>

View file

@ -40,6 +40,7 @@
<eat-comment/>
<style name="ThemeOverlay.Syncthing.Toolbar" parent="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
<item name="android:windowBackground">@null</item>
<item name="colorAccent">@android:color/white</item>
</style>
</resources>

View file

@ -1,35 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<EditTextPreference
android:persistent="false"
android:key="folder_id"
android:title="@string/folder_id" />
<Preference
android:persistent="false"
android:key="directory"
android:title="@string/directory" />
<CheckBoxPreference
android:persistent="false"
android:key="folder_master"
android:title="@string/folder_master" />
<PreferenceScreen
android:persistent="false"
android:key="devices"
android:title="@string/devices" />
<CheckBoxPreference
android:persistent="false"
android:key="versioning"
android:title="@string/file_versioning" />
<EditTextPreference
android:persistent="false"
android:key="versioning_keep"
android:title="@string/keep_versions"
android:inputType="numberDecimal" />
</PreferenceScreen>