summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2018-05-16android janitor... convert chained ifs to switch statementChristian Lohmaier3-24/+36
Change-Id: I9929bd077a33349a6e57c3a427df7e77b3007c88
2018-05-16android janitor... remove unnecessary imports, variables and castsChristian Lohmaier6-9/+4
also no need to wrap primitives Change-Id: I6e22b2bfdb2b8b366dd6f50d995b573c770f0b5a
2018-04-19tdf#96795: Use locale-sensitive sorting in Android viewerMert Tümer1-2/+5
Change-Id: I98edec9f57f1bf0576e16a1ba3c0e023d6d0b6ed Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52494 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-04-13tdf#116820 The viewer does't show recent filesMert Tümer1-0/+2
Change-Id: I8a4d4f2cb78a1fa772936e263e1aa3975e8f89ff Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-04-13tdf#116842 fix crashing when adding slides or spreadsheetsMert Tümer1-4/+6
Change-Id: I957133e468fe43edd0ed1d76cdd180f20d6a86ac Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/52493 Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-04-07add hint on how to use lldb pretty-printers form within android studioChristian Lohmaier1-0/+3
Change-Id: Ia028dd64c04d1de95e42ea2b89ee2bca689a2390
2018-04-07prevent crash on invalid bitmap sizeChristian Lohmaier1-2/+7
sometimes the width and height cannot be determined properly (and 0 in that case), and this causes IllegalArgumentException when trying to create the Bitmap Change-Id: Id001c40d0febf9e85b4db5c0318a77e1f880353a
2018-04-07tdf#116152 android.net.Uri.encode(string) is even better...Christian Lohmaier1-8/+2
Change-Id: Ib779cec33de660e2c01843b76c9987aa774fba29
2018-04-07tdf#116152 fix filenames with spaces (code expects %20, not +)Christian Lohmaier1-1/+1
URL-encoding added by 174229e4797b27eb795c6f2451ab1349c2c29ad8 did fix filenames with #, but broke filenames with space in return. Change-Id: I7f1ac6aa79c921dfca699eb3cd8c927efba9d55c
2018-04-02use https links for api.libreoffice.org and opengrokdennisroczek1-1/+1
Change-Id: I74dd0142562cb8698f19b2715fa1d514f82bd749 Reviewed-on: https://gerrit.libreoffice.org/52262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2018-03-27.uno:Save callback for the Android ViewerMert Tümer7-31/+70
Change-Id: Ic2e16985e52869092faa2a31a59a85cb77b8e28c Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/51506 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-27tdf#116152 fix unsupported url exception on Android ViewerMert Tümer1-2/+16
Change-Id: I39233369e754919aeb0dc46856a3746f33e89e9b Signed-off-by: Mert Tümer <merttumer7@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/51675 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2018-03-15tdf#96796 - Added clipboard actions for the Android ViewerMert Tümer10-0/+185
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 Behrens10-185/+0
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ümer5-0/+38
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ümer10-0/+185
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ümer5-3/+35
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ümer2-2/+3
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 Zu2-2/+7
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 Fauli1-1/+1
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 Gelmini1-1/+1
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ümer6-12/+166
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ümer5-0/+29
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 Lohmaier2-1/+8
otherwise the handling tries to access properties like fonts too early and trigger NPEs Change-Id: I132c02f936c7b3e70fced1e1e022a6cf803ed5ff
2018-01-19Fix typosAndrea Gelmini2-2/+2
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 Lohmaier1-1/+1
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 Lohmaier18-206/+158
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 Gelmini1-1/+1
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 Lohmaier5-22/+19
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 Lohmaier2-3/+3
as this is more l10n/translation friendly Change-Id: I1050fb24e0d6e94a2f1ad1605003a9c7010ca7cb
2018-01-18android: fix some layout issues with new-document buttonsChristian Lohmaier7-83/+88
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 Lohmaier4-5/+20
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 Gelmini1-1/+1
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ümer3-1/+23
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ümer3-1/+14
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ümer2-7/+14
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 Zu9-2/+262
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 Zu5-2/+106
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 Bergmann1-0/+0
Change-Id: Ibe5b5e03374419c2c23cd6559ab213d2dc2fcc66
2017-09-24unused importChristian Lohmaier1-1/+0
Change-Id: I45ba3c258594e8f3b50ffdc07ca1e09dc5691c3d
2017-09-24lint: remove redundant type casts (findViewById to object of type)Christian Lohmaier13-63/+63
Change-Id: I0ec35ea5817d110ca20942ce9d95e0120848580a
2017-09-24use gradle to build the owncloud-android-libChristian Lohmaier1-5/+9
this will allow using current android SDK tools & emulator Change-Id: Ic7f9996a36e4af2a5cad07e28c8830b8df12aa44
2017-09-23buildscripts section actually needs dedicated repositoriesChristian Lohmaier1-1/+3
Change-Id: I50f080d085dcd303b2cc54f503793f080ea4f50c
2017-09-22android: bump support library & buildtools/SDK versionsChristian Lohmaier1-7/+11
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 Lohmaier1-66/+0
Change-Id: I387ceac08ec5f78686cacd90f897c7c12758ae5d
2017-09-15android: textrelocations are no longer an issue (can target 23 and later)Christian Lohmaier1-4/+1
Change-Id: Ib80651bf3b23cf74abc76472c247b83622046700
2017-09-12android: tune symbols for lldb & we actually target 14 as minSDKChristian Lohmaier1-0/+1
-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 Lohmaier2-5/+7
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 Lohmaier6-61/+19
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 Lohmaier1-1/+1
Thanks to Petr Vorel for catching this. Fixes portion of 66518ead516e90d606e87c6ce58ec11fea6d172e that added back the android:installLocation placeholder Change-Id: Ibd3333dfafb65fabcb5df3f7a6626a00f5d71bc9