29c9003402
Finish activity after removing device/folder ( fixes #796 )
2016-12-01 18:15:19 +09:00
9209a8fb6c
Fixed some crashes
2016-12-01 18:15:09 +09:00
d2323b5c1d
Switch back to default asynctask executor for unlimited queue size
2016-12-01 18:15:09 +09:00
Audrius Butkevicius
6fc9007cf9
Add checkbox for hashing fallback (ref #778 )
2016-11-28 23:58:39 +00:00
8fc957a56b
Fix network broadcasts on Android 7 ( fixes #783 )
2016-11-20 23:10:38 +09:00
113d712d5f
Only set short rescan interval on Android 6 ( fixes #787 )
2016-11-20 13:42:44 +09:00
ac5e35636a
Don't force 60s rescan interval on start ( fixes #786 )
2016-11-19 14:45:19 +09:00
df47050c18
Fixed problems with folder device selection ( fixes #782 )
2016-11-17 22:44:04 +09:00
dcdb6e1129
Use Gson for connections
2016-11-17 20:01:51 +09:00
a201cd8789
Turned DeviceFragment and FolderFragment into activities
2016-11-11 00:37:27 +09:00
4f41eb7b06
Turned SettingsFragment into activity
2016-11-10 23:55:55 +09:00
9e9397be26
Initialize run conditions with correct enabled state
2016-11-10 23:49:43 +09:00
d9c2442a14
Don't show battery optimization dialog more than once
2016-11-10 23:46:40 +09:00
a3c30f4ac6
Fixed settings not being enabled after restart
2016-11-10 23:39:24 +09:00
2ecca8f1bd
Moved restart dialog into SyncthingActivity
2016-11-10 23:35:47 +09:00
f005fcd1d2
Request user to disable battery optimization for Syncthing
2016-11-10 22:57:18 +09:00
c961562c3c
Fixed settings behaviour when Syncthing is disabled
2016-11-07 20:01:36 +09:00
8d6ce42297
Merge pull request #780 from Unrud/npe
...
Fix NPEs
2016-11-06 14:23:08 +09:00
Unrud
3c78c67817
Fix NPEs
2016-11-06 06:03:55 +01:00
Unrud
390d0784ee
Reload URL and API key when importing config
...
Fixes #777
2016-11-06 00:31:13 +01:00
9201509d14
Disable "sync on SSIDs" setting if "only sync on wifi" is disabled
2016-10-31 18:31:41 +09:00
8b778bdcb4
Moved BINARY_NAME constant into SyncthingRunnable
2016-10-31 18:27:03 +09:00
cc7a130c1d
Renamed syncthing package to service
2016-10-31 18:25:55 +09:00
0f870bb216
Moved BootReceiver into receiver package
2016-10-31 18:24:04 +09:00
a64392922d
Reordered RestApi methods
2016-10-31 18:23:38 +09:00
90aa29d81d
Also start Syncthing using thread pool
2016-10-31 18:16:30 +09:00
ade637521e
Run all API requests in thread pool
2016-10-31 18:16:30 +09:00
2646205620
Improved handling of query parameters
2016-10-31 18:16:30 +09:00
28407d2e94
Use generic listeners for RestApi callbacks
2016-10-31 18:16:30 +09:00
dcd800dc9e
Fixed changing Syncthing settings
2016-10-31 18:16:30 +09:00
a263b0c8e2
Fixed folder versioning
2016-10-31 18:16:30 +09:00
337dc146a9
fixed crash when changing settings
2016-10-31 18:16:30 +09:00
60446d4381
Don't crash if global discovery disabled
2016-10-31 18:16:30 +09:00
f60e591a90
Fixed adding/editing folders and devices
2016-10-31 18:16:30 +09:00
4b0ec8b092
We should close URLConnections
2016-10-31 18:16:30 +09:00
66a7cf45db
Don't show duplicate restart dialog when changing settings
2016-10-31 18:16:30 +09:00
877cf224a5
Use Gson to parse events
2016-10-31 18:16:30 +09:00
b1af659e79
Don't load folders/devices in onResume()
2016-10-31 18:16:30 +09:00
87f36fcf13
Use Gson to (de-)serialize config, instead of working on raw JSON
2016-10-31 18:16:30 +09:00
fa2879c9f0
Simplified RestTask classes
2016-10-31 18:16:30 +09:00
d222cd7a76
Use lambdas for RestTask callbacks
2016-10-31 18:16:30 +09:00
396370a71b
Use Gson to parse devices
2016-10-31 18:16:30 +09:00
9b3968683b
Moved getDeviceName() into Device class
2016-10-31 18:16:30 +09:00
9cba4e0ef0
Moved views to seperate package
2016-10-31 18:16:30 +09:00
78891498e8
Moved receiver classes to seperate package
2016-10-31 18:16:30 +09:00
0488324843
Removed DpConverter class
2016-10-31 18:16:30 +09:00
e7e0e061a1
Moved all model classes to seperate package
2016-10-31 18:16:30 +09:00
e74c5b8c47
Moved common functionality to new Util class
2016-10-31 18:16:30 +09:00
3dffc4c900
Use Gson for folder parsing
2016-10-31 18:16:30 +09:00
1420ccc1be
Fixed crash in folder picker on pre-Kitkat devices ( fixes #772 )
2016-10-31 09:20:09 +09:00
a370bd4e77
Improved logging for folder observer creation
2016-10-27 02:02:47 +09:00
Martin Carpella
9373a5fd3f
Fix NullPointerException for STGUIASSETS
...
On devices without SD-card / shared-storage, getExternalFilesDir() may
return null.
2016-10-20 20:48:36 +02:00
bf3fe50461
Fixed broken code
2016-10-20 18:18:09 +09:00
Wulf Weich
6826bd9fe9
Set STGUIASSETS to let user add custom themes without root
2016-10-19 09:57:34 +02:00
931183ffba
Improved available roots in FolderPicker ( fixes #204 )
2016-10-17 17:22:48 +09:00
923d700d54
Fixed unit tests
2016-10-10 16:13:39 +09:00
ProactiveServices
8414d0dc76
Permit numbers in debug option
2016-10-08 10:05:08 +01:00
5b93948e7b
Removed old compatibility code
2016-09-24 17:14:48 +09:00
b707f0e6a3
Added @NonNull annotations
2016-09-23 13:21:23 +09:00
529c8c2fa1
Improved string formatting for drawer
2016-09-23 13:11:36 +09:00
a90b1a674a
Moved PRNGFixes to own package
2016-09-23 12:00:27 +09:00
63e8c22129
Replaced deprecated http APIs
2016-09-23 11:52:45 +09:00
b38a152f6a
Added workaround for broken inotify on Marshmallow
2016-09-23 09:37:48 +09:00
336aec5251
Replaced deprecated methods
2016-09-22 16:55:13 +09:00
d8a05ed392
Fixed various lint issues
2016-09-21 17:36:03 +09:00
1e9c9b4cea
Merge branch 'automatic-release'
2016-09-20 11:27:01 +09:00
6b7eb796f0
Fixed unit tests, use Robolectric for some tests
2016-09-20 10:22:13 +09:00
Martin Carpella
ebc0fe88de
Fix device completion for v0.14.6 ( fixes #736 )
2016-09-13 13:57:53 +02: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
aefec10f84
Added missing files for previous commit
2016-09-07 03:05:45 +02:00
d464010ee5
Added seperate first start activity
2016-09-07 03:02:18 +02:00
50f98e3f69
Set user/password in config instead of removed STGUIAUTH ( fixes #704 ).
2016-08-25 14:23:19 +02:00
17530bab6b
Revert "Disable sync if Android sync setting is disabled ( fixes #588 )."
...
This reverts commit 2daa601e36
.
2016-08-24 22:30:49 +02:00
f3abfb15f5
Don't set preference value as summary
2016-08-21 13:36:31 +02:00
926a5a7d21
Fixed crash when stopping service ( fixes #725 )
2016-08-19 20:54:45 +02:00
dff3e052af
Support TOR connectivity ( fixes #589 ).
2016-08-19 14:07:13 +02:00
77c2d4bd55
Fixed crash when closing DeviceFragment early (reported on GPlay)
2016-08-19 02:54:24 +02:00
972f38755a
Fixed possible crash in RestApi (reported on Google Play)
2016-08-19 02:49:55 +02:00
d33b9a2c56
Fixed wrong Android version constant for isPowerSaveMode()
2016-08-16 17:35:49 +02:00
c1d5bcc4cd
Disable Syncthing if battery saving mode is active ( fixes #603 ).
2016-08-16 17:24:23 +02:00
2daa601e36
Disable sync if Android sync setting is disabled ( fixes #588 ).
2016-08-16 17:20:35 +02:00
8cb9105197
Moved shouldRun check into DeviceStateHolder.
2016-08-16 17:15:45 +02:00
Martin Carpella
8d152dc200
Log SSID whitelist for better troubleshooting of #700
2016-08-11 21:39:43 +02:00
dd7966a228
Added confirm dialog to restart button ( fixes #716 )
2016-08-03 00:58:41 +02:00
2a5374a2a5
Merge branch 'sort-by-label' of https://github.com/xduugu/syncthing-android into xduugu-sort-by-label
2016-08-01 15:45:09 +02:00
ba3623785f
Fixed back button not working if disabled dialog is open.
2016-07-21 15:17:50 +02:00
Martin Carpella
7ab4f4d835
Experimental "Run as foreground service" setting
2016-07-14 00:01:00 +02:00
Lars K.W. Gohlke
7e4879a26e
fix NPE, when pressing back button on LogActivity ( fixes #604 )
2016-07-06 02:02:47 +02:00
Cedric Staniewski
3a8346b9a5
Sort folders by label
...
If the label is empty or unset, use the folder ID in comparision.
2016-07-03 23:02:31 +02:00
Unrud
af8ec86843
Make multiple PendingIntents distinguishable
...
If notifications for multiple new devices or folders are shown, the last Intent was used for all of them.
2016-06-14 18:17:28 +02:00
Unrud
3899abf454
Use folderLabel from FolderRejected events
...
Show folder label in notification and
preset value for new folder.
2016-06-13 01:13:32 +02:00
d29b675a1e
Use expandable notification for new device/folder ( fixes #614 ).
2016-06-12 22:15:36 +02:00
Lars K.W. Gohlke
1aafb38764
adds display of syncthing version in main drawer
2016-06-09 08:55:49 +02:00
573533a35f
Fixed device toggle ( fixes #647 ).
2016-05-19 11:40:55 +09:00
1fba3dd53e
Updated Syncthing to v0.13.0-beta.4, adjusted to API changes.
2016-05-07 06:22:54 +02:00
12997d6b36
Added support for folder labels.
2016-05-04 03:41:55 +02:00
cc74cd1fcf
Fix crash in case DrawerFragment is opened early ( fixes #629 ).
2016-04-26 23:08:35 +02:00
bb17c53d4c
Fixed lint warnings.
2016-04-26 22:54:27 +02:00
Martin Carpella
cfac1d3a61
Fix checks for intent actions ( fixes #625 )
2016-04-26 20:01:50 +02:00
d70302d502
Fixed unit tests, removed adapter tests.
2016-04-24 23:01:02 +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
Martin Carpella
284d9bd7d3
Add checks for null-SSID (fix for #620 )
2016-04-19 22:39:27 +02:00
f4c15a98e6
Update Syncthing URL on restart if it was changed ( fixes #442 ).
2016-04-10 17:29:05 +02:00
6a686cdb95
Don't force crash in release mode ( fixes #595 ).
2016-04-10 17:07:03 +02:00
7f090e3653
Handle exit code 137 caused by SIGKILL.
...
Also don't restart Syncthing twice (via loop and via intent).
2016-04-04 23:11:32 +02:00
17ff8e7f83
Moved donate link to app settings.
2016-04-03 21:08:22 +02:00
ac7d410db4
Use proper namespace for intent actions and extras.
2016-04-03 20:45:22 +02:00
09bba7140a
Use integer constants for usage reporting.
2016-04-01 22:53:03 +02:00
b75f025238
Set correct value after usage report was accepted ( fixes #606 ).
2016-04-01 22:03:17 +02:00
9ed5859f40
Also include stdout in Syncthing crash exception.
2016-03-26 18:42:37 +01:00
a04a05b8e8
Added workaround for samsung 4.2 crash ( fixes #591 ).
2016-03-22 12:16:35 +01:00
02c93dee6e
Don't reset scroll position when updating device/folder list ( fixes #579 ).
2016-03-20 19:28:25 +01:00
deda1582df
Removed unneeded compatibility functions, moved sorting into fragments.
2016-03-20 19:12:49 +01:00
494f98ee5c
Use TimeUnit for update interval.
2016-03-20 18:03:12 +01:00
e7433fa392
Fix FolderFragment to show all devices.
2016-03-19 21:59:53 +01:00
e459cadeef
Cleaned up SettingsActivity.
2016-03-19 21:57:00 +01:00
ab19944383
Change constants from repo/node to folder/device.
2016-03-19 21:53:35 +01:00
f9c8a7dc8c
Show notification if new folders is shared to local device ( fixes #295 ).
2016-03-19 21:50:26 +01:00
0891109c42
Don't duplicate devices in FoldersFragment ( fixes #587 ).
2016-03-19 18:32:43 +01:00
567e332651
Merge pull request #581 from syncthing/change-exit
...
Don't use Process#exit() to avoid exit code 9.
2016-03-16 22:01:26 +01:00
1a7f24411e
Merge pull request #584 from DevFactory/release/general-code-quality-fix-1
...
General code quality fix-1
2016-03-15 23:08:27 +01:00
Faisal Hameed
aee0d616e5
Fixing squid:S2864 - Iterating entrySet insteadof keySet.
2016-03-15 21:19:01 +05:00
9d21902090
Merge pull request #582 from DevFactory/release/default-encoding-should-not-be-used-fix-1
...
Code quality fix - Classes and methods that rely on the default system encoding should not be used.
2016-03-15 15:15:50 +01:00
Faisal Hameed
fc9c170bb1
Fixing squid:UselessParenthesesCheck -Removing useless parentheses.
2016-03-15 15:42:25 +05:00
Faisal Hameed
1d06411883
Fixing squid:S1943 - Default system encoding should not be used.
2016-03-15 08:18:47 +05:00
b9c76ff062
Shutdown syncthing before importing a config ( fixes #570 ).
2016-03-12 19:46:36 +01:00
fc5827a1df
Actually use PID to stop Syncthing.
2016-03-12 19:46:36 +01:00
91f9231501
Don't use Process#exit() to avoid exit code 9.
...
Process#exit() seems to cause syncthing to return exit code 9 all
the time. Using SIGINT instead always gives a clean exit (at least
on my Android 6 device).
2016-03-12 19:46:31 +01:00
8cba94fed1
Improve error outout.
2016-03-11 22:24:04 +01:00
8fb1a314b5
Removed legacy code.
2016-03-11 21:39:25 +01:00
115a9b5727
Force crash if Syncthing exits with an error.
...
This should give us some useful info for all our native crashes.
2016-03-11 01:22:02 +01:00
60d01aea89
Fixed infinite loop when changing folder settings.
2016-03-08 00:51:50 +01:00
90331bb7ab
Immediately update GUI after config was changed ( fixes #355 ).
2016-02-26 00:06:49 +01:00
192188fd4e
Fixed comparison type.
2016-02-25 14:04:57 +01:00
04043a1174
Improved handling of device addresses ( fixes #508 ).
2016-02-25 13:52:11 +01:00
63a7342bfc
Fixed loading of folder and device list items ( fixes #556 , ref #74 ).
2016-02-25 12:47:16 +01:00
9636c2ae91
Moved root to experimental settings, removed confirm dialog.
2016-02-20 20:21:13 +01:00
273d24bc15
Disable keep wakelock setting on restart.
2016-02-20 20:19:51 +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
f299ca2d1e
Added copy button to device IDs ( fixes #559 ).
2016-02-09 23:01:39 +01:00
af5ba5c0d9
Don't restart before config has been updated ( fixes #398 ).
2016-02-09 22:06:02 +01:00
cda06d8938
Reduce logging and number of retries for HTTP tasks.
2016-02-09 21:11:00 +01:00
6b6efabcc0
Don't spin drawer toggle ( fixes #532 ).
2016-02-09 01:45:24 +01:00
691ca26daa
Added share device ID button to drawer, always show scrollbar.
2016-02-08 23:03:20 +01:00
6ea906d056
Optimized imports.
2016-02-08 21:56:52 +01:00
5733d95fa5
Fixed string formatting warnings.
2016-02-08 21:56:52 +01:00
3779b311fd
Also use Math.round() for folder percentage.
2016-02-08 21:56:52 +01:00
c5f2abfe07
Use Math.round() instead of cast for device percentage ( fixes #197 ).
2016-02-08 12:22:05 +01:00
09eb5b6b84
Only show folder percentage while syncing ( fixes #555 ).
2016-02-07 19:11:07 +01:00