Share feature for cloud files will probably not work properly as it
is, but with this patch we prevent a crash at least.
Change-Id: I95176e9e855a37adf1d3c46edceb0dc6067d9884
Now some operations in document providers may throw a RuntimeException
in case of error. The main activity is ready to catch them and show an
error message.
Change-Id: Iad7249dbdc06b2a0890d5435ad65284b728e9707
The Document Provider framework will implement access to network
services in the future, and network operations must be run in separate
threads.
Change-Id: Ifcba8f28cc4dbffaf2946c12749aa38d0eb11923
We get the data from Intent, which has data identified by an uri.
An uri can use many schemes but we support file (loading directly
from a file) or content (used by GMail App). When loading from
content, the document is available through a stream and has to be
stored into a temporary file locally first, and then that file is
should be used as input for loading the document.
Change-Id: Ia4ffa8ff02b9737b91a41c03c2eb335d28fe1d61
We need to prepare the document ASAP, otherwise we will get zero size when eg.
presentation is switched to Notes view.
Change-Id: I0d3ccea18058052994d91868ec1346c5de25faff
Text cursor is a simple line (currently implemented as a drawable
and streched), which height is adaptable. It is drawn in a different
layer than the document.
Change-Id: I40509a866e3a3173e3efcb88e73066565a1619ae
Integrate text selection handles from Fennec and insert middle
handle when a cursor invalidation event is recieved from LO.
Change-Id: I6ba31d46bf89555bdbca9ce4be666039e8bc9041
Change LOKitTileProvider to use callback types defined in Document.
Extract conversion from payload string to rect into its own method
and use it in INVALIDATE_TILES and INVALIDATE_VISIBLE_CURSOR.
Change-Id: Ic908fb187568d4b6fd73770448198e1e752cc2c6
Change key press event in LOEvent to a more general key event to
support key release.
Use InputConnectionHandler to react on key events, create
LOKitInputConnectionHandler as the implementation for LOKit.
Change-Id: I4282aa06cdd85ad4d80330f4d2a9c43eb67df30a
The code used to draw a black circle and populate it with thumbnails
of the documents inside the folder, but they are always empty because
we are not generating any thumbnails.
Change-Id: Id0b63f7e901525b5a962d12441cda84dfeb59d52
Follow gtktiledviewer's approach for keycodes: unless it's a special
key, ask the system to provide the Unicode equivalent and send that.
This makes typing work, except for special keys.
Change-Id: If9891ddfb0d52e1160099aa00580d1b261e71e61
Otherwise FSStorageFactory::createInstanceWithArguments() would throw,
resulting in a css::configuration::CorruptedConfigurationException
later, that makes LO throw up its hands in Desktop::Main() and say that
the instset is simply corrupted, there is no point in continuing
further.
Change-Id: I3a401ee77f4fbf1a42a09c5fedd7681b4f32e952
This now also allows to specify the version number; now you want to use:
cd android/
make versionCode=<previous_version_num+1> key=<key_name> release-apk
Change-Id: I078e8dbbe671969fc3b228ac987cdb9a4a53b281