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
The problem was that for large documents if "back" was pressed quickly,
then we closed the document, but rendering thumbnails for the different
parts was still in progress.
Just make sure we don't crash when the underlying document is gone.
E/AndroidRuntime( 8902): java.lang.NullPointerException
E/AndroidRuntime( 8902): at org.libreoffice.LOKitTileProvider.thumbnail(LOKitTileProvider.java:244)
E/AndroidRuntime( 8902): at org.libreoffice.ThumbnailCreator$ThumbnailCreationTask.getThumbnail(ThumbnailCreator.java:78)
E/AndroidRuntime( 8902): at org.libreoffice.LOKitThread.createThumbnail(LOKitThread.java:170)
E/AndroidRuntime( 8902): at org.libreoffice.LOKitThread.processEvent(LOKitThread.java:148)
E/AndroidRuntime( 8902): at org.libreoffice.LOKitThread.run(LOKitThread.java:120)
Change-Id: I93e8e1ea19545ca196ef6f59d19528bb42f3676d
Previously on every rerender or draw event all tiles were
invalidated (which means they were reuploaded to GPU even when
the tiles didn't change). This was changed to only invalidate
tiles that did actually change.
Change-Id: I50a8b51b9d5b44797ac3e2dedd20cfb07fb2bb8b
It can happen that the viewport moves so fast that the tileid is
not valid anymore before it could even be rendered to.
Change-Id: I5ff7d3de6b289ca48ea8a8974705d8306e1be86b
Package name must stay "org.libreoffice" as code gen uses this
for the package name of resources (generated org.libreoffice.R)
which we reference in the source code. Usual practice is to change
the package name at packaging step. The code was changed to allow
this.
Change-Id: I4e36f46c4b8d620f3c9b20fe4fd39737c76624bc
The factory will need access to the Context to be able to transform
the resources into Strings, and the only way to receive it is from
the Activity. Implemented initialize(Context) for that reason.
Change-Id: If6e81a9c4ad73180851e43968ac97aa1e74231e7
We must ensure that two LocalFile objects pointing to the same File
are equal so the check to decide if the application button means "up"
works.
Change-Id: Ib83b34a210eec9a3f038c27d27a4e9b305c98ef9
Implemented a DrawerLayout in the main activity where the providers
are listed. Also added the class DocumentProviderFactory which keeps
the instances of the providers.
Change-Id: I821958e93b9ea1008921db321e825648a8766405