summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2015-11-21android: another part where underline and strikethrough commands were swappedChristian Lohmaier1-2/+2
Change-Id: I8fdde4b46e3e315a5b6a35cabc4495ebf69db057 (cherry picked from commit 6f5589d5ed1e42512a04658ce57f1088b1fc1757)
2015-11-21android: underline and strikethrough commands were swappedChristian Lohmaier1-2/+2
Change-Id: Id7157ea5fadd684dceec52f69ec9279c4107b5f1 (cherry picked from commit 9feffdbe0d588fb8307e35737150a16d18ee8595)
2015-11-21android: don't crash on empty filelistCaolán McNamara1-0/+2
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e (cherry picked from commit 506432f505b41e7f5b29cf8492caab4545a4548c)
2015-11-16LOK: setClientZoom() - sets the client zoom levelMihai Varga5-13/+21
We need to know the client's view level to correctly handle the mouse events in calc. PaintTile() set a zoom level that corresponds to the requested tiles and previously postMouseEvent would call SetZoom(1,1). Now we can make use of knowing the client's view level and call SetZoom() with the correct parameters Change-Id: I34b5afcdcc06a671a8ac92c03e87404e42adf4cd Conflicts: sc/source/ui/unoobj/docuno.cxx Conflicts: libreofficekit/source/gtk/lokdocview.cxx libreofficekit/source/gtk/tilebuffer.hxx
2015-11-13android: Fixes to AndroidManifestTomaž Vajngerl1-2/+3
Change-Id: I661b3de74066831f22757b587e8b367913030573 (cherry picked from commit 613ef01748bd155653954f1effe00e395ba38a3b)
2015-11-13android: add source of icons to READMETomaž Vajngerl1-0/+9
Change-Id: Iad3ad138a9a7164d10ab6e51e22032ad115d08a5 (cherry picked from commit e4130895577106f0b7eb5530d4e1754794f53547)
2015-11-13android: don't set text color in about dialogTomaž Vajngerl1-4/+0
Change-Id: Iea5df81bb2f85376dc67e1cca63d5586a834e1b0 (cherry picked from commit 7b3f6dd1685bec33aae79c95584b461fdb72e879)
2015-11-13android: remove old unused action buttons (bold, italic,...)Tomaž Vajngerl16-0/+0
Change-Id: I68d87af8ec2662208776d3b202d412145c86d9b2 (cherry picked from commit cb5fa33f0060df7649c6db8bc55be71d1e873def)
2015-11-13android: rename "editMode" to "experimentalMode"Tomaž Vajngerl1-5/+5
Change-Id: I3fcb7bb2fda925a1c5b2633ac7f6846fda0dabf8 (cherry picked from commit d30e0aea02efa0682d836808d79917dc8aadb93a)
2015-11-13android: add undo/redo to the main toolbarTomaž Vajngerl7-0/+31
Change-Id: I64f76d22018fcd8af2991933ba5ab2069f84181f (cherry picked from commit 8908920488f514e015610d21f00481857c08776f)
2015-11-13android: Add string searching + search toolbarTomaž Vajngerl15-0/+185
LOKit supports searching, but this was not implemented yet in the Android GUI. This adds a bottom search toolbar where you can type a search string + up/down search handles to search for the string from the current cursor position. Change-Id: Ia7461d2c6399c23201d2ea81f0b44c38533939a1 (cherry picked from commit 6636476cf06ccabc81fcc951f842a34a7f4b5840)
2015-11-13android: Add bottom formatting toolbarTomaž Vajngerl42-193/+819
The bottom formatting toolbar now shows the formatting options previously located in the main toolbar as a menu entry (bold, italic, ...). In addition alignment options and selection of fonts and sizes have been added. Bottom formatting toolbar is not shown by default - it enables when hitting the icon in main toolbar. Also soft keyboard and formatting toolbar should not be shown at the same time. Change-Id: I5f6cf8a9fcbdb4d154ae7504a65f9a226c99d694 (cherry picked from commit 319623a3345b5cb11f0d42c6e7781734ff1a3a40)
2015-11-13android: make toolbar visuals easier to changeTomaž Vajngerl3-1/+13
Change-Id: I5b4dd8b8c407640cfcd9f366cecfaf6deb0cb3be (cherry picked from commit 01d0983e3dd963003159779ca0920ace7dc308c4)
2015-11-13android: remove attrs.xmlTomaž Vajngerl1-17/+0
Change-Id: I7d3742af0c11a996701f7d263fc04a387edb0d00 (cherry picked from commit b0166b1d063dd1ba40692eecea1fa378e868acee)
2015-11-02android: chanhe handles to use alias, tint handles with colorTomaž Vajngerl18-31/+21
Change-Id: I86ad5eefd70bc8b768780cac66ca466aa0926dc4 (cherry picked from commit 74463457b39c9def1add630b7b0581dc195549c8)
2015-11-02andorid: use 4 spaces for indent in color.xmlTomaž Vajngerl1-87/+87
Change-Id: I2435e8ce93383a1a40996a81ef65c1823606609a (cherry picked from commit d38abe1da2a42bc20a986d43f96142e15c1b3bef)
2015-11-02android: don't crash in LO when SurfaceView layout is 0 widthTomaž Vajngerl1-0/+5
Change-Id: I49be19b273d0c263637369e9b095f374b345191b (cherry picked from commit 37d41674c2b1a706c95c2c326cbfbd06b0c1a655)
2015-11-02android: don't crash in TextureReaper when Integer is nullTomaž Vajngerl1-7/+16
Change-Id: I1514aa7a3fbab682b0d282ba0f504470943d7e4a (cherry picked from commit 9a52bad40ab96a58bc817fbfe1145a6766d75940)
2015-11-02android: update JNI facade, rename mouse/keyboard event flagsTomaž Vajngerl7-26/+69
Change-Id: Ia2b9a812717d05c7d98d47bf0fe5fd293029d045 (cherry picked from commit 6d9124de6fac2dea39427978993e68155291cc9c)
2015-11-02android: add desing libraryTomaž Vajngerl1-0/+1
Change-Id: I6468a5cf66715516764c779ecc080fb2c1bd7382 (cherry picked from commit 50ffbe8557dbecda187cd6d9c93c2fdf916a6f75)
2015-11-02android: remove CommandLine.java as we don't use it anymoreTomaž Vajngerl1-176/+0
Change-Id: Ib487d4f948dde2027bebc914bb3fe43b55c6d50b (cherry picked from commit f70254caf4d58022e7ec338328c45b372e6d8de8)
2015-10-21android: remove MockTileProviderTomaž Vajngerl2-170/+2
Change-Id: I1b44c9fa4edfdc79e48f52ba95493f83f0421669 (cherry picked from commit 075c4db2844146dd861a77c8d51fb8ac675f520f)
2015-10-21android: remove the native DirectBufferAllocatorTomaž Vajngerl1-46/+5
Change-Id: I41d25d288253f1b35c268ba70b8384812fa567e5 (cherry picked from commit c8dcec92470745f07c51074404ce4250428f2255)
2015-10-21android: typo in gradle build script (app crashed on key press)Tomaž Vajngerl1-2/+2
Change-Id: Icf3973d20455fd9ccde3a448b9596457ef5308a3 (cherry picked from commit 030891701c2f2d32b7d5848ddc955801560dd081)
2015-10-15java: 'final static' to 'static final'Noel Grandin1-1/+1
this is the canonical order, and it makes the code easier to read Reviewed-on: https://gerrit.libreoffice.org/16242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org> (cherry picked from commit 0c18bedb7328493040c1a20822b345e624d6041f) Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470
2015-10-15android: show flat ODS files in the doc browserMiklos Vajna1-1/+1
I forgot about this when I enabled other Calc file types in 07997cba7745997d7e2ed908a8764ba1f0777f1e (android: adapt doc browser to updated manifest that accepts Calc documents, 2015-01-19). Change-Id: Iabacffbfc09d806f09bc7e0f9307830bda8ebbe1 (cherry picked from commit 1956b50e3b4c63a913151fd21d21c42cd288173d)
2015-10-15allow using Android Studio with lldb to debug native partChristian Lohmaier2-8/+32
and of course also for the Java part Using build-id linker flag allows lldb to map the installed .so to the non-stripped version on the buildhost. Also ndk-gdb supports specifying a different package name on the commandline, so no need for the error in configure anymore. Change-Id: If6887a27cc8ab15ee6ab612502cacf0a22ade737 (cherry picked from commit 8840a66faceb5ebff2e6021e9b14da691d420234)
2015-10-15make ndk-gdb work againChristian Lohmaier5-15/+47
it hardcodes so much :-( Change-Id: Id86c2bcbf5936f3ab292e87210b967e2331c9435 (cherry picked from commit 78cf4ca4405d33d3f658da0d7f209afc8e6ee4a7)
2015-10-15android can only target sdk 22 - openssl triggers text relocation errorsChristian Lohmaier1-1/+4
scanelf -T android/source/obj/local/x86/liblo-native-code.so TYPE TEXTRELS FILE liblo-native-code.so: (memory/data?) [0x30E35B6] in (optimized out: previous OPENSSL_rdtsc) [0x30E35B0] liblo-native-code.so: (memory/data?) [0x30E35D2] in (optimized out: previous OPENSSL_instrument_halt) [0x30E35D0] liblo-native-code.so: (memory/data?) [0x30E3646] in (optimized out: previous OPENSSL_wipe_cpu) [0x30E3640] liblo-native-code.so: (memory/data?) [0x30E494C] in (optimized out: previous sha1_block_data_order) [0x30E4940] liblo-native-code.so: (memory/data?) [0x30E79BA] in (optimized out: previous sha512_block_data_order) [0x30E7980] liblo-native-code.so: (memory/data?) [0x30EB7B2] in (optimized out: previous AES_encrypt) [0x30EB780] liblo-native-code.so: (memory/data?) [0x30ECDF2] in (optimized out: previous AES_decrypt) [0x30ECDC0] liblo-native-code.so: (memory/data?) [0x30ECE89] in (optimized out: previous AES_cbc_encrypt) [0x30ECE70] ET_DYN android/source/obj/local/x86/liblo-native-code.so with target level 22 it is only a warning: W/linker: /mnt/asec/org.documentfoundation.libreoffice-1/lib/x86/liblo-native-code.so has text relocations. This is wasting memory and prevents security hardening. Please fix. with target level 23 it is java.lang.UnsatisfiedLinkError Change-Id: Ia55c75c46a64854e46aab3329fef3e9b522a5ba2 (cherry picked from commit 5b791ec5e0bd6e05769bf9683d9e1f8b3344b9a5)
2015-10-15tdf#94891 fix crash when rotating screen in docbrowser right after launchChristian Lohmaier1-3/+10
will likely also lose the current directory, but much better than crashing. Change-Id: I9ce20e1954a6f58325413046e258ded75b6c8848 (cherry picked from commit b6430ed7fd4b6d3656f70f98ea1b089e049a3847)
2015-10-15move extracting assets to Java & use AssetManager to access assetsChristian Lohmaier2-35/+112
using AssetsManager in both java as well as native parts allows to handle files both with and without compression transparently Change-Id: If02f1159c498be7ea965fd9c217410722f2dca1f (cherry picked from commit 143fb0a4b5d4ab69d4928299d8112ab95d99870a)
2015-10-15migrate android build to gradleChristian Lohmaier24-657/+599
move preparation tasks (creating assets/processing files) from the makefile into the gradle script This allows much easier integration into android-studio (just open android/source with android studio after running make to compile the native library) (cherry picked from commit ee8257a1c70eadb7330b0ee99ec3b86fe4084bdf) Change-Id: I9a9d6832797c24a7e195a1c7954cd6d20f5a8496
2015-10-15tdf#93281 clean cache directory on each startChristian Lohmaier1-10/+35
to avoid segfault in native lib. It's only a workaround, but I couldn't see what's wrong with the cache... Change-Id: Iceeee1e190bbbd6efe336d84ddcbd8c4d3a1c621 (cherry picked from commit 1a6ec13d0805b7aa8c3bdcbfcc444c4916dfc817)
2015-10-15android: avoid arrayIndexOutOfBounds when lokit payload doesn't have a valueChristian Lohmaier1-0/+4
and is not handled yet like ".uno:CharFontName=" Change-Id: I09d17b6be9ce9b9c9ae6883f8222c8628268815d (cherry picked from commit cdfdf76787b1c3983e4eae0620fe711647ed0b9e)
2015-10-15android: make strikethrough work (it's not .uno:StrikeOut, but .uno:Strikeout)Christian Lohmaier2-2/+2
Change-Id: I8d629272cf94eaac406c163c06c9bbdd6a248b79 (cherry picked from commit 233b9b0ec95069b5ce98aab942304459ca7344a8)
2015-10-15compare strings using equals, not with ==Christian Lohmaier1-2/+2
Change-Id: I8869980198123bbe9e86e12638e3316be24588c3 (cherry picked from commit c320161f48990fbf6cad162633b26e07de873923)
2015-10-15android: remove unused imports, call static methods the static wayChristian Lohmaier19-56/+25
and remove some redundant casts Change-Id: If58a395227e4b9d54b0d757032d4a55c25315019 (cherry picked from commit 7b282e3db8cc608373d09e49dba57945be07f895)
2015-10-15android: make layouts nicer to work with by providing sample values in editorChristian Lohmaier6-9/+24
Change-Id: I76495becb0257cb36340397d7296f26565fca4cd (cherry picked from commit 20d5c4cce51284fd39d22755d19ac7a28ab51e14)
2015-10-15android: remove no longer used filesChristian Lohmaier15-227/+4
Change-Id: Id3b71ac50e3c8ce9705f6df18edaaaa6ba8ad3fd (cherry picked from commit de376cb1c42543cd7717b0de88056ed4ab8af6d4)
2015-10-15android: fix make install and don't use ant -quiet by defaultMiklos Vajna2-2/+2
Unlike 'make -s', 'ant -quiet' will stay silent even if there was an error. (cherry picked from commit 4475c17da56e6eec034e66f039f941d0f18515bc) Change-Id: Iba921d3cde48875f7a6da4c5ba811cab46dfb89f
2015-10-15Revert "revert back to android-21 target until tinderbox gets updated"Tor Lillqvist3-3/+3
Now it has been updated. This reverts commit 4e47ed7e5aad8bde548b4953baba13cf99b6fd9c. (cherry picked from commit 827e78fcb254bb1535a9af5b2767d6baea45372f)
2015-10-15revert back to android-21 target until tinderbox gets updatedChristian Lohmaier3-3/+3
Change-Id: Ief38ef9cc4f167caef8d991c9543161997682418 (cherry picked from commit 4e47ed7e5aad8bde548b4953baba13cf99b6fd9c)
2015-10-15android.util.FloatMath is deprecated/was removed in ver 23Christian Lohmaier5-12/+10
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 (cherry picked from commit 45c27ffcfd58aee86c92421af82525d873e54654)
2015-10-15Android: i18-ize some stringsJacobo Aragunde Pérez2-4/+9
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe (cherry picked from commit a952540aeba688b10eb1ecd1194c95610ba7f350)
2015-10-15Android: check file modify date to know if save is completeJacobo Aragunde Pérez1-7/+33
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 (cherry picked from commit 315ca033c696a6d7339a4c3f2fc617e01d80fcb8)
2015-10-15Android: Implement cloud saveJacobo Aragunde Pérez5-8/+107
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 (cherry picked from commit 626ebde44f56755a413945dcb260740ddacf90ba)
2015-10-15Android: provide an ID to document providersJacobo Aragunde Pérez5-9/+44
This ID will be useful to get an instance of a document provider back from a different activity. Change-Id: I9419ea23d51f8e9ffd70252bd8e367cf51bde1ad (cherry picked from commit a3c3a13e8499e994b198b80566cdee9af9a7f2da)
2015-10-15Android: show drawer ("hamburger") icon on root directoryJacobo Aragunde Pérez2-3/+42
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> (cherry picked from commit aa3cdfc8b61f8ef543a13741caf8cf88e3969a79)
2015-10-15Android: do not hide toolbar under the drawerJacobo Aragunde Pérez1-20/+27
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> (cherry picked from commit 371cecff13c1ba8d2ace97695c7ede6d90440736)
2015-10-15tdf#87434: android: system back key to go one level upJacobo Aragunde Pérez2-0/+28
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> (cherry picked from commit d1f671e053864d0bf54d04a855761b43a7f5a9c4)