mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 11:21:29 +00:00
Remove the rescan interval setting from the GUI
This commit is contained in:
parent
396a46ad12
commit
87bf40b6a1
18 changed files with 1 additions and 60 deletions
|
@ -57,8 +57,6 @@ public class FolderSettingsFragment extends PreferenceFragment
|
|||
|
||||
private Preference mDirectory;
|
||||
|
||||
private EditTextPreference mRescanInterval;
|
||||
|
||||
private CheckBoxPreference mFolderMaster;
|
||||
|
||||
private PreferenceScreen mDevices;
|
||||
|
@ -88,8 +86,6 @@ public class FolderSettingsFragment extends PreferenceFragment
|
|||
mFolderId.setOnPreferenceChangeListener(this);
|
||||
mDirectory = findPreference("directory");
|
||||
mDirectory.setOnPreferenceClickListener(this);
|
||||
mRescanInterval = (EditTextPreference) findPreference("rescan_interval");
|
||||
mRescanInterval.setOnPreferenceChangeListener(this);
|
||||
mFolderMaster = (CheckBoxPreference) findPreference("folder_master");
|
||||
mFolderMaster.setOnPreferenceChangeListener(this);
|
||||
mDevices = (PreferenceScreen) findPreference("devices");
|
||||
|
@ -107,7 +103,7 @@ public class FolderSettingsFragment extends PreferenceFragment
|
|||
mFolder = new RestApi.Folder();
|
||||
mFolder.ID = "";
|
||||
mFolder.Path = "";
|
||||
mFolder.RescanIntervalS = 0;
|
||||
mFolder.RescanIntervalS = 259200; // Scan every 3 days (in case inotify dropped some changes)
|
||||
mFolder.DeviceIds = new ArrayList<>();
|
||||
mFolder.Versioning = new RestApi.Versioning();
|
||||
}
|
||||
|
@ -157,8 +153,6 @@ public class FolderSettingsFragment extends PreferenceFragment
|
|||
mFolderId.setText(mFolder.ID);
|
||||
mFolderId.setSummary(mFolder.ID);
|
||||
mDirectory.setSummary(mFolder.Path);
|
||||
mRescanInterval.setText(Integer.toString(mFolder.RescanIntervalS));
|
||||
mRescanInterval.setSummary(Integer.toString(mFolder.RescanIntervalS));
|
||||
mFolderMaster.setChecked(mFolder.ReadOnly);
|
||||
List<RestApi.Device> devicesList = mSyncthingService.getApi().getDevices(false);
|
||||
for (RestApi.Device n : devicesList) {
|
||||
|
@ -262,16 +256,6 @@ public class FolderSettingsFragment extends PreferenceFragment
|
|||
mFolder.Path = (String) o;
|
||||
folderUpdated();
|
||||
return true;
|
||||
} else if (preference.equals(mRescanInterval)) {
|
||||
try {
|
||||
mFolder.RescanIntervalS = Integer.parseInt((String) o);
|
||||
mRescanInterval.setSummary((String) o);
|
||||
folderUpdated();
|
||||
return true;
|
||||
} catch (NumberFormatException e) {
|
||||
Log.w(TAG, "Invalid rescan interval: "+ o);
|
||||
}
|
||||
return false;
|
||||
} else if (preference.equals(mFolderMaster)) {
|
||||
mFolder.ReadOnly = (Boolean) o;
|
||||
folderUpdated();
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Adresář</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Interval opakování skenování</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Master adresář</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Přístroje</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Verzeichnis</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Suchintervall</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Originalverzeichnis</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Geräte</string>
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Directorio</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Intervalo de Reescanéo</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Carpeta Maestra</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Dispositivos</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Dossier</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Intervalle d\'analyse</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Dossier maitre</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Machines</string>
|
||||
|
|
|
@ -50,8 +50,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Cartella</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Intervallo Scansione</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Cartella Principale</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Dispositivi</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">ディレクトリー</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">再スキャン間隔</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">フォルダーマスター</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">デバイス</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Map</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Herscanningstussenpose</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Maphoofd</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Apparaten</string>
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Katalog</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Czas między skanowaniem</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Folder nadrzędny</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Urządzenia</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Pasta</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Intervalo entre verificações</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Pasta Mestre</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Dispositivos</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Pasta</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Intervalo entre verificações</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Pasta Mestre</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Dispositivos</string>
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Папка</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Интервал Сканирования</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Главная папка</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Устройства</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">Dizin</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">Yeniden Tarama Aralığı</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">Ana Klasör</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">Cihazlar</string>
|
||||
|
|
|
@ -52,8 +52,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">目录</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">扫描间隔</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">主文件夹</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">设备</string>
|
||||
|
|
|
@ -51,8 +51,6 @@
|
|||
<!--Setting title-->
|
||||
<string name="directory">資料夾</string>
|
||||
<!--Setting title-->
|
||||
<string name="rescan_interval">重新掃描間隔</string>
|
||||
<!--Setting title-->
|
||||
<string name="folder_master">主資料夾</string>
|
||||
<!--Setting title-->
|
||||
<string name="devices">裝置</string>
|
||||
|
|
|
@ -89,9 +89,6 @@
|
|||
<!-- Setting title -->
|
||||
<string name="directory">Directory</string>
|
||||
|
||||
<!-- Setting title -->
|
||||
<string name="rescan_interval">Rescan Interval</string>
|
||||
|
||||
<!-- Setting title -->
|
||||
<string name="folder_master">Folder Master</string>
|
||||
|
||||
|
|
|
@ -11,12 +11,6 @@
|
|||
android:key="directory"
|
||||
android:title="@string/directory" />
|
||||
|
||||
<EditTextPreference
|
||||
android:persistent="false"
|
||||
android:key="rescan_interval"
|
||||
android:title="@string/rescan_interval"
|
||||
android:inputType="numberDecimal" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:persistent="false"
|
||||
android:key="folder_master"
|
||||
|
|
|
@ -15,12 +15,6 @@
|
|||
android:enabled="false"
|
||||
style="?android:preferenceInformationStyle" />
|
||||
|
||||
<EditTextPreference
|
||||
android:persistent="false"
|
||||
android:key="rescan_interval"
|
||||
android:title="@string/rescan_interval"
|
||||
android:inputType="numberDecimal" />
|
||||
|
||||
<CheckBoxPreference
|
||||
android:persistent="false"
|
||||
android:key="folder_master"
|
||||
|
|
Loading…
Reference in a new issue