1522 Commits

Author SHA1 Message Date
Tor Lillqvist
827e78fcb2 Revert "revert back to android-21 target until tinderbox gets updated"
Now it has been updated.

This reverts commit 4e47ed7e5aad8bde548b4953baba13cf99b6fd9c.
2015-09-28 14:45:09 +03:00
Christian Lohmaier
4e47ed7e5a revert back to android-21 target until tinderbox gets updated
Change-Id: Ief38ef9cc4f167caef8d991c9543161997682418
2015-09-25 16:46:28 +02:00
Christian Lohmaier
45c27ffcfd android.util.FloatMath is deprecated/was removed in ver 23
replace with corresponding Math functions and bump android sdk target to
23 to be able to use current appcompat-v7

pre-JIT FloatMath was faster, but since then was wrapper to Math anyway
http://developer.android.com/reference/android/util/FloatMath.html

Change-Id: I19e316fb7d32e616162a70fca8c565fa320a8c1a
2015-09-24 22:47:59 +02:00
Andrea Gelmini
ac22644352 Fix typos
Change-Id: I021589aeca9ef6bceb1c828c2197f5ff58f85b09
Reviewed-on: https://gerrit.libreoffice.org/18707
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-09-18 22:06:21 +00:00
Jacobo Aragunde Pérez
a952540aeb Android: i18-ize some strings
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
2015-09-11 18:32:49 +00:00
Jacobo Aragunde Pérez
315ca033c6 Android: check file modify date to know if save is complete
The API does not allow to set a callback for the save operation, we
work this limitation around by checking the modification date of the
local file periodically. When that date changes, we are sure the
local save operation is complete and we can invoke the document
provider save operation to push the changes to the cloud, if
necessary.

Users may press "save" on a document with no changes, in this case we
have set a 20 seconds limit to stop checking the modification date.

We also add a "save complete" message for the user.

Change-Id: Ib8871fac682a5c03a187a7238e11874984143527
2015-09-11 18:29:58 +00:00
Jacobo Aragunde Pérez
626ebde44f Android: Implement cloud save
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.

Change-Id: I060969e12888eca07c8c56ddc82cbed6c45a0739
2015-09-11 18:29:01 +00:00
Jacobo Aragunde Pérez
a3c3a13e84 Android: provide an ID to document providers
This ID will be useful to get an instance of a document provider back
from a different activity.

Change-Id: I9419ea23d51f8e9ffd70252bd8e367cf51bde1ad
2015-09-11 18:29:00 +00:00
Norbert Thiebaud
a8db357874 gbuild/config stop using VERBOSE, use only verbose=t
configure.ac was setting VERBOSE=YES/NO when really
we use verbose=t or verbose=

Change-Id: I47aee8d177cb2d788a62ecdbbb9cc3695c2bb299
Reviewed-on: https://gerrit.libreoffice.org/17634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-08-11 04:34:45 +00:00
Andrea Gelmini
ffa8892c5a Fix typos
Change-Id: I75b4ad61785bf0ba1cb07735d938c0977356b8cc
Reviewed-on: https://gerrit.libreoffice.org/16705
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2015-07-04 10:23:17 +00:00
Noel Grandin
0c18bedb73 java: 'final static' to 'static final'
this is the canonical order, and it makes the code easier to read

Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470
Reviewed-on: https://gerrit.libreoffice.org/16242
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-06-15 08:45:19 +00:00
Jacobo Aragunde Pérez
aa3cdfc8b6 Android: show drawer ("hamburger") icon on root directory
When browsing the root directory, the application home button (on the
top left corner) becomes a drawer icon. When not in the root dir, the
icon is an arrow as usual.

This will increase the visibility of the document providers feature.

Also, modified the behavior of the system back key to close the drawer
in case it is open.

Change-Id: Id0ce932907bcec4b8601029482eda0c1c1f0df35
Reviewed-on: https://gerrit.libreoffice.org/16246
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12 11:23:27 +00:00
Jacobo Aragunde Pérez
371cecff13 Android: do not hide toolbar under the drawer
Change-Id: I329b1e5eb63c023a488c72137d9775f1f19b9e3d
Reviewed-on: https://gerrit.libreoffice.org/16247
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12 11:07:06 +00:00
Jacobo Aragunde Pérez
d1f671e053 tdf#87434: android: system back key to go one level up
Added an additional check so back has to be pressed twice on the root
folder to actually leave the application. It's a check seen in many
other apps.

Change-Id: I26827113a41070aa8188fa616ba8fe53742329b3
Reviewed-on: https://gerrit.libreoffice.org/16245
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12 09:32:12 +00:00
Jacobo Aragunde Pérez
cafae25b04 Android: properly set default dir for the document browser
The default dir had been changing by modifying the "local documents"
provider; this is wrong because there is already a document provider
to browser de internal storage.

Change-Id: I08677283100162aaeced622153131f89abc2f1af
Reviewed-on: https://gerrit.libreoffice.org/16244
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-12 09:31:37 +00:00
Noel Grandin
efd4bfa818 java:regulatize the order of 'final' and public/private
Make the order be 'public static' or 'private static'
Just makes the code nicer to read.

Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2
Reviewed-on: https://gerrit.libreoffice.org/16202
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-11 09:34:00 +00:00
Jacobo Aragunde Pérez
78ecdbc2f6 Android: improve error handling in ownCloud provider.
This provider now throws exceptions with properly internationalized
messages to be shown to the user.

Change-Id: I0464bffe14cab24d50180cb5e2e62ce746bcba74
Reviewed-on: https://gerrit.libreoffice.org/16197
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:18:50 +00:00
Jacobo Aragunde Pérez
f8a4e1aab6 Android: document providers listen to changes in preferences.
With this patch, document providers are able to listen to changes in
their preferences and update their internal state accordingly. Now
ownCloud provider can see its server updated without restarting the
application.

Change-Id: I833c7ec9fc97be58bdc8ac2cbf4384a33c2b400e
Reviewed-on: https://gerrit.libreoffice.org/16196
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:17:25 +00:00
Jacobo Aragunde Pérez
ba44368da5 Android: add menu entry for document provider settings
Change-Id: Ic48275fe2e7d83fd5e77171f4f5740a527dec7e2
Reviewed-on: https://gerrit.libreoffice.org/16195
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:15:59 +00:00
Jacobo Aragunde Pérez
79f5d4465c Android: setup ownCloud provider with user-defined settings
Change-Id: I4ad4dd12854ca9f332055a50131959f60f7da504
Reviewed-on: https://gerrit.libreoffice.org/16194
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:14:15 +00:00
Jacobo Aragunde Pérez
d5c9d1dec6 Android: settings activity for document providers
Creates an activity to manage the settings of any document provider
that needs them, and populated it with the settings required by the
ownCloud implementation.

The settings screen is not yet plugged to the document browser UI but
can be launched with this command:

  adb shell am start -a android.intent.action.MAIN \
  -n org.libreoffice/.storage.DocumentProviderSettingsActivity

Change-Id: I83cff641fa61078f2bddbb98262af989c06985a9
Reviewed-on: https://gerrit.libreoffice.org/16193
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:12:18 +00:00
Jacobo Aragunde Pérez
d6f9e41537 Android: download documents from ownCloud.
Documents are downloaded to the private cache directory of the app,
and opened from there. That directory is cleared and created again
every time the application starts up.

Change-Id: I5c05c8ae750b6ced3b419c67d84063e8ee3d84aa
Reviewed-on: https://gerrit.libreoffice.org/16192
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:10:38 +00:00
Jacobo Aragunde Pérez
69773f54bb Android: initial implementation of ownCloud provider.
This implementation can connect to a local server and browser its
contents, but cannot download and open the documents yet.

TODO:

* Download and open documents.
* UI to configure server, user and password.
* Implement filtering to show only the documents of the desired type.
* Improve error handling.

Change-Id: I54a2e2e1d3e8ec8d824d75639e176ca452551f3e
Reviewed-on: https://gerrit.libreoffice.org/16191
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 17:08:00 +00:00
Jacobo Aragunde Pérez
e6fe508d68 Android: add ownCloud library to the build.
Library code from https://github.com/jaragunde/owncloud-android-library

This patch downloads, builds and installs the library from a tarball
uploaded to http://dev-www.libreoffice.org/src/.

Change-Id: I28afaea4dabe2dab869b53b1881f4d5a6522943f
Reviewed-on: https://gerrit.libreoffice.org/16190
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10 07:44:56 +00:00
Miklos Vajna
562d8f57f0 lokdocview: adapt Android path
Change-Id: I786fd580b3d08fa076eeb2bf90bd23b09c9f8182
2015-05-21 17:57:38 +01:00
Miklos Vajna
97b096275a android: leftover gitignore
Change-Id: I45a709d805e8706a2f186fd44b4f467d173bc61e
2015-05-21 17:51:59 +01:00
Tor Lillqvist
ab8cbb6cc1 Let's simplify the paths and be less 'experimental' 2015-05-21 17:10:19 +01:00
Tor Lillqvist
1b53066433 Bin the 'DocumentLoader' Android test app
It is the wrong approach, from the time before tiled rendering, and has
not been built for a long time.
2015-05-21 16:56:48 +01:00
Tor Lillqvist
72a688db73 Remove more obsolete Android code: The 'AppSupport' stuff 2015-05-21 14:51:59 +01:00
Tor Lillqvist
43ad4c56fa Bin the since long obsolete "desktop" Android app
It was an early approach, indeed experimental, and has been abandoned
for quite a while.
2015-05-21 14:21:16 +01:00
Christian Lohmaier
e7473c692c editing/experimental mode as user-preference (Android Viewer)
also exposes the other preferences (default document filter, default
sorting) in a default settings dialog

Change-Id: I7a4080f70f5727bfb2fabe8d8f57cb5b8337481f
Reviewed-on: https://gerrit.libreoffice.org/15638
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2015-05-11 14:00:57 +00:00
Jan Holesovsky
363ee152d4 android: optipng the images.
Change-Id: Iac510a12dcca59209af75ea8d77f9290025c5c03
2015-05-03 19:10:52 +02:00
Jan Holesovsky
fe731a2f9f android: Plain .component files are not used from what I know.
Change-Id: I6e70dd44430a7b0e61c7618e3f0da42deadcd43d
2015-05-03 19:10:52 +02:00
Christian Lohmaier
a229089527 fix theme with AppCompat 22.1 or later
AppCompat 22.1 is stricter in regards to what flags it it accepts

Change-Id: If9b77e59604147cb7050b5721380ab213fcdb9a6
Reviewed-on: https://gerrit.libreoffice.org/15571
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2015-04-30 18:11:35 +00:00
Jan Holesovsky
02432d6ef2 viewer: Enable taps to be able to handle hyperlinks.
Change-Id: I0b735d8db3204dc826c2b5fa9a568a5b425353e4
2015-04-24 10:25:02 +02:00
Siqi Liu
f265344c4d intent preference overrides default prefs.
Change-Id: I315d283f6c000d971421a098264e9c594930283e
2015-04-23 15:31:17 +02:00
Siqi Liu
6c03914e2b load default prefs once and use new sortmode/filter mode on refresh.
Change-Id: I54c3e25e960ade172eeb0f4bf24104b3b06e2ee2
2015-04-23 15:31:17 +02:00
Siqi Liu
0848e70b0f Use switch... and effectively sorts before listing.
Change-Id: Ia7eb2c53dc8a69b3d65e56afc7a27f0548c63d07
2015-04-23 15:31:16 +02:00
Siqi Liu
dde1964a2c Formatting for consistency
Change-Id: Ifd153869c965ffa33640e23e9794defaa57dba0b
2015-04-23 15:31:16 +02:00
Siqi Liu
79dd7b118e Set correct title for sort mode after changes.
Change-Id: I4f75f5ee68de6ed6f3b07d93b3681aa2307cb2dc
2015-04-23 15:31:16 +02:00
Siqi Liu
e49e8ac40a Remove unimplemented search functionality
Change-Id: I955bec2c94c386ee18fff8e8f5d90a7a90edf9d2
2015-04-23 15:31:15 +02:00
Siqi Liu
1973966b47 formatting for consistancy and remove unused file.
TODO(siqi): try to refactor the ListItemAdapter to a separate file later.

Change-Id: I01b82d1fea65cda353d5bb08da42e2faf1c8cf13
2015-04-23 15:31:15 +02:00
Siqi Liu
b160d3893c Do NOT browse files from "Documents" folder. Browse from root instead.
This is more likely what users expect. Previously we assumed that all
the documents are stored in root_folder/Documents and there is no way
to navigate up to other folders.

Change-Id: Idf0ce2476d3abe638b2e8b0f35b6da577032742b
2015-04-23 15:31:15 +02:00
Siqi Liu
72f023fc97 refactor xml styling for listview texts
Change-Id: Id52d33807c34b0fa12bc563ed479f5519103c8fe
2015-04-23 15:31:15 +02:00
Siqi Liu
c9baf39df6 formatting for consistancy across Java code
Change-Id: I7bde4c9c024dfe7a18c92a36069433f044fc89bc
2015-04-23 15:31:14 +02:00
Siqi Liu
3c8ad51e35 use LOGTAG instead
Change-Id: Ie89afb3526ff670581094107c59a4a20597d9225
2015-04-23 15:31:14 +02:00
Siqi Liu
bc7300a76d formatting for consistancy across Java code
Change-Id: I4d53376ea1b5ffa158cbb3412353c3cf5ba860d5
2015-04-23 15:31:14 +02:00
Miklos Vajna
47f82250ac android: typo in InvalidationHandler documentation
Change-Id: Ibd6a53f358c1ae844d458440947d10d3c514948a
2015-04-21 14:47:03 +02:00
Siqi Liu
2932bf06be add debugging missing services to README
Change-Id: Ib30a0e3d56ca9ebd07ee55e0aee9b13c0474a060
2015-04-14 21:15:04 +02:00
Siqi Liu
bbfe124bfb disable saving on .tmp files.
Change-Id: I80af505d0dd9a71eda5d640dd336a034288a574d
2015-04-14 15:10:27 +02:00