* 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
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()
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.