Commit Graph

1041 Commits

Author SHA1 Message Date
2005e34177 android: set single page mode in writer when init for tiled render
Change-Id: Id01b373fe7ec6620ca036b1ee7bc5debf64a92b4
2015-01-07 00:02:47 +09:00
6123d6a9fb android: Add initializeForRendering to LOK
Change-Id: Ibf4721bf4358ef215efde09ef688b2551604bfa2
2015-01-07 00:02:47 +09:00
f69f3bfd9d android: Tweak initial zoom of documents in different situations
- 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
2014-12-25 18:13:12 +09:00
6d6da4c94b android: Put document into center when it's smaller than viewport
Change-Id: I0d0cd421e366bf34b71d9d82dd21476ecfa90b18
2014-12-25 18:13:11 +09:00
c6fd07e0e4 fdo#85849 on-demand create thumbnails of tiles in the sidebar
Change-Id: I0bef7bff0553c24b9d699845e70fbb128301a0fe
2014-12-22 21:21:19 +09:00
6f5eb643ea fdo#87098 invalidate zoom change by triggering animatedZoomTo
Change-Id: Ie5734d8999a214a1df544579a7bfb32cc9f035eb
2014-12-22 17:09:26 +09:00
3860bff101 android: never use TextureView for now (for performance reasons)
Get align with latest Fennec code which also has this disabled.

Change-Id: Ie4c27935bacd29218207e47593f073bdce0cf7e3
2014-12-19 17:52:59 +09:00
96a498b44c android: remove screenshot layer
Change-Id: Ic2f0344bab4280fd3c55923707d100f87585199a
2014-12-19 17:52:59 +09:00
0897aae2c7 android doc browser: hide Calc filter, add Draw filter
Hide Calc filter, as ATM Calc documents are not supported. Draw filter
was just missing, add it.

Change-Id: I88b9e48319e584f1c86de1b970badcdd695f30ed
2014-12-19 09:40:18 +01:00
bcb4f01de2 android: support building with SDK tools 24
Change-Id: I424e81b849d7e0ec5c61eddcc70279e3559885d1
2014-12-18 18:52:19 +09:00
3b490bda1e android doc browser: sync file type list with the intent filter
Change-Id: I81746860198864bb5917a6c1e898b742b65d77e1
2014-12-17 18:26:34 +01:00
87928d31b1 android doc browser: let's list file extensions only at a single place
There is still some duplication, as the file type -> resource mapping is
there two times.

Change-Id: I50cd58f1cc62e872fb925556dd151f6392eeeb87
2014-12-17 18:26:33 +01:00
3646640458 android: turn off text and table boundaries in the viewer
Change-Id: I9923332372c1a09a734f3c6fd1bbd5989c6dc5d3
2014-12-17 13:01:41 +01:00
7bb1c73970 android: fix unreadable text in doc browser's about dialog
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
2014-12-17 11:49:27 +01:00
bd219e3cba android: tweak low-res tiles
Change-Id: I2806f35ee112b9ea7ccf323e01372f7e2f68ffa2
2014-12-17 19:03:22 +09:00
3df95150c1 android: support to handle events with prioritization
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
2014-12-17 19:03:21 +09:00
33e53de6ca android: remove old and unused LOAndroid and LOAndroid2
Change-Id: Ib25c4bb29081ae51a3b06a6fe2af76749ec8ea46
2014-12-17 19:03:21 +09:00
8ecf956d79 Remove the ThumbnailGenerator class
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
2014-12-17 10:53:29 +01:00
4588558789 android: fix loading documents from doc browser's about dialog
- LibreOfficeUIActivity needs to start a new activity
- LibreOfficeMainActivity is enough to send a new event

Change-Id: I3a7532a07b37a16bdb49f81072132aa57c2c52e8
2014-12-17 10:45:00 +01:00
6487cb9c81 android: show about menu entry in the browser as well
Change-Id: I74a38281dc80790f7593042c205c31a6fc2d2cdc
2014-12-17 10:44:59 +01:00
6d9b7738b9 android: extract LOAbout from LibreOfficeMainActivity
Change-Id: Ied6a9a64041de94766b307c7ca64eba7edeab64c
2014-12-17 10:44:59 +01:00
64eb2123d4 android: make the 'more info' document accessible from the about dialog
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
2014-12-17 09:30:01 +01:00
1ab295ba09 org.libreoffice.android.DocumentLoader is not used for anything in LOAndroid3
Change-Id: Ib7d55a90935a9d2c42196b04119db1c5ea7f30f4
2014-12-16 20:44:50 +02:00
1177f4dc06 android doc browser: avoid explicit background color without a foreground one
E.g. on my device the foreground color was white, the explicit light
background color made the filenames almost unreadable.

Change-Id: I64e361447ef9af4f3998afeb4a938907b6ca7eb3
2014-12-16 17:39:38 +01:00
c13a1c2e5c Android: prevent NPE due to lack of permissions on a directory
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>
2014-12-16 15:52:32 +00:00
8c68463dae Android: browse documents anywhere in the sdcard
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>
2014-12-16 15:46:33 +00:00
6d7f67eadf android: Show document browser back in the menu
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>
2014-12-16 15:38:29 +00:00
450647a8a2 android: disable navigation drawer for Writer
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
2014-12-16 16:16:37 +01:00
1816bdd196 android: Adpater -> Adapter
Change-Id: If5297d641b4a596f20bdde8203f199d8efcb92fe
2014-12-16 11:45:43 +01:00
90a94db73c android: don't associate with ods, fods, ots, xls, xlsx, xltx and csv
It's pointless to do that till Calc tiled rendering is not supported on
master.

Change-Id: Ib1ba01c18621d0a6e39ed45052ced715defaa4d4
2014-12-15 16:37:09 +01:00
7992c34a17 android: associate with ott, otg, otp, dotx and potx files as well
Change-Id: If77eb099cb132ea889f623b895b32b3eef223d76
2014-12-15 16:37:09 +01:00
857f4950f5 android: clear tiles when adding a new tile, various
Change-Id: Ifc6e01a1beb39187a5231019d1bf7ac816052e78
2014-12-15 22:02:01 +09:00
8daef3639a android: skip tiles that are already outside of viewport
Change-Id: I65f286797b459f30885560577a4dcb3d1108c0bf
2014-12-15 22:02:01 +09:00
abc818faca android: calculate tile position/dimension for FixedZoomTileLayer
Change-Id: I54664a9289ef513fb4660b002f6ce652c7a9e6ef
2014-12-15 22:02:01 +09:00
a9c45c5e4d android: add to DisplayPortMetrics position and zoom getter
Change-Id: I90674f51113c082d3bd88a72f8b9883b44569f87
2014-12-15 22:02:00 +09:00
2174ad93b6 android: remove creation of background screenshots
Change-Id: I23a2bc875229546c72708eefca68a12099c2a7af
2014-12-15 22:02:00 +09:00
842848cb6d fdo#87098 change zoom level tile layer zoom level on load
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
2014-12-11 23:10:43 +01:00
83cd0040fa android: remove unneeded logging and comment tile rendering timing
Change-Id: Ia44efb54cbb0a91ea61cef9e7f250b5105c7ff51
2014-12-11 23:10:42 +01:00
6721736e8f android: Remove unneeded LOEvents
Change-Id: I057db0c3e254a9e9c90dace5551d6de51aff21c1
2014-12-11 23:10:42 +01:00
7c42247d78 android: add FixedZoomTileLayer as a low-res layer
Change-Id: I20d6fb3117ac46c8de63708a122253444bca1671
2014-12-11 23:10:42 +01:00
42070ee228 android: split DynamicTileLayer, reevaluate tiles directly
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
2014-12-11 23:10:42 +01:00
657747aca8 fdo#85286 android: don't convert objects on load
For the WW8 bugdoc, the speedup is 435 -> 98 ms, and the end result is
the same from a viewer perspective.

Change-Id: I9b6ed3b77748cdc71f373daf07548c6cd0dc732e
2014-12-10 10:02:05 +01:00
7b3fea4003 android: speed up mobile-config.py
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
2014-12-10 09:15:50 +01:00
37280590cd Related: fdo#85286 android: show error message given by LOK on the UI
Change-Id: Ide8e6bc7e719968bacf86572036b15c4ef834761
2014-12-09 16:19:42 +01:00
34e456a2b0 android: extract JavaPanZoomController (PZC becomes an interface)
Change-Id: I87e63008fe7c6db62c18bf461dc4dcda733393ac
2014-12-04 23:04:30 +01:00
78551d39b7 android: Fennec change - move classes from gecko.ui to gecko.gfx
Change-Id: I510e0d601e293ed8e013a0273d5ae0f9be078d8a
2014-12-04 23:04:29 +01:00
417d1f620c android: change LOKitThread.draw to return void
Change-Id: I00f3ed059bd633e662e5bee09703ca505bf3b9a5
2014-12-04 23:04:29 +01:00
86aadc8276 android: Fennec PanZoomControler updates..
Change-Id: I277fbf522b16d9b479260df8372a5ee160adcc37
2014-12-04 23:04:29 +01:00
a9c434a284 fdo#85845 android: draw tiles immediately when they are ready
Change-Id: I924a212210703b0f6136ddefacd77d98dc89f42d
2014-12-04 23:04:29 +01:00
b861c1cc38 android: rearange anc clean-up GeckoLayerClient
Change-Id: I6b4a7f8053adea6d86ee625201eeead188bbadcc
2014-12-04 23:04:28 +01:00