summaryrefslogtreecommitdiffstats
path: root/android
Commit message (Collapse)AuthorAgeFilesLines
* unused importChristian Lohmaier2017-09-241-1/+0
| | | | Change-Id: I45ba3c258594e8f3b50ffdc07ca1e09dc5691c3d
* lint: remove redundant type casts (findViewById to object of type)Christian Lohmaier2017-09-2413-63/+63
| | | | Change-Id: I0ec35ea5817d110ca20942ce9d95e0120848580a
* use gradle to build the owncloud-android-libChristian Lohmaier2017-09-241-5/+9
| | | | | | this will allow using current android SDK tools & emulator Change-Id: Ic7f9996a36e4af2a5cad07e28c8830b8df12aa44
* buildscripts section actually needs dedicated repositoriesChristian Lohmaier2017-09-231-1/+3
| | | | Change-Id: I50f080d085dcd303b2cc54f503793f080ea4f50c
* android: bump support library & buildtools/SDK versionsChristian Lohmaier2017-09-221-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
* blank doesn't take any effect anymore. remove it from android's fonts.confChristian Lohmaier2017-09-211-66/+0
| | | | Change-Id: I387ceac08ec5f78686cacd90f897c7c12758ae5d
* android: textrelocations are no longer an issue (can target 23 and later)Christian Lohmaier2017-09-151-4/+1
| | | | Change-Id: Ib80651bf3b23cf74abc76472c247b83622046700
* android: tune symbols for lldb & we actually target 14 as minSDKChristian Lohmaier2017-09-121-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>
* tdf#90556 android: make buildID in about a clickable link to git logChristian Lohmaier2017-09-072-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>
* android: drop workarounds for ndk-gdb support (can still run manually)Christian Lohmaier2017-09-076-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>
* tdf#112190 installLocation should be specified in toplevel manifestChristian Lohmaier2017-09-041-1/+1
| | | | | | | | Thanks to Petr Vorel for catching this. Fixes portion of 66518ead516e90d606e87c6ce58ec11fea6d172e that added back the android:installLocation placeholder Change-Id: Ibd3333dfafb65fabcb5df3f7a6626a00f5d71bc9
* android: prevent null pointer exception on startTomaž Vajngerl2017-09-031-1/+4
| | | | | | | Change-Id: Ifb59ba0cd634d9753f90716bda2af4f58d576afa Reviewed-on: https://gerrit.libreoffice.org/41173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
* android: remove a hard to address TODOMiklos Vajna2017-09-011-1/+0
| | | | | | | | | 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
* need to manuall load all native-libs on e.g. JellybeanChristian Lohmaier2017-08-311-0/+14
| | | | | | | | | | 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
* use extractNativeLibs="false" for less disk usage and faster installationChristian Lohmaier2017-08-312-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* android: use sp (instead of dp) for font-sizeChristian Lohmaier2017-08-311-1/+1
| | | | Change-Id: I11dbf24b38c08b4dfd3cc64dbacbcd949a37b833
* min and target SdkVersions are taken from gradleChristian Lohmaier2017-08-311-1/+0
| | | | Change-Id: I2eeb265b101b126f6bf268c9c5fa0195a44b0ce7
* android:singleLine is deprecated, use maxLines=1 insteadChristian Lohmaier2017-08-281-1/+1
| | | | Change-Id: I32c7d000848f10a40a2b7b0038463c31ddade6f8
* android: position in RecyclerView must not be treated as fixedChristian Lohmaier2017-08-282-7/+5
| | | | Change-Id: Id7f88b2b1b9913a006b0b73ceb4421b47fccc495
* need to use app:srcCompat when using VectorDrawableCompatChristian Lohmaier2017-08-281-1/+1
| | | | | | instead of plain android:src Change-Id: I202f5564ad4bb94a4d7bcf788a7173a9c217990d
* [Android] Clean up util func with Calc devXimeng Zu2017-08-274-18/+8
| | | | | | | | | | 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>
* [Android Viewer] Password supportXimeng Zu2017-08-279-4/+195
| | | | | | | | | | 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>
* Android: Enable HAVE_FEATURE_NSS and package the NSS libraries with apkGautam Prajapati2017-08-231-1/+19
| | | | | | | | | | | | | | | | | 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>
* [Android Viewer] Fix windowSoftInputModeXimeng Zu2017-08-161-1/+2
| | | | | | | | | | | 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>
* Ability to change Font Color and added a new Color Picker on Android ViewerMert Tumer2017-08-1615-1/+593
| | | | | | | Change-Id: I1d22749a446e451196f0819322cb04ed7d7befae Reviewed-on: https://gerrit.libreoffice.org/37840 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
* [Android Viewer] Add header funcs to CalcXimeng Zu2017-08-079-40/+521
| | | | | | | | | | | | | | 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>
* [Android Viewer] Add cell selection by row/column/allXimeng Zu2017-07-3111-14/+337
| | | | | | | | | | | | 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>
* [Android Viewer] Fix crash after save dialogXimeng Zu2017-07-231-1/+1
| | | | | | | | | | | 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>
* [Android Viewer] Correct typo of class nameXimeng Zu2017-07-231-2/+2
| | | | | | | | | | | 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>
* [Android Viewer] Correct LOK EnumsXimeng Zu2017-07-231-19/+19
| | | | | | | | | | 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>
* Calc UI on Android ViewerXimeng Zu2017-07-2312-19/+369
| | | | | | | | | | | | 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>
* Presentation ModeXimeng Zu2017-07-118-16/+329
| | | | | | | | | | 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>
* Add LOKit Enums to Document.javaXimeng Zu2017-06-281-0/+21
| | | | | | | | | 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>
* android: show when native-code.py is invoked even for non-verbose buildsMiklos Vajna2017-06-231-0/+1
| | | | | | | Change-Id: I176d140bf5efc090c89cbd3a3699a764abf7107a Reviewed-on: https://gerrit.libreoffice.org/39121 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
* Listen for changes in editing preference settingsbrainbreaker2017-06-211-1/+10
| | | | | | | | | | | | 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>
* enable the Action/Toolbar for Settings screensChristian Lohmaier2017-05-302-2/+4
| | | | | | by using a theme that has it enabled Change-Id: Icf3b66d38de55e2b08d4e4ced463bab045e56c43
* android: bump build-tools, support-lib and gradle-plugin versionsChristian Lohmaier2017-05-301-4/+4
| | | | Change-Id: Ib9fa2a3ca0ad4ba5075c9c25e5b2cba1e0e7285a
* android: simplify some more if statementsChristian Lohmaier2017-05-282-19/+6
| | | | Change-Id: I49f7069ca774468b4b9d44541238e38edd0f5bd7
* Update zoom constraints with device rotateXimeng Zu2017-05-273-6/+21
| | | | | | | | | | | | 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>
* Fix behavior of double tap zoom in and outXimeng Zu2017-05-091-10/+12
| | | | | | | | | | | | | | | | 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>
* tdf#107415 android: appbar invisible on lower versionXimeng Zu2017-05-092-14/+21
| | | | | | | | | | | 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>
* Fix typosAndrea Gelmini2017-05-051-1/+1
| | | | | | | | | | 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>
* Add BottomSheetBehavior to formatting toolbarbrainbreaker2017-04-194-21/+29
| | | | | | | | | | | | | | | 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>
* tdf#96770 android: disable 'parts' in text documentsXimeng Zu2017-04-182-1/+2
| | | | | | | | | | 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>
* tdf#96799 android: does not switch edit mode to viewXimeng Zu2017-04-182-3/+18
| | | | | | | | | | 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>
* Double tap zooms in and outXimeng Zu2017-04-181-0/+13
| | | | | | | | | | | 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>
* Discard StorageAccessFramework for creating new documentsbrainbreaker2017-04-185-102/+97
| | | | | | | | | | | | 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>
* tdf#96764 - Android Viewer does not show page countXimeng Zu2017-04-188-2/+198
| | | | | | | | | | | | | | | Added page number display in text documents. The page nunmber calculation in handled on Java side and the work only involves calls to LOKit when necessary. Majority of the work is done in DocumentOverlayView. java, including calculation and displaying. The page number information is updated whenever a page number change callback is caught (from LOkit). Change-Id: I52014806cd647fa805b329825ac29b0e337c11a1 Reviewed-on: https://gerrit.libreoffice.org/36178 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
* tdf#96811 Android Viewer doesn't focus on the word you search.Ximeng Zu2017-04-182-1/+81
| | | | | | | | | | | | | | | Added the function of focusing on the word you search. Two methods were added. The first one is searchResultSelection, which parses a JSONObject passed from LOK and focuses on the text selection. The second one is moveViewportToMakeSelectionVisible. It handles well both documents and spreadsheets. I also tried to add a search not found toast message. Also corrected a typo. Change-Id: I4453c01afc520bf4deae4c2bd71adea2fe856d7e Reviewed-on: https://gerrit.libreoffice.org/35715 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
* tdf#106368 android: restrict zoom to page widthXimeng Zu2017-04-185-10/+11
| | | | | | | | | | | | | | | | Created an overloaded constructor for ZoomConstraints class that takes in minZoom and maxZoom. Added calculation of minZoom according to page width and screen width and assigned the minZoom to ZoomConstraints in LOKitThread class. Deleted minZoom checking in the onScale method in JavaPanZoomController class because the checking prevented zoom-in from functioning. (Update: I also removed the old constructor because it is not used any more.) Change-Id: I89e80761efc093b3738970d4482dd735532c0397 Reviewed-on: https://gerrit.libreoffice.org/35308 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>