summaryrefslogtreecommitdiff
path: root/android
AgeCommit message (Collapse)Author
2014-09-26android: PanZoomControler updates from FennecTomaž Vajngerl
Change-Id: Ic338221ced6133771af8f46ae4a257e043a1709f
2014-09-26android: remove unused screenSize (Fennec import)Tomaž Vajngerl
Change-Id: I0b8d1b29ab3219bc75de6c087e410523c18dbeef
2014-09-26android: change pageSize to pageRect (Fennec import)Tomaž Vajngerl
Change-Id: Ia3958b174e7190171cbd006550e47677a1ba0966
2014-09-26android: remove tiles delayed by one redraw callTomaž Vajngerl
Change-Id: I5ab5e4a0ba9cdf3f3115c4913b4cf04e7f062755
2014-09-26android: rerender tiles when the zoom changesTomaž Vajngerl
Initial implementation which needs a lots of polish. Sometimes the app crashes (for yet unknown reasons). Sometimes a gap between tiles is visible probably because of rounding errors. Tile handling and releasing after zoom is quite naive for now (just clearing all the tiles) which needs to be improved to be more seamless. Other changes: The responsibility of LOKitThread to handle tiles was moved to MultiTileLayer. TileProvider now takes into account the current zoom level when requesting tile rerendering. Change-Id: Ic188c03bfadf3a3dd2f79b04f07668eb63b705fb
2014-09-26android: clean MultiTileLayer of unneeded variables/methodsTomaž Vajngerl
Change-Id: I7750322000230448d6283107daace3d9bb5da61d
2014-09-26android: Log number of invalidated tilesTomaž Vajngerl
Change-Id: I1ebfcf48f1d9a44836b4d9bf90c04c3be27cb365
2014-09-24android: LayerRenderer - use highp and flip in vertex shaderTomaž Vajngerl
Change-Id: Ia517b0d94fdfb3f8fdd9b9c383c8fb337173932c
2014-09-24android: define mRootLayer directly as MultiTileLayerTomaž Vajngerl
Change-Id: I6a1f6971482ea1de28977d7905ba9fd85921551d
2014-09-24android: upgrade PanZoomController - add configurable zoom limitsTomaž Vajngerl
Change-Id: I19815f58af4d060cffe515829a2a5472d32bf83c
2014-09-24android: update LayerRenderer to newer Fennec codeTomaž Vajngerl
Change-Id: Idc7c49351c17dc9953d55ee7f1b42e497074c85a
2014-09-24android: introduce TileProviderFactoryTomaž Vajngerl
Change-Id: I98ba16b4d1537ddeb2f8a29d15a803d527ccafe3
2014-09-24android: GeckoLayerClient updateTomaž Vajngerl
Change-Id: Ie684a4d3ef012b004ede52265750da5497db434e
2014-09-24android: update DisplayPortCalculatorTomaž Vajngerl
Change-Id: Ib47822940e83e8fb78a0a8b1e18028646bfb35ae
2014-09-24android: destroy tiles (free the bitmap) when they are removedTomaž Vajngerl
Change-Id: I55959c115467f98d43d471c280bb3a0248b669ec
2014-09-24android: force initialize LibreOfficeKit, clean-upTomaž Vajngerl
Change-Id: I0c7b7d10b34c0f71bf8500696fdbc0ed38303f0e
2014-09-24android: extract touch handling into TouchEventHandlerTomaž Vajngerl
Change-Id: I138f746940bf89349d4662c95427113bff221231
2014-09-24android: remove FlexibleGLSurfaceViewTomaž Vajngerl
Change-Id: Ie2f3741d7aa86b5df25723d8665a679962a0efc9
2014-09-24android: optimize LayerRendererTomaž Vajngerl
Change-Id: I95ccb35848dc5cf3d44b761abac4e81562089186
2014-09-24android: add DisplayPortCalculator and DisplayPortMetricsTomaž Vajngerl
Change-Id: I1418023011cf0ef3611e3fda6f313d9fcb9ccea7
2014-09-24android: use JNI direct memory allocator from FennecTomaž Vajngerl
Change-Id: I95a9ab54222150a1f9cde30df820f3cd6915f641
2014-09-22android: cleanly load/close a document when activity starts/stopsTomaž Vajngerl
Change-Id: I2206a2b6818c030ba756f2b4d014a20d46f4106e
2014-09-22LOKit: add "destroy" and "saveAs" to android JNITomaž Vajngerl
Change-Id: I08542b736e49cb9262323e9fe6188b1976d47935
2014-09-22Remove ActionBarSherlock from androidPeter Foley
3195c6d removed the only use of ActionBarSherlock, but did not stop it from being built. This causes the build to fail in abs-lib due to the missing v4 support library. Stop building abs-lib and remove the no-longer used code. Change-Id: Ib9dd4b4b95d64ef251eaf8d4b24e539be9d855ff Reviewed-on: https://gerrit.libreoffice.org/11421 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-21android: upgrade layers to newer codeTomaž Vajngerl
Change-Id: Ife0d7cfad8b416c9363321a2fd1f4e9a8a1f4325
2014-09-21android: upgrade gestures and scrolling to newer codeTomaž Vajngerl
Change-Id: I84b9f66036891f6ad384ee71d078c654511a6e38
2014-09-18android: convert to ImmutableViewportMetricsTomaž Vajngerl
Change-Id: Idd5e604541577f6b812a971e585cee9b089d2b4b
2014-09-18android: thumbnail as background when tile is not availableTomaž Vajngerl
Change-Id: Id38e40b3fdb46adeb19e6a1e106775391c5da455
2014-09-18android: fix thumbnail() to produce a valid bitmapTomaž Vajngerl
Change-Id: I578ac9482f334765c71a66421a3fa2dfb85e22b3
2014-09-18android: import changes from Fennec to get ScreenShotLayerTomaž Vajngerl
Change-Id: I1b72af85a906aef289d1be086274941094df4f96
2014-09-18android: Log tile managing timesTomaž Vajngerl
Change-Id: I70fe5f1ca6553e2b3282ad0f5c227c5c0bc31f86
2014-09-18android: create thumbnail with "paintTile" LOKit functionTomaž Vajngerl
Additionally remember the document dimensions, so there is no continuous call to "getDocumentWidth" and "getDocumentHeight" Change-Id: I269b47178a25da28de8df98d0bd45211fb64797d
2014-09-18android: disable reinitialization on orientation change or resumeTomaž Vajngerl
Change-Id: Ia87f27395acdf35a50d37212106674e9f9f34c0d
2014-09-18Android browser: open documents with the new viewerJacobo Aragunde Pérez
Change-Id: Iae63a8ec591df912938e74d67cb173f591c2a93d Reviewed-on: https://gerrit.libreoffice.org/11488 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-18Android: merge LibreOffice4Android into LOAndroid3Jacobo Aragunde Pérez
This commit merges the code of the document browser found in android/experimental/LibreOffice4Android into the new document viewer at LOAndroid3. All the source and resources is moved, and some duplicated files are removed. From now on the apk generated by LOAndroid3 will provide the document browser too. Slightly modified the build files of ExperimentalDesktop project because they depended on LibreOffice4Android being built. Change-Id: I0579afda7b570509ca4d3873c28a13fcbeeb5ab8 Reviewed-on: https://gerrit.libreoffice.org/11487 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2014-09-12LibreOffice4Android: Reorganize resources.Jacobo Aragunde Pérez
Removed several copies of repeated resources and moved one of each to the "drawable" directory. There is no need to place several identical resources in "drawable-*" directories, it's enough placing one copy in "drawable". Change-Id: I72a9cecab5db7cdb461fcd7f89c783817746385b
2014-09-11LibreOffice4Android: Fix NullPointerExceptionJacobo Aragunde Pérez
The member fileNames was being correctly set in createUI() but it was being reset at openDirectory(). The only purpose of this member was sending the file name to open() method, but we can rewrite open() to accept File objects so fileNames became useless and was removed. Change-Id: I944be8ff13d221573a5a7accf0081c30872c62f0
2014-09-11LibreOffice4Android: Remove dependency from actionbarsherlockJacobo Aragunde Pérez
Replace with the native Android action bar since API 11. Change-Id: Ia332b51cfea084072e8d0362702a359b8f09adea
2014-09-11LibreOffice4Android: Disable thumbnails so the application can runJacobo Aragunde Pérez
Commented out the piece of code that invokes the creation of thumbnails, because it crashes after the call to native code. Once LibreOffice4Android is merged with the LOKit-based viewer, it will be the moment to fix the thumbnails properly. Change-Id: I6dd38c6f91008d41905d3c4a856899e9ec81bd6b
2014-09-11android: remove unneeded code pathsTomaž Vajngerl
Change-Id: I5da4ca67caf2bc2e368c74cf719b080c63b6d47f
2014-08-20java: remove unnecessary return statementsNoel Grandin
found by PMD Change-Id: I3d150421948d17eaed34fac2b1a212da34288d1a
2014-08-19java: use Boolean.valueOf instead of instantiating Boolean objectsNoel Grandin
Change-Id: Ie41d6b0170a035a694dd270c311a137fd1810e74
2014-08-13android: Add logic to change document parts from sidebarTomaž Vajngerl
Add click listener for list elements (parts) in "drawer layout" side bar, add new LOEvent - change parts, propagate the change event up to TileProvider, call setPart on LOK facade, clean all tiles and redraw. Change-Id: I711e0fb5e7e867cef87f97b96f1292d7c6801083
2014-08-10copy android-support-v4 from SDK to libs at buildTomaž Vajngerl
Change-Id: I3adaf26624ffc46b304d35e0588e7253c20cb5ee
2014-08-10LOAndroid3: Add a side drawer to show available parts (by name)Tomaž Vajngerl
Use DrawerLayer to show a side drawer with parts of the loaded document. The dawer consists of an image (could be changed by a thumbnail in the future) and the part name. Change-Id: I27fb6112d9f11e19f3295ace97103b89816591aa
2014-08-10LOAndroid3: correctly calculate the tile view rectTomaž Vajngerl
Because the tile view rect wasn't correctly calculated, some tiles were deleted and in the same call immediately created again. With this fix the performance increases. Additionally inflate tile view rect by one tile to minimize the undrawn tiles when scrolling. Change-Id: I4b5b2bb31dd4f55babf87503dd37e396f6a5e200
2014-08-10LOAndroid3: Check if document has been loaded correctlyTomaž Vajngerl
Change-Id: If4ef82fa18aaa8719391773971d0cde07c0fbcce
2014-08-10LOAndroid3: remove unused GeckoEventListener and WidgetTileLayerTomaž Vajngerl
Change-Id: Id5c245d308221975f4071c96fb275c41348dce68
2014-08-10LOAndroid3: increase SDK levelTomaž Vajngerl
Change-Id: Ice1c975cce2de98a0c02b0772c07278648a0088d
2014-08-10LOKit android: add support for setPartMode and getPartNameTomaž Vajngerl
Change-Id: Idd8bd4d4b148e88c7badd06fefb7cfcfc24ec9ea