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

725 commits

Author SHA1 Message Date
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
493dd80a04 Imported translations. 2016-04-21 23:04:41 +02:00
Martin Carpella
284d9bd7d3 Add checks for null-SSID (fix for #620) 2016-04-19 22:39:27 +02:00
e2b9a8b813 Removed tests that rely on translations being the same. 2016-04-19 15:06:11 +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
Lars K.W. Gohlke
10f8f849dd fix stale bug report link 2016-04-10 16:07:14 +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
67b97435e9 Changed donate link to Syncthing website.
Also removed tip4commit badge from Readme.
2016-04-03 20:23:02 +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
0f4f24a501 Updated translations. 2016-03-30 22:36:47 +02:00
9ed5859f40 Also include stdout in Syncthing crash exception. 2016-03-26 18:42:37 +01:00
85bc301781 Fixed tests. 2016-03-24 12:57:27 +01:00
8a85edfac1 Imported translations. 2016-03-24 12:35:22 +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
1f9f359422 Added Google Play translations. 2016-03-17 16:48:25 +01:00
76f97bd75d Imported translations. 2016-03-16 22:34:35 +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
963704778a Replaced deprecated xml attribute. 2016-03-11 22:32:23 +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
9f3b97531a Updated unit tests. 2016-03-08 01:12:26 +01:00
78789730bd Removed unneeded file. 2016-03-08 00:53:58 +01:00
60d01aea89 Fixed infinite loop when changing folder settings. 2016-03-08 00:51:50 +01:00
23314677fa Imported translations. 2016-03-08 00:37:58 +01:00
90331bb7ab Immediately update GUI after config was changed (fixes #355). 2016-02-26 00:06:49 +01:00
5996e134c2 Updated Google Play translations. 2016-02-25 14:49:35 +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
a15d08cfb3 Moved exit button to static position in drawer (fixes #571). 2016-02-24 23:08:27 +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
5537b19706 Imported translations 2016-02-20 16:51:14 +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
25fc3a427c Fixed test logic. 2016-02-11 14:07:05 +01:00
994d397558 Fixed DevicesAdapterTest. 2016-02-10 23:27:28 +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
7117933b6d Added input type field to text inputs (fixes #542). 2016-02-09 21:50:33 +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
776a746740 Removed device ID placeholder which is not needed any more. 2016-02-08 22:34:59 +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
Martin Carpella
257032fd28 Fix NullPointerException in onNewIntent() 2016-01-23 21:58:21 +01:00
c280657861 Added notification for connection from unknown device 2016-01-23 19:04:39 +01:00
c656c45081 Simplified event handling code. 2016-01-23 17:55:04 +01:00
3d09d43bd4 Improved handling for empty device IDs. 2016-01-23 17:32:52 +01:00
34fead0623 Removed unused compatibility code. 2016-01-23 17:04:02 +01:00
ae8dc76ba9 Check if JSON string is null before parsing. 2016-01-22 23:13:13 +01:00
41943502d4 Display partial ID if device name is empty (fixes #419). 2016-01-21 23:12:14 +01:00
13870c0424 Allow empty device names. 2016-01-21 23:11:46 +01:00
d062f07820 Fixed crash if listener is null (fixes #482). 2016-01-21 22:28:49 +01:00
0ce4962265 Fixed forum URL in Google Play description (#ref 530). 2016-01-18 15:03:06 +01:00
7a1ec346f1 Improved delete folder/device strings (fixes #536). 2016-01-17 23:01:21 +01:00
Lode Hoste
578d5f4747 Regenerate ic_link_black_24dp_active.png 2016-01-16 20:39:59 +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
98f98fddb9 Fixed possible crash if FolderObserver could not be created. 2015-12-16 01:10:16 +01:00
0350778db9 Updated Google Play short description. 2015-12-10 19:50:45 +01:00
Martin Carpella
73c993dcd9 Add restriction for allowed WiFi SSIDs when WiFi-only sync 2015-12-10 19:34:06 +01:00
90bfb9f548 Use gradle dependency for zxing. 2015-12-05 15:59:55 +01:00
6eab15a807 Added missing xxxhdpi icons. 2015-12-03 16:38:57 +01:00
7546568ca9 Added fullBackupContent attribute to manifest. 2015-12-03 16:33:33 +01:00
814afaa1fb Removed unused "inactive" graphics for drawer. 2015-12-03 16:31:43 +01:00
f1538c247f Imported translations. 2015-12-03 14:24:59 +01:00
8901821bfb Imported app translations. 2015-11-22 14:36:55 +01:00
684cc445ef Fixed lint warning. 2015-11-22 14:18:35 +01:00
4bdc2e8d54 Restore default announce servers. 2015-11-19 21:40:06 +01:00
cda820aaed Removed code to change web GUI port.
Everyone should have the proper port by now.
2015-11-19 21:24:25 +01:00
08de76b873 Merge pull request #431 from FlashSystems/master
Asynchronous event API
2015-11-19 21:20:15 +01:00