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

834 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
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