Android: Implement cloud save

Desktop / LibreOffice - Jacobo Aragunde Pérez [igalia.com] - 11 September 2015 13:29 UTC

The LOMainActivity now needs to be aware of Document Providers, so we pass the providerId and documentUri in the Intent so it can rebuild the DocumentProvider and the IFile objects.

We also implement the ownCloud save operation.

TODO: since the local save operation does not have a callback, we do not know when the cloud save operation should be performed. Now we just wait 5 seconds to trigger it.

626ebde Android: Implement cloud save
.../org/libreoffice/LibreOfficeMainActivity.java | 71 ++++++++++++++++++--
.../src/java/org/libreoffice/storage/IFile.java | 8 +++
.../org/libreoffice/storage/local/LocalFile.java | 5 ++
.../libreoffice/storage/owncloud/OwnCloudFile.java | 22 ++++++
.../org/libreoffice/ui/LibreOfficeUIActivity.java | 9 ++-
5 files changed, 107 insertions(+), 8 deletions(-)

Upstream: cgit.freedesktop.org


  • Share