summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)Author
2018-03-15tdf#96796 - Added clipboard actions for the Android ViewerMert Tümer
Change-Id: I52e134532ab70e765b6ccd929f189be84f9c9a90 Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/51286 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14Revert "tdf#96796 - Added clipboard actions for the Android Viewer"Thorsten Behrens
Breaks Android tinderbox This reverts commit 31e939c9f4b29fb2b2e63eb096450cf3da35d67f. Change-Id: Id565c9ef8330c0b3bce2c678facb7605dcf3e356
2018-03-14[Pardus] tdf#107026 render the new page without reopen the documentMert Tümer
This patch is sponsored by ULAKBIM/Pardus project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I91c902bfd1acc5cc70ad30f16e0719e7a325702b Reviewed-on: https://gerrit.libreoffice.org/47636 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-14tdf#96796 - Added clipboard actions for the Android ViewerMert Tümer
Change-Id: I2779ef9a9f68dcf08c3072ffe83b9f2450b7257e Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/50757 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-02-24[Pardus] tdf#112481 Ability to add worksheets on CalcMert Tümer
This patch is sponsored by ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: Id67e3c400971b47738fe2f628955534f34839493 Reviewed-on: https://gerrit.libreoffice.org/49294 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-02-18[Pardus] tdf#108446 - Shape is not changed after saveMert Tümer
This patch is sponsored by ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I7ee137b2332f799e4301cc3507df4a7b86af74b9 Reviewed-on: https://gerrit.libreoffice.org/47806 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-02-04Fix adjust width/height behaviorXimeng Zu
In Android Viewer, fixed adjust width/height behavior due to change in UNO command syntax. Change-Id: Id78cb1a0fc546f251734dd538bf48a8f4e121bed Reviewed-on: https://gerrit.libreoffice.org/46871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2018-02-02tdf#115388: Android: Use HTTP SecureXisco Fauli
Change-Id: Ia2e198c20b904ba178fac2969dfa80f3f1291be1 Reviewed-on: https://gerrit.libreoffice.org/49123 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-02-01Fix typosAndrea Gelmini
Change-Id: Icb4f4d9039278318d5f7f6302d57957b2c02bdb8 Reviewed-on: https://gerrit.libreoffice.org/49069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2018-01-30[Pardus] tdf#106326 ability to change font background colorMert Tümer
This patch is sponsored by ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I4dfbb9e35214e4d4a9aa6dca1ce3d5d2604218a9 Reviewed-on: https://gerrit.libreoffice.org/48270 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-30[Pardus] tdf#112482 ability to add slides to impressMert Tümer
This patch is sponsored by ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I3c8b55d032604b30117573ac447776a1a0e5205f Reviewed-on: https://gerrit.libreoffice.org/48500 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-29tdf#89215 only process state changes after TileProvider is readyChristian Lohmaier
otherwise the handling tries to access properties like fonts too early and trigger NPEs Change-Id: I132c02f936c7b3e70fced1e1e022a6cf803ed5ff
2018-01-19Fix typosAndrea Gelmini
Change-Id: I98279a1f4020be95c57390fd163ebe740f8cca9d Reviewed-on: https://gerrit.libreoffice.org/48171 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-18adjust path to generated apk to new defaultsChristian Lohmaier
current android-gradle plugin creates the apk in dimension/flavor/variant (whatever you want to call it) specific directory Change-Id: I5514fe53c5c8c556d194a0f06ad6167b0b1cc98e
2018-01-18pass context as parameter instead of risk of leaking memoryChristian Lohmaier
Also adjust to dynamic permissions after bumping target-SDK. There still is some confusion about the concept of "external storage" in the code. LocalDocuments already is "external storage" - clean that up a little and use AppCompat function instead of using a legacy class for ExternalDocuments provider. Doesn't help for broken ROMs though, that would need guessing pathname for a mounted SD (in addition to separate storage partition of builtin storage). Also c6e8c96d50fc2082a3c4b9553196a42bbdd6df37 incorrectly changed the conditional around, making the whole ExternalDocumentsProvider useless/a copy of the Local one (i.e. the primary, first returned by the system). Real fix for tdf#99539 likely was 66be4feef7e0d3661f01fbb2372700de5eeea070 Change-Id: I88ca7742c0f2e89d63c338c8852ad88be0a46e4b Reviewed-on: https://gerrit.libreoffice.org/45572 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2018-01-18Fix typosAndrea Gelmini
Change-Id: I633e4921042809c628e55825b70c540767eba1d3 Reviewed-on: https://gerrit.libreoffice.org/48140 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-18android: use unified headers and llvm-c++ STL (x86) with NDK 16Christian Lohmaier
gnustl (and others) are to be removed in future versions of the ndk also bump gradle and build-tools to current versions along with it arm unfortunately crashes with llvm-c++, so keep with gnustl for now/fix that later Change-Id: Ic794c3293b599b77ec48096bf3283a99c09cbb79 Reviewed-on: https://gerrit.libreoffice.org/45163 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2018-01-18use string-resource with placeholder instead of hardcoded concatenationChristian Lohmaier
as this is more l10n/translation friendly Change-Id: I1050fb24e0d6e94a2f1ad1605003a9c7010ca7cb
2018-01-18android: fix some layout issues with new-document buttonsChristian Lohmaier
functionality to create new documents was added for tdf#106325 with commit 1503769fe15c122ff2bb8f6f7e7b4ab72656ddc2 However the commit had some issues, most notably clipping of the shadow effect and alignment issues to to scaling down (via the animation effect, took me quite a while until I looked at that) with having a centered pivot. I think it was due to those alignment issues that the label was set to a fixed with - which is a problem for future translation. This commit: * changes the animation to not scale down the initial views * changes the FABs' setting to use compatPadding - this not only ensures enough room for the shadow, but also allows for consistent look across android versions. Side effect is that it needs more height, so * the effect was adjusted accordingly, to shrink to/expand from the lower-right corner of the parent view, instead of "mid-air" * the labels were given a proper background drawable with rounded corners and some padding for a (much more9 polished look * formatting of the labels was split out to a style, for ease of tweaking the looks * add tools:visibility statement to see the elements in layout editor * fixed the strings for the labels (and ID) to some less awkward ones Change-Id: Ifd2d90ec8d23e40603edff19c9af9e0b32090c9f Reviewed-on: https://gerrit.libreoffice.org/42033 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2018-01-18tdf#112140 fix some NPEs re touch/zoom while doucment is not readyChristian Lohmaier
touching the screen or trying to zoom were trying to get/adjust zoom factor despite not ready yet, similarily swiping from the left to show the parts view would crash as well in case the document is not ready yet. Most likely to see this with a debug build (where loading is slower to begin with), or with long documents like the license text. Change-Id: Iea5e8c07a9b0973ce50f90114eb015e8e896e390 Reviewed-on: https://gerrit.libreoffice.org/46848 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2018-01-17Fix typosAndrea Gelmini
Change-Id: I18ce04cbaa79c827a52e2441e98ee2e3377b5877 Reviewed-on: https://gerrit.libreoffice.org/48077 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2018-01-15tdf#103083 option to show/hide hidden files/folders on AndroidMert Tümer
The patch was sent for the ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: Iadbb688a1a976279b23d246001818ac1c21b3d47 Reviewed-on: https://gerrit.libreoffice.org/47637 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-15tdf#89639 added path text for the document browserMert Tümer
The patch was sent for the ULAKBIM/PARDUS project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I14ce3bb7c11f4cc2fe9194a99b433764209b1528 Reviewed-on: https://gerrit.libreoffice.org/47635 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-01-13tdf#96790 search function in non experimental modeMert Tümer
The patch was sent for the ULAKBIM/Pardus project. Signed-off-by: Mert Tümer <merttumer7@gmail.com> Change-Id: I4e2ecc25eee6535b7d8a89800aaa8135cf517889 Reviewed-on: https://gerrit.libreoffice.org/47568 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-11-16tdf#106370 Android: add ability to insert picturesXimeng Zu
Added ability to insert pictures to Android Viewer. You can take photo or select photo from device or the cloud (Google photos, Dropbox). You can also compress the picture before inserting it with multiple compress grades. So far, inserting doesn't work for Writer due LO native library issues (I think). Change-Id: If6841ba04fe18585703c8b85909cf39747dbbc2f Reviewed-on: https://gerrit.libreoffice.org/41150 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-11-16[Android] Add address/formula barsXimeng Zu
Added address bar and formula bar to Calc. Change-Id: I7cc7047d6d07629ab564261d294e481ae585fd29 Reviewed-on: https://gerrit.libreoffice.org/40842 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-10-23chmod 0755 -> 0644 for some source filesStephan Bergmann
Change-Id: Ibe5b5e03374419c2c23cd6559ab213d2dc2fcc66
2017-09-24unused importChristian Lohmaier
Change-Id: I45ba3c258594e8f3b50ffdc07ca1e09dc5691c3d
2017-09-24lint: remove redundant type casts (findViewById to object of type)Christian Lohmaier
Change-Id: I0ec35ea5817d110ca20942ce9d95e0120848580a
2017-09-24use gradle to build the owncloud-android-libChristian Lohmaier
this will allow using current android SDK tools & emulator Change-Id: Ic7f9996a36e4af2a5cad07e28c8830b8df12aa44
2017-09-23buildscripts section actually needs dedicated repositoriesChristian Lohmaier
Change-Id: I50f080d085dcd303b2cc54f503793f080ea4f50c
2017-09-22android: bump support library & buildtools/SDK versionsChristian Lohmaier
also add google maven repo, since "The support libraries are now available through Google's Maven repository. We no longer support downloading the libraries through the SDK Manager, and that functionality will be removed soon.." https://developer.android.com/topic/libraries/support-library/setup.html Change-Id: Ica0a2542903f60c7bffa1daa2409b60422bde88f
2017-09-21blank doesn't take any effect anymore. remove it from android's fonts.confChristian Lohmaier
Change-Id: I387ceac08ec5f78686cacd90f897c7c12758ae5d
2017-09-15android: textrelocations are no longer an issue (can target 23 and later)Christian Lohmaier
Change-Id: Ib80651bf3b23cf74abc76472c247b83622046700
2017-09-12android: tune symbols for lldb & we actually target 14 as minSDKChristian Lohmaier
-glldb might be placebo switch like -ggdb2, but at last it won't hurt :-) increase java heap size for gradle to allow inprocess dex as well as actually processing the huge files. furthermore fix platform level in configure to match the minSDK value from build.gradle Change-Id: I57d7d4c67bc3e5ed8bfed1e592b85211b5b8905a Reviewed-on: https://gerrit.libreoffice.org/42162 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins <ci@libreoffice.org>
2017-09-07tdf#90556 android: make buildID in about a clickable link to git logChristian Lohmaier
that will allow them to deduce the age of the build Change-Id: Ic1baffbf1ecc6a743a1edd91d24c86670dc640a3 Reviewed-on: https://gerrit.libreoffice.org/41962 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-09-07android: drop workarounds for ndk-gdb support (can still run manually)Christian Lohmaier
packing gdbserver into apk conflicts with extractNativeLibs="false", as the gradle pugin compresses it (which could be disabled using aaptOptions), but furthermore it doesn't page-align it, breaking installation. So instead let the user manually push the gdbserver tool to device and remove the hardcoded values that were only there to please the ndk-gdb scripts. Using lldb from within Android Studio is more comfortable anyway :-) Change-Id: I31c3af4847a479c56b3fcd6b5bed114e004bf0d2 Reviewed-on: https://gerrit.libreoffice.org/41950 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2017-09-04tdf#112190 installLocation should be specified in toplevel manifestChristian Lohmaier
Thanks to Petr Vorel for catching this. Fixes portion of 66518ead516e90d606e87c6ce58ec11fea6d172e that added back the android:installLocation placeholder Change-Id: Ibd3333dfafb65fabcb5df3f7a6626a00f5d71bc9
2017-09-03android: prevent null pointer exception on startTomaž Vajngerl
Change-Id: Ifb59ba0cd634d9753f90716bda2af4f58d576afa Reviewed-on: https://gerrit.libreoffice.org/41173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-09-01android: remove a hard to address TODOMiklos Vajna
NSS upstream doesn't seem to support building static libs. The benefit of avoiding a few lines of extra java code doesn't appear to outweigh the cost of patching NSS to provide static libs & carry on those patches in our LO-bundled NSS. Change-Id: I01fc0b1ff076923fec64b469529d1b920c1d91c2
2017-08-31need to manuall load all native-libs on e.g. JellybeanChristian Lohmaier
511ae02c6457e69cb6daab871acd9c3e7d64e2e3 introduced additional libraries that are not merged to the single liblo-native-code.so These need to be manually loaded in correct order. See https://stackoverflow.com/questions/11058898/loading-shared-libs-that-depend-on-other-shared-libs for details. Change-Id: I34b279b69de8a0f8f58f8f980e5b3a7347cd0439
2017-08-31use extractNativeLibs="false" for less disk usage and faster installationChristian Lohmaier
no need to extract the (huge) nativve lib to the device's filesystem on newer android versions (Marshmallow and later) - can access the .so from within the apk if it is uncompressed. While the standalone apk will be larger, the delta-update mechanism of playstore can be more efficient, so you get: * faster installation (since the file doesn't need to be extracted) * less disk usage on device (for same reason) * smaller delta-updates for playstore drawbacks * larger standalone apk * on older android version more storage needed (the increased size of the standalone apk), as those will still extract the native-lib Unfortunately uncompressed it exceeds the current maximum size for single apk files in playstore (100MB), so cannot use for release-builds also revive installLocation attribute to allow installation on external storage and move from manifestPlaceholders from defaultConfig to release buildType (as otherwise gradle complains about having "Multiple entries with same key") Change-Id: Id07ac9c144886bb89abaf7b5b4bc7bd548f27247
2017-08-31android: use sp (instead of dp) for font-sizeChristian Lohmaier
Change-Id: I11dbf24b38c08b4dfd3cc64dbacbcd949a37b833
2017-08-31min and target SdkVersions are taken from gradleChristian Lohmaier
Change-Id: I2eeb265b101b126f6bf268c9c5fa0195a44b0ce7
2017-08-28android:singleLine is deprecated, use maxLines=1 insteadChristian Lohmaier
Change-Id: I32c7d000848f10a40a2b7b0038463c31ddade6f8
2017-08-28android: position in RecyclerView must not be treated as fixedChristian Lohmaier
Change-Id: Id7f88b2b1b9913a006b0b73ceb4421b47fccc495
2017-08-28need to use app:srcCompat when using VectorDrawableCompatChristian Lohmaier
instead of plain android:src Change-Id: I202f5564ad4bb94a4d7bcf788a7173a9c217990d
2017-08-27[Android] Clean up util func with Calc devXimeng Zu
Removed redundant util functions addProperty and twipToPixel in several Calc related classes. Change-Id: I169be2edf74e662d5c3e3fcbd80265e9a694598d Reviewed-on: https://gerrit.libreoffice.org/41372 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-08-27[Android Viewer] Password supportXimeng Zu
Added password support for documents. Change-Id: Ifd9cf86894ddaf2fd5ad97510d2ac1b5850611ad Reviewed-on: https://gerrit.libreoffice.org/40458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-08-23Android: Enable HAVE_FEATURE_NSS and package the NSS libraries with apkGautam Prajapati
This commit enables HAVE_FEATURE_NSS for Android and fixes the svl/ vcl/ and xmlsecurity/ module to use NSS. xmlsecurity/ wasn't built for Android previously, this commit enables building xmlsecurity/ for Android and disables the support of gpgme in the same module(Only for Android). It also enables the linking of NSS shared libraries with liblo-native-code.so and adds a rule to package them along with the apk. Change-Id: I7d0341688ac979ae92e9145c37dd107670417fe1 Reviewed-on: https://gerrit.libreoffice.org/41308 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>