1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-25 22:01:16 +00:00
Commit graph

912 commits

Author SHA1 Message Date
f4e1b077d3 Move StrictMode handling into SyncthingApp class 2017-09-04 02:07:04 +09:00
3ddf526679 Add option to start directly into web gui (fixes #578) 2017-09-04 02:06:35 +09:00
f2071be81c Allow setting arbitary environment variables (fixes #788) 2017-08-25 20:12:14 +09:00
31721af0c3 Dont crash if request ignore battery optimizations is not supported 2017-08-25 18:57:13 +09:00
4c8a98d169 Make sure dialog is showing before dismissing 2017-08-25 18:50:42 +09:00
e89ec17c9f Remove unused variable from SyncthingRunnable 2017-08-25 18:41:22 +09:00
204eb194ad Fix NPE if activity is null 2017-08-25 17:10:40 +09:00
d3d00ff1d9 Sort language names alphabetically and capitalize (fixes #935) 2017-08-15 13:06:07 +09:00
2f1d5f1ff2 Dont hardcode web gui URL 2017-07-21 12:18:02 +09:00
a9b80fbdc4 Webview improvements (respect back button, open external links in browser)
ref https://github.com/syncthing/syncthing/issues/4264
2017-07-21 01:43:28 +09:00
c13828b734 Delete unused strings 2017-07-19 13:40:12 +09:00
Unrud
2b0e70ca97 Remove custom user and password (fixes #868) (#923)
This removes the ability to set a custom user and password.
The user is always set to "syncthing" and the password to the API key.
This ensure that the web GUI works and makes sure that the web GUI is protected.
2017-07-19 13:21:50 +09:00
efd3f291f0 Imported translations 2017-07-19 13:16:30 +09:00
749c29591a Various lint fixes 2017-07-19 13:12:55 +09:00
9813163020 Imported translations 2017-07-19 12:44:45 +09:00
e8073599ae Add preference to change app language (fixes #742) 2017-07-19 12:24:45 +09:00
Unrud
6718811c29 Show error when folder is out of sync (#925)
* Show error when folder is out of sync

* Translate status_outofsync

Copied from Syncthing GUI

* Colorize status message of folders
2017-07-19 11:18:37 +09:00
Unrud
596bc1c49d Show global file count and size 2017-07-18 17:41:59 +02:00
Unrud
45fb92c248 Fix calculation of sync progress (fixes #866) 2017-07-18 17:41:58 +02:00
Unrud
fd69477e6c Remove TargetApi annotations
They are not used correctly and suppress important linter warnings. (e.g. ea8621cfc3)
2017-07-18 17:41:57 +02:00
Unrud
d119517614 Don't access devices/folders when config is not loaded (fixes #876) (#924) 2017-07-18 12:33:20 +09:00
Unrud
ea8621cfc3 Check battery saving on Android 5.0 (#921)
isPowerSaveMode and ACTION_POWER_SAVE_MODE_CHANGED were added in API level 21.
2017-07-17 12:31:56 +09:00
Unrud
a3deb81c72 Fix network broadcasts on Android 7.0 (fixes #783) (#918) 2017-07-17 12:24:53 +09:00
Unrud
b09abf320e Verify certificates of web GUI (#919)
The check of the SDK version is wrong.
2017-07-17 12:24:06 +09:00
d4fc8d3605 Fix some other default values 2017-07-06 15:15:32 +09:00
e4ba5be843 Set proper default value for autoNormalize (fixes #915) 2017-07-06 15:07:58 +09:00
Matthew Davis
cd41856cf0 fixed typo with send/recv rate limit (#916) 2017-07-06 14:58:59 +09:00
Jessie Chatham Spencer
ab88ca252b Added dialog displaying device ID and QRCode addressing #790 (#912)
* Wip adding dialog.

* Wip adding ImageRequest functionality.

* Got a text converted to a QrCode using the syncthing Api.

* Dialog now shows device ID and QRCode.
The dialog also keeps it state when the device rotates and the copy ID functionality has been moved
to the dialog, from the drawer.

* Moved share device ID functionality to the Device ID dialog.

* Addressed code change requests and added improved dialog layout by @nutomic.
2017-07-06 14:55:18 +09:00
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
941f9aa0c8 Always sort folders (fixes #902) 2017-06-07 17:14:44 +09:00
755e581eb3 MinDiskFree value should be float, not int (fixes #901) 2017-06-07 17:07:23 +09:00
97b3bdb9cc Resize "Save to Syncthing" activity when keyboard is open (fixes #897) 2017-06-02 14:54:15 +09:00
716591ff9c Imported translations 2017-05-30 16:59:11 +09:00
770ec6050d Set random folder id when creating new folder (fixes #895) 2017-05-29 12:47:41 +09:00
23deb9a0ea Updated Syncthing to v0.14.28 2017-05-17 13:18:51 +09:00
Jessie Chatham Spencer
d296be02e9 Stopped dialogs from losing state after screen rotation Fixes for: #804 #805 #807. (#884)
* Stopped dialogs from losing state after screen rotation.

 - Used onSaveIntance() to save dialog state while the activity is being recreated.

* Addressed issues raised.
 - Removed empty lines
 - Removed Logging
 - Checked is dialog was null instead of using a boolean to keep track og dialog state.
 - Changed contants to not include package.
2017-05-12 12:47:12 +09:00
anrp
9399762ed9 Fix missing path separator in folder copy target (#883)
* Fix missing path separator in folder copy target

* Update to use direct File constructor
2017-05-01 21:09:15 +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
83e3338517 On exit code 1, kill Syncthing and retry start (ref #865) 2017-04-11 18:54:27 +09:00
326c187453 Fixed lint errors 2017-04-11 13:27:10 +09:00
55e707e925 Imported translations 2017-04-11 13:24:15 +09:00
71839eb550 Added preference to enable/disable crash notifications 2017-04-11 13:10:05 +09:00
fddc555a31 Handle missing permissions when clicking notification (ref #871) 2017-03-31 12:59:36 +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
5db28dfeb8 Imported translations 2017-03-28 00:28:21 +09:00
b4e991838e Dont keep entire log file in memory for trimming (ref #862) 2017-03-23 15:44:52 +09:00
8463c19416 Added option to configure battery saving mode behaviour (fixes #741) 2017-03-21 11:49:52 +09:00
5c4401d5aa Imported translations 2017-03-11 01:35:46 +09:00
245470a9d4 Show notification with info if Syncthing crashes 2017-03-08 15:05:58 +09:00
1be1fbc1fe Increase max length of log file to 10k lines 2017-03-08 14:46:58 +09:00
b5d2ad93a5 Display local state instead of global state 2017-02-27 09:53:25 +09:00
4a775728a5 Added link to Syncthing forum (ref #813) 2017-02-15 10:17:51 +09:00
78dd4d707a Imported translations 2017-02-07 16:37:46 +09:00
2c7f935501 Changed gui update interval to 5s just to be sure 2017-02-03 01:01:33 +09:00
a231601295 Changed gui update interval to 2 seconds 2017-01-31 12:42:18 +09:00
1d6fc644ca Don't crash when opening folder on Android 7 (fixes #831) 2017-01-26 02:32:40 +09:00
94bad4c98a Fixed crash when setting rate limit 2017-01-23 21:27:22 +09:00
b01eb9a877 Fixed typo 2017-01-23 11:14:23 +09:00
ea747f220c Imported translations 2017-01-22 18:51:49 +09:00
Paul Annekov
1170d8ceb1 Click region of Open folder button (#830)
* increased folder button size

* increased folder button size

* code formatting
2017-01-10 23:27:39 +07:00
9526eeb748 minDiskFreePct should be a float (fixes #829) 2017-01-08 23:00:22 +09:00
0780d606d9 Fixed crash when adding a new device 2017-01-08 21:53:25 +09:00
618945c5bf Use volley for API requests (fixes #827) 2017-01-08 21:53:25 +09:00
1814479b47 Add ARMv8 Syncthing binary for faster hashing on new devices 2017-01-05 12:31:08 +09:00
5153502e4a Improved handling of Syncthing exit codes 2016-12-28 13:24:25 +09:00
3e4effa7c6 Added padding for folder button 2016-12-26 09:33:50 +09:00
f2498920f0 Dont crash if no file manager installed (fixes #822) 2016-12-26 09:33:28 +09:00
81af50a8be Changed GUI update interval to 1 second (fixes #820) 2016-12-23 11:43:16 +09:00
bb61358b4a Always set ignorePerms when creating a new folder (fixes #821) 2016-12-23 11:36:35 +09:00
4a30bd51ae Tread exit code 2 as error (fixes #759) 2016-12-22 17:03:04 +09:00
0539d0b5a0 Set proper default name for local device 2016-12-22 15:14:54 +09:00
1df103cb0f Dont allow adding duplicate folder via notification (fixes #617) 2016-12-22 14:21:55 +09:00
6d6c6beac0 Fixed folder items not being clickable 2016-12-22 14:19:19 +09:00
147f38b37a Improved formatting of LogActivity messages (fixes #797) 2016-12-22 13:19:46 +09:00
22e9187d36 Added mention of task killers in battery optimization dialog (fixes #815) 2016-12-20 16:25:46 +09:00
ea9af597a5 Added button to open folder from list (fixes #770) 2016-12-17 23:34:54 +09:00
e0412ec51b Use data binding for folder items 2016-12-17 23:26:06 +09:00
0858386811 Moved translation files according to removed flavors 2016-12-16 18:36:41 +09:00
c750131657 Imported translations 2016-12-16 16:12:04 +09:00
7dde331454 Store log file on disk for easier access (fixes #811) 2016-12-16 16:06:25 +09:00
92bf84915c Dont crash when rotating screen in settings (fixes #806) 2016-12-12 15:38:50 +09:00
8bcf33b051 Fixed bug where devices were always shown as disconnected (fixes #800) 2016-12-12 15:32:41 +09:00
874e38dc23 Imported translations 2016-12-05 14:20:29 +09:00
46044258a6 Dont crash when setting versioning (fixes #798) 2016-12-05 14:15:21 +09:00
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
2dedaaf15f Imported translations 2016-11-26 22:04:40 +09:00
f71017f3c3 Imported translations 2016-11-20 23:21:38 +09: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