summaryrefslogtreecommitdiffstats
path: root/android
Commit message (Collapse)AuthorAgeFilesLines
* android: Tweak initial zoom of documents in different situationsTomaž Vajngerl2014-12-255-4/+31
| | | | | | | | - In case of Writer document always show document by full width. - Otherwise show the whole document on the screen even when the orientation is portrait or landscape. Change-Id: Ia6704432c850a5487aee1693ed12e039ae6ef0cb
* android: Put document into center when it's smaller than viewportTomaž Vajngerl2014-12-251-24/+19
| | | | Change-Id: I0d0cd421e366bf34b71d9d82dd21476ecfa90b18
* fdo#85849 on-demand create thumbnails of tiles in the sidebarTomaž Vajngerl2014-12-2211-33/+158
| | | | Change-Id: I0bef7bff0553c24b9d699845e70fbb128301a0fe
* fdo#87098 invalidate zoom change by triggering animatedZoomToTomaž Vajngerl2014-12-223-2/+17
| | | | Change-Id: Ie5734d8999a214a1df544579a7bfb32cc9f035eb
* android: never use TextureView for now (for performance reasons)Tomaž Vajngerl2014-12-191-3/+4
| | | | | | Get align with latest Fennec code which also has this disabled. Change-Id: Ie4c27935bacd29218207e47593f073bdce0cf7e3
* android: remove screenshot layerTomaž Vajngerl2014-12-193-31/+3
| | | | Change-Id: Ic2f0344bab4280fd3c55923707d100f87585199a
* android doc browser: hide Calc filter, add Draw filterMiklos Vajna2014-12-193-8/+14
| | | | | | | Hide Calc filter, as ATM Calc documents are not supported. Draw filter was just missing, add it. Change-Id: I88b9e48319e584f1c86de1b970badcdd695f30ed
* android: support building with SDK tools 24Tomaž Vajngerl2014-12-181-0/+45
| | | | Change-Id: I424e81b849d7e0ec5c61eddcc70279e3559885d1
* android doc browser: sync file type list with the intent filterMiklos Vajna2014-12-172-21/+49
| | | | Change-Id: I81746860198864bb5917a6c1e898b742b65d77e1
* android doc browser: let's list file extensions only at a single placeMiklos Vajna2014-12-172-80/+32
| | | | | | | There is still some duplication, as the file type -> resource mapping is there two times. Change-Id: I50cd58f1cc62e872fb925556dd151f6392eeeb87
* android: turn off text and table boundaries in the viewerMiklos Vajna2014-12-171-1/+12
| | | | Change-Id: I9923332372c1a09a734f3c6fd1bbd5989c6dc5d3
* android: fix unreadable text in doc browser's about dialogMiklos Vajna2014-12-173-2/+3
| | | | | | | | | | | | | | | There were two inconsistencies here: - The doc browser activity had an explicit android:theme, but the viewer does not, so remove it to be consistent, this fixes the about dialog's "black text on black background" problem. - Now the doc browser had white text on white background: the about dialog explicitly uses android:textColor for the strings which should be readable on a bright background, do the same in file_explorer_folder_icon and file_explorer_grid_item, that makes doc browser text readable as well. Change-Id: Iae9103556ca7c32c9ac8ea02d9e5d5fa6dfb72b5
* android: tweak low-res tilesTomaž Vajngerl2014-12-172-5/+3
| | | | Change-Id: I2806f35ee112b9ea7ccf323e01372f7e2f68ffa2
* android: support to handle events with prioritizationTomaž Vajngerl2014-12-175-9/+25
| | | | | | | Low-res tiles should be handleded before normal tiles so for this add priority to tiles and store in a with priority queue. Change-Id: I8d36c14503d9b684816d99f577198ac34b729d15
* android: remove old and unused LOAndroid and LOAndroid2Tomaž Vajngerl2014-12-17205-20206/+0
| | | | Change-Id: Ib25c4bb29081ae51a3b06a6fe2af76749ec8ea46
* Remove the ThumbnailGenerator classTor Lillqvist2014-12-172-379/+0
| | | | | | | | | | | | | | | | | The only use of it is commented out. ThumbnailGenerator used the UNO-based XToolkitExperimental stuff that I want to get rid of. If/when we want thumbnails, we should use the existing thumbnails from document formats that have them, or generate them using LOKit. Also remove stuff from the Bootstrap class that was only used by ThumbnailGenerator. Conflicts: android/experimental/LOAndroid3/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java Reviewed on: https://gerrit.libreoffice.org/13503 Change-Id: Ia3a1a7f372a814359c5b496cdb17c35246e34817
* android: fix loading documents from doc browser's about dialogMiklos Vajna2014-12-173-6/+35
| | | | | | | - LibreOfficeUIActivity needs to start a new activity - LibreOfficeMainActivity is enough to send a new event Change-Id: I3a7532a07b37a16bdb49f81072132aa57c2c52e8
* android: show about menu entry in the browser as wellMiklos Vajna2014-12-172-1/+8
| | | | Change-Id: I74a38281dc80790f7593042c205c31a6fc2d2cdc
* android: extract LOAbout from LibreOfficeMainActivityMiklos Vajna2014-12-172-47/+75
| | | | Change-Id: Ied6a9a64041de94766b307c7ca64eba7edeab64c
* android: make the 'more info' document accessible from the about dialogMiklos Vajna2014-12-172-0/+10
| | | | | | | | Now that the default activity is not the viewer, but the document browser, there is no way to show the introduction document. Add a button to the about dialog to still show it. Change-Id: I9252064aaaf4c49da519e17b651e0d290bc17c04
* org.libreoffice.android.DocumentLoader is not used for anything in LOAndroid3Tor Lillqvist2014-12-162-1258/+0
| | | | Change-Id: Ib7d55a90935a9d2c42196b04119db1c5ea7f30f4
* android doc browser: avoid explicit background color without a foreground oneMiklos Vajna2014-12-161-1/+0
| | | | | | | E.g. on my device the foreground color was white, the explicit light background color made the filenames almost unreadable. Change-Id: I64e361447ef9af4f3998afeb4a938907b6ca7eb3
* Android: prevent NPE due to lack of permissions on a directoryJacobo Aragunde Pérez2014-12-161-0/+4
| | | | | | | Change-Id: Ia2f4c04ad4c524e8b72870acb0735793624f0916 Reviewed-on: https://gerrit.libreoffice.org/13278 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
* Android: browse documents anywhere in the sdcardJacobo Aragunde Pérez2014-12-161-2/+1
| | | | | | | Change-Id: I9e52489e13ed0eaeb5926347168de926cd9178b0 Reviewed-on: https://gerrit.libreoffice.org/13277 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
* android: Show document browser back in the menuJacobo Aragunde Pérez2014-12-161-8/+2
| | | | | | | | | | | | | | | | | | | Related with commit c7c2b4b54d8ab81150e9b71433970c2f338ed063. There is nothing wrong with having several activities; in fact Android development encourages using one activity per use case. After this patch we have: * One menu item that opens LibreOffice document browser. It covers the use case "open LibreOffice without documents". * The viewer activity does not have a menu item but it responds to open intents triggered by any applications like file explorers, including the document browser. Change-Id: Ie08b96e52d3a6a79aed3354620302705d7689381 Reviewed-on: https://gerrit.libreoffice.org/12108 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
* android: disable navigation drawer for WriterMiklos Vajna2014-12-162-2/+17
| | | | | | | | Writer documents currently always have one part, so it's not possible to switch to an other part anyway. Also hide the matching menu item accordingly. Change-Id: Ic634d46c4ff307416b2878e5bc8a590b22a827a0
* android: Adpater -> AdapterMiklos Vajna2014-12-164-13/+13
| | | | Change-Id: If5297d641b4a596f20bdde8203f199d8efcb92fe
* android: don't associate with ods, fods, ots, xls, xlsx, xltx and csvMiklos Vajna2014-12-151-6/+8
| | | | | | | It's pointless to do that till Calc tiled rendering is not supported on master. Change-Id: Ib1ba01c18621d0a6e39ed45052ced715defaa4d4
* android: associate with ott, otg, otp, dotx and potx files as wellMiklos Vajna2014-12-151-1/+14
| | | | Change-Id: If77eb099cb132ea889f623b895b32b3eef223d76
* android: clear tiles when adding a new tile, variousTomaž Vajngerl2014-12-151-2/+5
| | | | Change-Id: Ifc6e01a1beb39187a5231019d1bf7ac816052e78
* android: skip tiles that are already outside of viewportTomaž Vajngerl2014-12-152-5/+11
| | | | Change-Id: I65f286797b459f30885560577a4dcb3d1108c0bf
* android: calculate tile position/dimension for FixedZoomTileLayerTomaž Vajngerl2014-12-155-21/+44
| | | | Change-Id: I54664a9289ef513fb4660b002f6ce652c7a9e6ef
* android: add to DisplayPortMetrics position and zoom getterTomaž Vajngerl2014-12-151-0/+8
| | | | Change-Id: I90674f51113c082d3bd88a72f8b9883b44569f87
* android: remove creation of background screenshotsTomaž Vajngerl2014-12-151-5/+0
| | | | Change-Id: I23a2bc875229546c72708eefca68a12099c2a7af
* fdo#87098 change zoom level tile layer zoom level on loadTomaž Vajngerl2014-12-111-6/+2
| | | | | | | | This patch sets the zoom level to a value that shows the whole document width on the tile layer however it does not resize the view until next zoom. This still needs to be tracked down. Change-Id: I16940a2951e1be4b46cbd1870fda45f296aff70a
* android: remove unneeded logging and comment tile rendering timingTomaž Vajngerl2014-12-113-5/+2
| | | | Change-Id: Ia44efb54cbb0a91ea61cef9e7f250b5105c7ff51
* android: Remove unneeded LOEventsTomaž Vajngerl2014-12-113-40/+5
| | | | Change-Id: I057db0c3e254a9e9c90dace5551d6de51aff21c1
* android: add FixedZoomTileLayer as a low-res layerTomaž Vajngerl2014-12-113-1/+36
| | | | Change-Id: I20d6fb3117ac46c8de63708a122253444bca1671
* android: split DynamicTileLayer, reevaluate tiles directlyTomaž Vajngerl2014-12-118-243/+251
| | | | | | | | | | Split DynamicTileLayer and move most of the implementation into ComposedTileLayer except viewport zoom value. Reevaluate tiles directly in UI thread instead a special call to LO thread. Change-Id: I9a4ce499cf35315cd386956484c2df6d5a5f20cc
* fdo#85286 android: don't convert objects on loadMiklos Vajna2014-12-101-0/+9
| | | | | | | For the WW8 bugdoc, the speedup is 435 -> 98 ms, and the end result is the same from a viewer perspective. Change-Id: I9b6ed3b77748cdc71f373daf07548c6cd0dc732e
* android: speed up mobile-config.pyMiklos Vajna2014-12-101-14/+15
| | | | | | | | | Make it O(N) instead of O(N^2), where N is the number of children of the root note. 3.596s -> 0.960s for main.xcd Change-Id: I1b9904a377603cd57f84636c873ed2b752abd101
* Related: fdo#85286 android: show error message given by LOK on the UIMiklos Vajna2014-12-091-6/+16
| | | | Change-Id: Ide8e6bc7e719968bacf86572036b15c4ef834761
* android: extract JavaPanZoomController (PZC becomes an interface)Tomaž Vajngerl2014-12-044-967/+987
| | | | Change-Id: I87e63008fe7c6db62c18bf461dc4dcda733393ac
* android: Fennec change - move classes from gecko.ui to gecko.gfxTomaž Vajngerl2014-12-047-13/+7
| | | | Change-Id: I510e0d601e293ed8e013a0273d5ae0f9be078d8a
* android: change LOKitThread.draw to return voidTomaž Vajngerl2014-12-041-4/+2
| | | | Change-Id: I00f3ed059bd633e662e5bee09703ca505bf3b9a5
* android: Fennec PanZoomControler updates..Tomaž Vajngerl2014-12-047-22/+98
| | | | Change-Id: I277fbf522b16d9b479260df8372a5ee160adcc37
* fdo#85845 android: draw tiles immediately when they are readyTomaž Vajngerl2014-12-047-68/+90
| | | | Change-Id: I924a212210703b0f6136ddefacd77d98dc89f42d
* android: rearange anc clean-up GeckoLayerClientTomaž Vajngerl2014-12-042-266/+246
| | | | Change-Id: I6b4a7f8053adea6d86ee625201eeead188bbadcc
* android: Fold LayerController into GeckoLayerClientTomaž Vajngerl2014-12-0410-359/+335
| | | | Change-Id: I6a6e702e243b389f1c487b6b5390f28a4292cc74
* android: introduce getDisplayMetrics - reduce code duplicationTomaž Vajngerl2014-12-042-6/+12
| | | | Change-Id: Ic020d9604814213e13c339b07b6e74de77a9f400