1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-28 15:21:17 +00:00
Commit graph

152 commits

Author SHA1 Message Date
d07245ba91 Fix lint errors 2017-06-15 18:05:48 +09:00
Jessie Chatham Spencer
0c1abb3c9c Added support for all versioning types in the app UI. Addressing #718 (#896)
* Merge branch 'Fix718'
Merged fixes for issues #718, added functionality for all the file versioning types in the app UI.

* Basic theme is working

* GOt dialog working with setREsult.

* Addressed issues raised and fixed orientation change bug.
Adressed issues radied by nutomic:
- Changed the String concatenation so it uses String.format.
- Made members variables private that were not previously private by mistake.
- Changed name from FolderPathTextView to FolderPathTextViewFragment.
- Fixed typo in NumberPickerFragment
- Now uses TImeUnit for time conversion
- Changed from DialogFragment to a dialog themed Activity inorder to have correct themeing.

About the orientation change bug. When the dialog themed activity was open and the orientation was changed, it would cause the background activity(The FolderActivity) to
recreate itself. In the process of recreating itself it would reset the mFolder variable and then reinitialise it in the OnApiChange listener. However the result from the
Dialog was returned before the mFolder had been reinitialised and was still null, so inbetween the result being returned and the mFolder variable being reinitialised the new file versioning
configuration had to be stored and then applied to the mFolder variable in the onApiChange listener. The file versioning configuration is temporarily stored in the mVersioning variable which is
an instance of Folder.versioning.
This error only occurred when using an Activity as a dialog and using the startActivityForResult method for initialisling the activity. Before when using a dialogfragment and an interface to callback to
the parent activity, everything happend in the correct order.

* Fixed versioning dialog lag.
The initial updateFragmentView() is called in onCreate() and the
fragment is only updated when a new file versioning type is selected.

* Removed FolderPathTextViewFragment
The fragment is removed, and a helper method has been added to FolderPickerActivity to create an intent
to the the FolderPickerActivity for result.
2017-06-15 17:44:44 +09:00
Charles Collins
f5a581ccce changed Folder Master to 'Send Only' (fixes #878)
* changed Folder Master to Receive Changes?

made naming more universal

* changed file_master to correct term

oops, sorry, this should be correct now
2017-04-21 15:06:40 +09:00
71839eb550 Added preference to enable/disable crash notifications 2017-04-11 13:10:05 +09:00
Paul Annekov
6e1b689fa9 [WIP] Ability to share to syncthing (#843)
* increased folder button size

* increased folder button size

* code formatting

* init

* added copy

* get name from content provider

* implemented file sharing, multiple sharing and display name getter

* putting everything in order

* cancel button added

* ignore existing files, translation, styling

* fixed file copy

* Updated UI, moved copy to background, fixed content:// copying

* Fixed possible crash when displayName == null

* Fixed lint issues, removed ru translations

* Fixed plural params

* Escaped quotes to display them in Toast

* Changed spinner design to material one

* Changed copy code, moved credits to code, fixed members naming

* Fallback to id if label is not set

* Added doc for some methods

* Removed try-catch as there are no exceptions here

* Removed try-catch as there are no exceptions here

* Fixed general exception type

* Removed ShareActivity from recents

* Moved style to appropriate place

* Small fixes for toString()

* Moved credits from comment to javadoc of the class
2017-03-29 16:36:16 +09:00
8463c19416 Added option to configure battery saving mode behaviour (fixes #741) 2017-03-21 11:49:52 +09:00
245470a9d4 Show notification with info if Syncthing crashes 2017-03-08 15:05:58 +09:00
4a775728a5 Added link to Syncthing forum (ref #813) 2017-02-15 10:17:51 +09:00
b01eb9a877 Fixed typo 2017-01-23 11:14:23 +09:00
f2498920f0 Dont crash if no file manager installed (fixes #822) 2016-12-26 09:33:28 +09:00
22e9187d36 Added mention of task killers in battery optimization dialog (fixes #815) 2016-12-20 16:25:46 +09:00
Audrius Butkevicius
6fc9007cf9 Add checkbox for hashing fallback (ref #778) 2016-11-28 23:58:39 +00:00
a201cd8789 Turned DeviceFragment and FolderFragment into activities 2016-11-11 00:37:27 +09:00
f005fcd1d2 Request user to disable battery optimization for Syncthing 2016-11-10 22:57:18 +09:00
87f36fcf13 Use Gson to (de-)serialize config, instead of working on raw JSON 2016-10-31 18:16:30 +09:00
ProactiveServices
8414d0dc76 Permit numbers in debug option 2016-10-08 10:05:08 +01:00
JohnVeness
6ba4683400 Update strings.xml
Pluralise "IDs" to match the rest of the sentence.
2016-10-05 21:39:16 +01:00
licaon-kter
9f6ef7c6af Fix #749 2016-09-30 22:04:47 +03:00
d8a05ed392 Fixed various lint issues 2016-09-21 17:36:03 +09:00
c60968d207 Improved behaviour for add device/add folder (fixes #650)
- Added confirm dialog when exiting without saving
- Replaced floppy disk icon with checkmark
2016-09-07 12:39:07 +02:00
d464010ee5 Added seperate first start activity 2016-09-07 03:02:18 +02:00
licaon-kter
05abd17d56 Fix typo, add info 2016-08-27 10:31:53 +03:00
50f98e3f69 Set user/password in config instead of removed STGUIAUTH (fixes #704). 2016-08-25 14:23:19 +02:00
dff3e052af Support TOR connectivity (fixes #589). 2016-08-19 14:07:13 +02:00
Martin Carpella
07b628a80b Improve "Run as foreground" setting's description (fixes #715) 2016-08-12 21:21:55 +02:00
dd7966a228 Added confirm dialog to restart button (fixes #716) 2016-08-03 00:58:41 +02:00
d22fbc3f38 Merge pull request #694 from capi/foreground-service
Experimental "Run as foreground service" setting
2016-07-14 15:37:56 +02:00
Martin Carpella
7ab4f4d835 Experimental "Run as foreground service" setting 2016-07-14 00:01:00 +02:00
97ea54f716 Removed unneeded quotation marks. 2016-07-13 13:35:26 +02:00
49d053f6bc Clarified root option warning (fixes #688). 2016-06-27 19:14:31 +02:00
Lars K.W. Gohlke
48e19a88bb fix api access to activate/deactive natEnabled
* fix api access to activate/deactive natEnabled

* remove old key and add a single 'nat_enabled' new one

* fixed translation
2016-06-25 14:04:04 +02:00
b4e2c44ab2 Added "enable relaying option (fixes #616). 2016-06-12 22:24:09 +02:00
12997d6b36 Added support for folder labels. 2016-05-04 03:41:55 +02:00
Matthias Leonhardt
b9919adccd Added a IntentService to receive Broadcast-Intents to remotely control / configure the app.
MainActivity: Moved binding-functions to onPause() and onResume() so that the SyncThingService is only bound to the activity if the activity is active.

New class AppConfigReceiver:
Support start and stop of the SyncThingService
- restarting a running service again should not be an issue
- stop service only if "always run in background"-mode is disabled. Otherwise show a notification indicating this.

Instrumentation-tests:
- Added tests for AppConfigReceiver
- Extended MockContext to also consume stopService commands.
- testGetReadableTransferRate: Apparently the return-values have changed a bit. Adjusted the asserts to the current return-values.

SycthingService:
Added code for thread-safety in case the service still starting when it should be stopped. Then PollWebGuiAvailableTaskImpl is active and waits for the Synthing-API to become active. So that and onDestroy have to be synchronized.
Added a stopSelf() in PollWebGuiAvailableTaskImpl.onPostExecute() in case mStopScheduled was active.

Commented my change in the javadoc at onDestroy. Put a reference to that comment to .onPostExecution()
2016-03-25 21:13:51 +00:00
b1eee1b1be Fixed various lint warnings. 2016-04-21 23:16:10 +02:00
Lars K.W. Gohlke
10f8f849dd fix stale bug report link 2016-04-10 16:07:14 +02:00
17ff8e7f83 Moved donate link to app settings. 2016-04-03 21:08:22 +02:00
67b97435e9 Changed donate link to Syncthing website.
Also removed tip4commit badge from Readme.
2016-04-03 20:23:02 +02:00
f9c8a7dc8c Show notification if new folders is shared to local device (fixes #295). 2016-03-19 21:50:26 +01:00
9636c2ae91 Moved root to experimental settings, removed confirm dialog. 2016-02-20 20:21:13 +01:00
Martin Carpella
74b374a16e Experimental setting to keep a wakelock while Syncthing native binary is running 2016-02-18 23:23:20 +01:00
776a746740 Removed device ID placeholder which is not needed any more. 2016-02-08 22:34:59 +01:00
5733d95fa5 Fixed string formatting warnings. 2016-02-08 21:56:52 +01:00
09eb5b6b84 Only show folder percentage while syncing (fixes #555). 2016-02-07 19:11:07 +01:00
c280657861 Added notification for connection from unknown device 2016-01-23 19:04:39 +01:00
13870c0424 Allow empty device names. 2016-01-21 23:11:46 +01:00
7a1ec346f1 Improved delete folder/device strings (fixes #536). 2016-01-17 23:01:21 +01:00
af9c1421cd Added restart icon to drawer (fixes #420). 2015-12-22 15:54:13 +01:00
218b489b5e Removed folder ID restriction (fixes #519). 2015-12-16 19:01:35 +01:00
Martin Carpella
73c993dcd9 Add restriction for allowed WiFi SSIDs when WiFi-only sync 2015-12-10 19:34:06 +01:00