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