1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-30 16:21:18 +00:00
Commit graph

133 commits

Author SHA1 Message Date
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
97b3bdb9cc Resize "Save to Syncthing" activity when keyboard is open (fixes #897) 2017-06-02 14:54:15 +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
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
f005fcd1d2 Request user to disable battery optimization for Syncthing 2016-11-10 22:57:18 +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
78891498e8 Moved receiver classes to seperate package 2016-10-31 18:16:30 +09:00
1facd5bb30 Revert "Added WRITE_MEDIA_STORAGE permission (fixes #719)."
This reverts commit 66597e9425.
2016-09-21 07:52:51 +09:00
d464010ee5 Added seperate first start activity 2016-09-07 03:02:18 +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
66597e9425 Added WRITE_MEDIA_STORAGE permission (fixes #719). 2016-08-18 13:21:44 +02:00
2daa601e36 Disable sync if Android sync setting is disabled (fixes #588). 2016-08-16 17:20:35 +02:00
bb17c53d4c Fixed lint warnings. 2016-04-26 22:54:27 +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
Martin Carpella
74b374a16e Experimental setting to keep a wakelock while Syncthing native binary is running 2016-02-18 23:23:20 +01:00
Martin Carpella
73c993dcd9 Add restriction for allowed WiFi SSIDs when WiFi-only sync 2015-12-10 19:34:06 +01:00
7546568ca9 Added fullBackupContent attribute to manifest. 2015-12-03 16:33:33 +01:00
George Venios
aad7f2be6a Updated device details styling.
Made actionmode bar overlay the toolbar.
Updated UI for device edit/create fragment to match the folder one.
Refactored FolderFragment to match DeviceFragment.
Improvements for Details styles and item heights.
2015-10-15 00:43:07 +01:00
George Venios
90b5d2ff9a Fixing weird dialog background on versions earlier than Lollipop.
Standardised theme names.
Renamed styles.xml to themes.xml to keep these separate.
Fixes #425.
2015-08-02 16:03:39 +01:00
cb6a3fc884 Close Add Folder/Device Activity after "Create" (fixes #417). 2015-07-07 02:10:12 +02:00
3ac46c3536 Added material design colors. 2015-07-03 17:29:11 +02:00
6daa429a4d Cleaned up build.gradle. 2015-06-28 17:43:43 +02:00
79a0958926 Explicitly set installLocation (ref #405). 2015-06-23 21:36:58 +02:00
457831fbe3 Bumped version to 0.6.4. 2015-06-19 20:21:36 +02:00
97b03f97a5 Fixed various lint warnings. 2015-06-19 20:15:35 +02:00
693eb6c246 Bumped version to 0.6.3. 2015-06-15 17:14:46 +02:00
b547c943d0 Added TV compatibility (fixes #402). 2015-05-30 11:01:38 +02:00
7ed77e079c Bumped version to 0.6.2. 2015-05-24 13:12:17 +02:00
41ad260035 Bumped version to 0.6.1. 2015-05-15 21:14:27 +02:00
Lode Hoste
6496666bf2 Bump Android version number 2015-05-06 08:10:28 +02:00
Lode Hoste
0c13d8e106 Support opening LogActivity in debug package 2015-04-23 08:28:43 +02:00
Lode Hoste
6be050c43d Add log window (fixes #311). 2015-04-23 08:27:22 +02:00
329f073106 Increased target sdk version to 22. 2015-04-08 15:47:39 +02:00
832c7fdf72 Bumped version to 0.5.28. 2015-04-06 00:40:23 +02:00
Lode Hoste
d322249606 Fix back arrow in actionbar for Android 4.1+ 2015-03-25 17:19:10 +01:00
Lode Hoste
aa8cd0a26c Bumped version to 0.5.27. 2015-03-24 21:21:26 +01:00
3558060fe0 Bumped version to 0.5.26. 2015-03-23 00:31:35 +01:00
1665c04e37 Bumped version to 0.5.25. 2015-03-23 00:03:44 +01:00
Lode Hoste
c396646c36 Bumped version to 0.5.24.
Releases go through Jenkins now
2015-03-21 13:26:01 +01:00
Lode Hoste
47c0b132ff Bumped version to 0.5.23. 2015-03-21 11:45:09 +01:00
4868694643 Bumped version to 0.5.22. 2015-03-21 01:12:42 +01:00
7b54ce59b1 Bumped version to 0.5.21. 2015-03-17 22:39:09 +01:00
c128612e68 Bumped version to 0.5.20. 2015-03-14 21:19:58 +01:00
a3b7241c1e Bumped version to 0.5.19. 2015-03-14 15:14:50 +01:00
9c91f3f1d0 Bumped version to 0.5.18. 2015-03-08 23:33:36 +01:00
9120094c95 Bumped version to 0.5.17. 2015-02-22 21:01:02 +01:00
59d92913ec Bumped version to 0.5.16. 2015-01-21 20:45:51 +01:00
2d935b5485 Bumped version to 0.5.15. 2015-01-14 12:07:56 +01:00