summaryrefslogtreecommitdiff
path: root/android/source/src
AgeCommit message (Collapse)Author
2016-12-06tdf#103524 - Fix Bottom Toolbars closing operationMert Tumer
Added variables to control state of bottom toolbars, and based on their state open/close the bars Change-Id: I5f9429b336451a354b95dcee18b71fb577c28559 Reviewed-on: https://gerrit.libreoffice.org/30298 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-09-19tdf#96797 - Android: Viewer file filter is not working on ownCloudMert Tumer
Change-Id: I6ffb450d935ae1f7b4900243b9ff2f8df408628f Reviewed-on: https://gerrit.libreoffice.org/27829 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-09-19tdf#101260 - Android: Filter in External SD doesn't workMert Tumer
Change-Id: Iaba74749c11cbac972fecf816e5bb090edd9e06c Reviewed-on: https://gerrit.libreoffice.org/27802 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-09-09tdf#96810 - Fix Android Viewer: Keyboard can not hide with keyboard button.Mert Tumer
Change-Id: I87d83953094d31ed4e1bcf60c55dd19056a7994e Reviewed-on: https://gerrit.libreoffice.org/28005 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-08-28tdf#96771 - bug fix for owncloudfiles with white space charactersMert Tumer
Change-Id: I373db55ed819ed5d2a574ba2590032ee628218f4 Reviewed-on: https://gerrit.libreoffice.org/27634 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-07-04Fix some spelling errors in comments and stringsOtto Kekäläinen
Change-Id: Iecd6b5e13d6be14651f77d8e37f01117ba15a11e Reviewed-on: https://gerrit.libreoffice.org/26883 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-07-02android: prevent crash if storage is unavailableChristian Lohmaier
Change-Id: I350acc1735d5fd22a27434fc5ccf2ab39bf3d2cf
2016-05-01tdf#99539 - fıx crash on android 5.1Mert Tumer
Change-Id: I3d484f7d7d9e466ae1b2ac4afe2b59d060fa8b77 Reviewed-on: https://gerrit.libreoffice.org/24537 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-04-30Fix typosAndrea Gelmini
Change-Id: Id81b16ff26283611f0b84929d831c827f847ab73 Reviewed-on: https://gerrit.libreoffice.org/24317 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-03-19formatting and whitespaceAlexandru Moscu
Change-Id: Icc086404a2ef32a38e972da9158f6156fdf74ef2 Reviewed-on: https://gerrit.libreoffice.org/23363 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2016-02-05android: document some parameters for doxygenChris Sherlock
Change-Id: I4382949a35df3877fc6c93a83d6e84cd892756a8
2016-02-02tdf#88389 - android document browser: external storage accessAlexF
Background: External SD cards are only partially supported by the Android system, with a great deal of fragmentation on implementation across manufacturers and android versions. There is no official support for OTG devices. This commit adds: 1) External SD card support 2) OTG device support Caveats: 1) Not tested on Android 6. Emulator crashes when opening files on Android 6, using an unmodified build of the master branch. 2) OTG support currently works only if there is write access to the OTG directory. The user must be aware of exact OTG directory path or be able to navigate to it as well. 3) External SD card provider currently lacks file filtering. Approach: ----- Added new document providers. External SD cards: There are 2 different document providers external sd cards, one for Android 4.4 and above, and the other for older versions. 1) New Android 4.4 and above require usage of the DocumentFile wrapper class to access files in external storage. Actual file paths are no longer obtainable. As such, the underlying file will be cloned in a cache, allowing us to get an actual file path and use LOK. Some differences exist between 4.4 & 5+. The document provider handles each case separately. 2) Legacy Android 4.3 and below do not support the DocumentFile wrapper. File object can be used in these versions, allowing actual file paths to be obtained. The document provider guesses the root directory of the SD card. If the guessing fails, the user is to navigate to this directory himself. OTG: The OTG document provider resembles the legacy external SD card document provider, requiring the user to locate the directory himself. The document provider does not guess the root directory of the OTG device as the location varies with manufacturer implementation. ----- Supplementary Notes: Attempting to use the internal app cache as the file cache like in the ownCloud document provider did not work. Using the external app cache works fine though. It could be because initializing LOK wipes the internal app cache. Would be good to test the ownCloud document provider to confirm if it works. Change-Id: Ie727cca265107bc49ca7e7b57130470f7fc52e06 Reviewed-on: https://gerrit.libreoffice.org/20738 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2016-01-10Fix typosAndrea Gelmini
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-05Fix typosAndrea Gelmini
Change-Id: I3fba2c76c83381eb398c80947ef4849bccf7ab27 Reviewed-on: https://gerrit.libreoffice.org/21078 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2015-12-25tdf#88391 android document browser: draw and impress icon is the sameAlexF
Added missing code to set icon for draw in grid mode. Change-Id: I9ee356d5ab1a296a90e5ece11f5f4c50e7600f13 Reviewed-on: https://gerrit.libreoffice.org/19921 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org> Tested-by: Jenkins <ci@libreoffice.org>
2015-11-21android: another part where underline and strikethrough commands were swappedChristian Lohmaier
Change-Id: I8fdde4b46e3e315a5b6a35cabc4495ebf69db057
2015-11-21android: underline and strikethrough commands were swappedChristian Lohmaier
Change-Id: Id7157ea5fadd684dceec52f69ec9279c4107b5f1
2015-11-17android: don't crash on empty filelistCaolán McNamara
Change-Id: I46caceed3fdf0ad0aa51c8a8ede1177ca3d1855e
2015-11-13android: rename "editMode" to "experimentalMode"Tomaž Vajngerl
Change-Id: I3fcb7bb2fda925a1c5b2633ac7f6846fda0dabf8
2015-11-13android: add undo/redo to the main toolbarTomaž Vajngerl
Change-Id: I64f76d22018fcd8af2991933ba5ab2069f84181f
2015-11-13android: Add string searching + search toolbarTomaž Vajngerl
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
2015-11-13android: Add bottom formatting toolbarTomaž Vajngerl
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
2015-11-13LOK: setClientZoom() - sets the client zoom levelMihai Varga
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
2015-11-02android: chanhe handles to use alias, tint handles with colorTomaž Vajngerl
Change-Id: I86ad5eefd70bc8b768780cac66ca466aa0926dc4
2015-11-01android: don't crash in LO when SurfaceView layout is 0 widthTomaž Vajngerl
Change-Id: I49be19b273d0c263637369e9b095f374b345191b
2015-11-01android: don't crash in TextureReaper when Integer is nullTomaž Vajngerl
Change-Id: I1514aa7a3fbab682b0d282ba0f504470943d7e4a
2015-11-01android: update JNI facade, rename mouse/keyboard event flagsTomaž Vajngerl
Change-Id: Ia2b9a812717d05c7d98d47bf0fe5fd293029d045
2015-10-21android: remove MockTileProviderTomaž Vajngerl
Change-Id: I1b44c9fa4edfdc79e48f52ba95493f83f0421669
2015-10-15android: show flat ODS files in the doc browserMiklos Vajna
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
2015-10-11tdf#94891 fix crash when rotating screen in docbrowser right after launchChristian Lohmaier
will likely also lose the current directory, but much better than crashing. Change-Id: I9ce20e1954a6f58325413046e258ded75b6c8848
2015-10-11move extracting assets to Java & use AssetManager to access assetsChristian Lohmaier
using AssetsManager in both java as well as native parts allows to handle files both with and without compression transparently Change-Id: If02f1159c498be7ea965fd9c217410722f2dca1f
2015-10-03android: avoid arrayIndexOutOfBounds when lokit payload doesn't have a valueChristian Lohmaier
and is not handled yet like ".uno:CharFontName=" Change-Id: I09d17b6be9ce9b9c9ae6883f8222c8628268815d
2015-10-03android: make strikethrough work (it's not .uno:StrikeOut, but .uno:Strikeout)Christian Lohmaier
Change-Id: I8d629272cf94eaac406c163c06c9bbdd6a248b79
2015-10-03compare strings using equals, not with ==Christian Lohmaier
Change-Id: I8869980198123bbe9e86e12638e3316be24588c3
2015-10-03android: remove unused imports, call static methods the static wayChristian Lohmaier
and remove some redundant casts Change-Id: If58a395227e4b9d54b0d757032d4a55c25315019
2015-10-03android: remove no longer used filesChristian Lohmaier
Change-Id: Id3b71ac50e3c8ce9705f6df18edaaaa6ba8ad3fd
2015-09-30Fix typosAndrea Gelmini
Change-Id: Ie0e941d48457d758525353d6c5cf858652f86fd3 Reviewed-on: https://gerrit.libreoffice.org/18938 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-24android.util.FloatMath is deprecated/was removed in ver 23Christian Lohmaier
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
2015-09-18Fix typosAndrea Gelmini
Change-Id: I021589aeca9ef6bceb1c828c2197f5ff58f85b09 Reviewed-on: https://gerrit.libreoffice.org/18707 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2015-09-11Android: i18-ize some stringsJacobo Aragunde Pérez
Change-Id: I35d0ef7976d6dcca65f3335ff9175c799faa99fe
2015-09-11Android: check file modify date to know if save is completeJacobo Aragunde Pérez
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
2015-09-11Android: Implement cloud saveJacobo Aragunde Pérez
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
2015-09-11Android: provide an ID to document providersJacobo Aragunde Pérez
This ID will be useful to get an instance of a document provider back from a different activity. Change-Id: I9419ea23d51f8e9ffd70252bd8e367cf51bde1ad
2015-06-15java: 'final static' to 'static final'Noel Grandin
this is the canonical order, and it makes the code easier to read Change-Id: I272e7f1e140296e582702b6dbf77a03eefb65470 Reviewed-on: https://gerrit.libreoffice.org/16242 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: David Ostrovsky <david@ostrovsky.org>
2015-06-12Android: show drawer ("hamburger") icon on root directoryJacobo Aragunde Pérez
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>
2015-06-12tdf#87434: android: system back key to go one level upJacobo Aragunde Pérez
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>
2015-06-12Android: properly set default dir for the document browserJacobo Aragunde Pérez
The default dir had been changing by modifying the "local documents" provider; this is wrong because there is already a document provider to browser de internal storage. Change-Id: I08677283100162aaeced622153131f89abc2f1af Reviewed-on: https://gerrit.libreoffice.org/16244 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-11java:regulatize the order of 'final' and public/privateNoel Grandin
Make the order be 'public static' or 'private static' Just makes the code nicer to read. Change-Id: I182424bda45a2d68642e5d04c6091d268ace1fe2 Reviewed-on: https://gerrit.libreoffice.org/16202 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-10Android: improve error handling in ownCloud provider.Jacobo Aragunde Pérez
This provider now throws exceptions with properly internationalized messages to be shown to the user. Change-Id: I0464bffe14cab24d50180cb5e2e62ce746bcba74 Reviewed-on: https://gerrit.libreoffice.org/16197 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-06-10Android: document providers listen to changes in preferences.Jacobo Aragunde Pérez
With this patch, document providers are able to listen to changes in their preferences and update their internal state accordingly. Now ownCloud provider can see its server updated without restarting the application. Change-Id: I833c7ec9fc97be58bdc8ac2cbf4384a33c2b400e Reviewed-on: https://gerrit.libreoffice.org/16196 Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com> Tested-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>