summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)Author
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>
2017-08-16[Android Viewer] Fix windowSoftInputModeXimeng Zu
Fix the wrong parameter in AndroidManifest. When changing android:windowSoftInputMode, one should not specify multiple "adjust..." or "state...". Change-Id: I0dcacd846d4fe5c2976fe1708b29086b98f2607b Reviewed-on: https://gerrit.libreoffice.org/40686 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-08-16Ability to change Font Color and added a new Color Picker on Android ViewerMert Tumer
Change-Id: I1d22749a446e451196f0819322cb04ed7d7befae Reviewed-on: https://gerrit.libreoffice.org/37840 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-08-07[Android Viewer] Add header funcs to CalcXimeng Zu
Added insert/delete/hide/show/optimal width or height /adjust width or heigth to Calc. These options show in a floating menu near the headers when the user taps on the headers. Also added selection on headers, i.e., user can drag on headers to select multiple columns/rows. Change-Id: I7e1994d1fa81d80c110def035c2c065e838b49ac Reviewed-on: https://gerrit.libreoffice.org/40684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-31[Android Viewer] Add cell selection by row/column/allXimeng Zu
Added cell selection to Calc docs in Android Viewer with a similar behavior to LOOL wrt. row/column selection. The user can tap on any header to select whole row/column or select all by tapping the top left corner of the header. Change-Id: I34bdbb1aacc5fc0ed9175908936a8a5e6eec4ff4 Reviewed-on: https://gerrit.libreoffice.org/39694 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-23[Android Viewer] Fix crash after save dialogXimeng Zu
Fixed the crash after save dialog caused by a possible null pointer related to presentation mode. Change-Id: I2fcf254f4382eaa5b565e25679486a5158d56eac Reviewed-on: https://gerrit.libreoffice.org/39847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-23[Android Viewer] Correct typo of class nameXimeng Zu
Corrected the accidentally named inner class in PresentationActivity.java from camel case to Upper case. Change-Id: I0c27efe371611959e40cd656628a0fa2c9c0cdce Reviewed-on: https://gerrit.libreoffice.org/39832 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-23[Android Viewer] Correct LOK EnumsXimeng Zu
Corrected LOKit Enum names in Document.java. Change-Id: I890bca0712a650b2454807fa11f43f7db14aad6b Reviewed-on: https://gerrit.libreoffice.org/39831 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-23Calc UI on Android ViewerXimeng Zu
Adding Calc UI. Two blank views are added as row and column headers. CommonCanvasElement is used to draw header cells on the views. [WIP] Change-Id: I37eaa82805045ab650fd127e54c8421c61a4ea27 Reviewed-on: https://gerrit.libreoffice.org/38936 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-07-11Presentation ModeXimeng Zu
Adding fullscreen presentation mode. Change-Id: Id07416ce204d1d7dd917fbd33a4d9f5072ac1703 Reviewed-on: https://gerrit.libreoffice.org/38006 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-06-28Add LOKit Enums to Document.javaXimeng Zu
Added LOKit callback enums to Document.java. Change-Id: I46b7b5fe0ceb40a89fd121082706acdf539ff916 Reviewed-on: https://gerrit.libreoffice.org/39375 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-06-23android: show when native-code.py is invoked even for non-verbose buildsMiklos Vajna
Change-Id: I176d140bf5efc090c89cbd3a3699a764abf7107a Reviewed-on: https://gerrit.libreoffice.org/39121 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-06-21Listen for changes in editing preference settingsbrainbreaker
This commit gives the ability to listen for changes in editing preference settings to LibreOfficeMainActivity. This makes sure that value of mIsExperimentalMode boolean is correct in any condition. Change-Id: Ie2a931e63fad30262ad2f870b6c06f707db96618 Reviewed-on: https://gerrit.libreoffice.org/37033 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-05-30enable the Action/Toolbar for Settings screensChristian Lohmaier
by using a theme that has it enabled Change-Id: Icf3b66d38de55e2b08d4e4ced463bab045e56c43
2017-05-30android: bump build-tools, support-lib and gradle-plugin versionsChristian Lohmaier
Change-Id: Ib9fa2a3ca0ad4ba5075c9c25e5b2cba1e0e7285a
2017-05-28android: simplify some more if statementsChristian Lohmaier
Change-Id: I49f7069ca774468b4b9d44541238e38edd0f5bd7
2017-05-27Update zoom constraints with device rotateXimeng Zu
Added function of updating zoom constraints whenever device rotates. This is achieved by calculating min zoom factor every time the size change function is called. Change-Id: I6d795c1eb79faa36b4f5dabedd2d4b8c87dcf7d7 Reviewed-on: https://gerrit.libreoffice.org/37847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-05-09Fix behavior of double tap zoom in and outXimeng Zu
Fix the behavior of double tap zoom. Previously double tap zooms to the viewport whose top left point is the point of double touch. Now double tap behaves such that the point of doule touch does not move on the screen, and the rest part of the view zooms in or out. This behavior is more UX friendly and correct. Change-Id: Ifccc337631d523be1cd870f892235899d0fc5dfe Reviewed-on: https://gerrit.libreoffice.org/37046 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-05-09tdf#107415 android: appbar invisible on lower versionXimeng Zu
Rearranged activity_main.xml in order to fix the bug of app bar invisible on lower versions of Android devices. Change-Id: Ic4ec9435ce9ef55a2596600c143114c899c30ac2 Reviewed-on: https://gerrit.libreoffice.org/36950 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-05-05Fix typosAndrea Gelmini
To complete commit 0ef94e2b559547bc4e906e7f24e57ff5d642e108 and f12096272e684ddcd8ffa4e34dcb0a680cc594c2 Change-Id: Ie86bbfbd58dd728a013bef221e4d5c8fbcaf8e03 Reviewed-on: https://gerrit.libreoffice.org/37199 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-04-19Add BottomSheetBehavior to formatting toolbarbrainbreaker
This commit adds the BottomSheetBehavior to the formatting toolbar appearing from bottom. CoordinatorLayout replaces the RelativeLayout in activity_main and bottom toolbar is made the child of it. Also, Add 'adjustPan' option to LibreOfficeMainActivity's windowSoftInputMode flag so as to prevent soft keyboard from pushing the views up Change-Id: Ic9999c1177ac238bc7c482a69daec4e629fe6d93 Reviewed-on: https://gerrit.libreoffice.org/35768 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2017-04-18tdf#96770 android: disable 'parts' in text documentsXimeng Zu
Text documents only have one part, so 'parts' button in the menu should be disabled. Change-Id: Id36a57bcf35bc6347136dda82d8da2d7ca308285 Reviewed-on: https://gerrit.libreoffice.org/36538 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-04-18tdf#96799 android: does not switch edit mode to viewXimeng Zu
Added a checking of whether edit mode is on or off before making a switch between edit and view modes. Change-Id: I69043bc8694b605a517e16385abfa91d86d34d30 Reviewed-on: https://gerrit.libreoffice.org/36541 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-04-18Double tap zooms in and outXimeng Zu
Added double tap action in JavaPanZoomController. This commit depends on "restrict zoom to page width". Change-Id: Ifbe13f698ea01af2223beede9211a13b4970a3d5 Reviewed-on: https://gerrit.libreoffice.org/36164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2017-04-18Discard StorageAccessFramework for creating new documentsbrainbreaker
This commit adds the ability to create a new document using existing file system browsing in the app. Usage of StorageAccessFramework to create new document has been ditched as it is not backward compatible. Change-Id: I852c3de337613cb01e689d532476d2c5f932c1b3 Reviewed-on: https://gerrit.libreoffice.org/36195 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>