Commit graph

10472 commits

Author SHA1 Message Date
Jan Holesovsky
2174206de1 android: Don't hang after returning from a hyperlink.
It seems that it is actually the webview that gets into a weird state
after returning from the url.  Unfortunately intercepting the calls via
shouldOverrideUrlLoading() in a WebViewClient does not help, so the only
way seems to be to make sure we actually don't have any clickable URL
anywhere, and for the rest, we issue a 'HYPERLINK' postMobileMessage...

Change-Id: I62dc2cfbe867e97aec7fac5f83c4399814ef2ce4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88720
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-14 15:43:58 +01:00
Dennis Francis
0ca8e3b639 Lets have Hammer pan listeners on scroll-container...
and delegate the pan events to L.Map.TouchGesture's pan handlers.

This solves the problem that if one starts to pan the sheet from
near the right edge (where the vertical scroll div exists), no
panning takes place. This is because the vertical scroll div
is managed by custom jquery plugin and has a high z-index and
mapPane is not an ancestor of it, so mapPane will not get the
touch events even with event bubble-up. But its ancestor div
'scroll-container' still gets touch/move events and has the same
size and location as that of mapPane. So we just need to register
Hammer for pan events for scroll-container and delegate these events
to the original pan handlers of mapPane without any change to the
event coordinates.

The scroll widget and the drag-rail still function as usual as they
are succesors of scroll-container and they get all the events they
need to handle.

Change-Id: Ie4ffe07a0889c5710b2c6d09e4eb90f0671b5ad0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88712
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-14 15:26:07 +01:00
Andras Timar
a015b15e8c Remove hardcoded tab name "Sheet1" from empty spreadsheet file.
The name of the spreadsheet tab "Sheet1" was hardcoded in content.xml
as 'table:name="Sheet1"'. If we remove this attribute, the name will be
initialized according to the user interface language, which is the
desired behaviour.

Change-Id: I3b5a1a57f958cfd8f3ce573340fd76c49ce0a444
2020-02-14 13:56:12 +01:00
Jan Holesovsky
7c90a32b51 android: Copy data back if the content: URI allows that.
So that saving back to the apps that called us works (if the app gave us
the permission to do so, that is).

Change-Id: Idaf47f1d1cf9ea3fef57ac885fc6b91bc4f84be4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88632
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-14 11:03:28 +01:00
Miklos Vajna
7214fe1634 Restore "tests: Disable unstable unit test."
This restores commit 5c8a224e2d, which
disabled the unstable testReloadWhileDisconnecting testcase. Later this
was reverted by commit 4fc7bc76db, but
nothing was really done to improve the stability, so go back to disabled
for now. (Till somebody has time to debug & fix the root cause here.)

Change-Id: I26ea40a81cf9e2673f2397221c85e6f9dedc4052
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88669
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-14 09:59:23 +01:00
Tamás Zolnai
f7d232d758 cypress: Create workdir in the builddir.
Change-Id: Ief5a74412b7e12350d83b3af4345bf813288065c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88628
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 20:14:18 +01:00
Tamás Zolnai
3b500642d4 cypress: Fix build failure related to field insertion.
Use en-US locale. In the tests of date / time fields
the date format contains the locale, which was set to en-US
originally.

Change-Id: Ida56dd8a3e64b0c81d70d010f3aabf40da7d73a0
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88620
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-13 18:53:34 +01:00
Henry Castro
a420aef10d cypress: makefile: fix running specific test
buildir != srcdir

Change-Id: If3f33b546d9c6a95ba214d2d26213ca95fe52e2d
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88605
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:31:04 +01:00
Henry Castro
ff7cd32ba2 cypress: ensure English locale
My browser is Spanish by default

Change-Id: I2f3a2aaf7a6b0856c778dc9b943e23f8c168a394
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88568
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:30:29 +01:00
Henry Castro
c2de19b368 cypress: makefile: fix build dir expansion
builddir != srcdir

Change-Id: I8243fb28782bbe123b65ec86a36770323092b9f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88561
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:29:51 +01:00
Henry Castro
0c79556128 cypress: configure: fix symbolic links to files and folders
builddir != srcdir

Change-Id: I7baaba5f173d209cfb6cbbc5a61cf07a66a51eaf
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88560
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-13 15:29:16 +01:00
Tor Lillqvist
58205c9818 Bump version to 4.2.1
As a build of 4.2 has been approved for release in the App Store, we must bump
this before any new build can be uploaded, even just for TestFlight.

Change-Id: I60de542eaf6d10776ad287c8c9c5d36e0feed70c
2020-02-13 16:14:59 +02:00
Pedro Pinto Silva
6d3e88782e Fix Zoom controls:
- Percentage sometimes appears sometimes it doesn't. Removed percentage from values and instead added as suffix (via css)
- Content width changes. Fixed by setting a default minimum width

Change-Id: I4c2017ceaa98c97f06c7bba4dfe0f3aded9d605c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88608
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-13 15:08:06 +01:00
Pedro Pinto Silva
17b2e7fb2b MobileWizard: add remove icon
Change-Id: Ia617a105cfc3c371edfe2bfd0072a9e85935cca3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88607
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-13 14:32:08 +01:00
Miklos Vajna
955f662294 test, unit-each-view: increase timeout
With this, the test passes under sanitizers as well.

Change-Id: I777e177d4f171328744cf83386276752d51700cc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88584
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-13 11:13:32 +01:00
Jan Holesovsky
f7663f37a2 android: Control the keyboard appearing directly in TextInput.js.
And add one more trick: If the keyboard is not supposed to be shown, set
the read-only attribute for the textarea before the focus(), and remove
it again after the blur().

Change-Id: I5ff4d0e093cb70737af205c04951d8dd58a35831
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88587
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-13 10:28:45 +01:00
Michael Meeks
3d029cb6d0 Instead of zooming each time we resize, instead keep zoom and pan.
This helps us smoothly follow the cursor, and to adapt to less
space available when eg. the wizard or the keyboard pop up.

Ensure we do the right zoom-to-fit on the first call, interestingly
if we do not do that - we get just a single tile at the top left (que?).

Change-Id: Ib26f9b474caa631028e18e790dd50c058cbaef3b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88577
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-13 10:10:02 +01:00
Michael Meeks
6543ad21bb mobile: Delete insertion - use graphic selection rather than clip.
The clipboard population is asynchronous and might come too late.
Was missing the Delete item on Android.

Change-Id: I05515f151c8d730e2aa1cb61eceacd0c3b90c455
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88579
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
2020-02-13 07:57:18 +01:00
Michael Meeks
1bc1034543 Avoid exception dragging during shutdown.
Really TileLayer.js should have a clean on remove that dis-connects
from drag, resize etc. but it doesn't yet.

Change-Id: Ia2c2268875187a2f1115b7d357fd56ab825bb77f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88578
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-13 06:07:14 +01:00
Michael Meeks
2adc32fab5 impress: cleanup preview invalidator & avoid null this._map on close.
Change-Id: I96f9cb217c6a479dfee91dc471ab442cd2d014ae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88576
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2020-02-13 04:48:44 +01:00
Michael Meeks
faee2bdb24 Revert "Fix removal of kit procs when they are blocked"
This reverts commit 3046c5748b.

This breaks mobile apps for now. Apparently the 'close'
forces a different ordering than expected on the Child.
2020-02-13 00:33:05 +00:00
Tamás Zolnai
4fc7bc76db tests: Change the order of cypress-test and other tests.
So we can see how stable the cypress tests are. Now other unit
tests under tests folder are failing randomly, so it's hard to
monitor the cypress tests.

Enable one unstable unit test, which was disabled for the same
reason.

Change-Id: Ib1646de1647c9a2bdb769bbb6b92a5794dd7a598
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88559
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 22:46:34 +01:00
Jan Holesovsky
9497681bd9 android: Avoid a WebView-related error in the log.
Namely "WebView.destroy() called while WebView is still attached to window".

Change-Id: I6963a553ac05af6426ffe3c054bdcff28a725e3b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88571
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-12 21:52:55 +01:00
Pranam Lashkari
a867a1b79c Tile loading enabled while autoscrolling
if scrolled too fast tiles could not load until auto scrolling stops
and user had to wait for approx 2 sec and wait for tile to load

follow up for: https://gerrit.libreoffice.org/c/online/+/88072

Change-Id: I09541f5400288398ac7680c6d96e224e2ad6ef66
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88485
Tested-by: Henry Castro <hcastro@collabora.com>
Reviewed-by: Henry Castro <hcastro@collabora.com>
2020-02-12 20:00:30 +01:00
Tamás Zolnai
5d41b930e6 cypress: mobile: Organize tests based on component.
Change-Id: I49f6e76b219e4c55add05b5a8489e51c518625ab
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88553
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:42 +01:00
Tamás Zolnai
f8116809f7 cypress: mobile: Fix up calc focus test.
Change-Id: I674f7b6945b367f9c7a9541681a56f4c556c1cb7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88552
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:25 +01:00
Tamás Zolnai
f93e3a4eda cypress: mobile: font size combobox works now with core/master.
Fixed in:
18dd0254a38ca91d0d325aaecc4227724c035d87

Change-Id: I1e74d8f031cd5bfe1c74ab06693b2c39e97cc866
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88551
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 19:14:10 +01:00
Gabriel Masei
3046c5748b Fix removal of kit procs when they are blocked
Change-Id: Ifa2a2a56a305e33bb07ad622fce14f0e8b3e83eb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88464
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 16:28:10 +01:00
Weblate
32d55a6ca8 update translations
LibreOffice Online/loleaflet-ui (English (United Kingdom))
Currently translated at 100.0% (287 of 287 strings)

Change-Id: If872e0bae5b538c042a6246e139ff92b51771cfb

update translations

LibreOffice Online/loleaflet-ui (Upper Sorbian)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: I1ad3b4226f4cb9ce113a4a11e496d8b1a70c6363

update translations

LibreOffice Online/loleaflet-ui (Lower Sorbian)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: Ia519636dd33ff504fec3b78145c6b42b8e673e00

update translations

LibreOffice Online/android-lib (Welsh)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: Ie9e72c41ffa386255ba35edfa5ecfed9b6cc6c3a

update translations

LibreOffice Online/android-lib (Esperanto)
Currently translated at 28.6% (2 of 7 strings)

Change-Id: I65360f5fc7f6425aab93dcdf7628b5317eea3f4a

update translations

LibreOffice Online/android-lib (Portuguese (Brazil))
Currently translated at 100.0% (7 of 7 strings)

Change-Id: If87ad3131762c217cc0a51988305d22029c3a2fd

update translations

LibreOffice Online/android-lib (Spanish)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: I16079ade29da13c8194f47c0bde7e7620cf9b133

update translations

LibreOffice Online/loleaflet-ui (Portuguese (Brazil))
Currently translated at 100.0% (287 of 287 strings)

Change-Id: I3afb970ab5e682b9a5cedf90170506ece4f3ef1d

update translations

LibreOffice Online/loleaflet-ui (Basque)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: I899178b428f813f64660a03d3767afec4930598d

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: Iba756ea0887e0ae01ef38049e41bfa12ddff08be

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: I21686dc43e08dfdb9a0b45dfe30577ad749c37c4

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 91.6% (263 of 287 strings)

Change-Id: Ibd68c1320bb9a746800a50f4744eea79c89891d1

update translations

LibreOffice Online/loleaflet-ui (Welsh)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: I14dfa3a452d0c4d3e8f9406f02841fe1a505c921

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 98.3% (282 of 287 strings)

Change-Id: Ib4de84246aa0fe8c9ceb6e2386910c58e4364eba

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: Ib7ad2706e29d04ed0a8d50e4ba43d3dc78b86585

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 34.8% (100 of 287 strings)

Change-Id: I8d2ebfc31d2ac706ff64602d984bd438b3cec39d

update translations

LibreOffice Online/loleaflet-ui (Hungarian)
Currently translated at 100.0% (287 of 287 strings)

Change-Id: Ieb0d3d4adf1abb2e2bd20b9ddc6f203657d7d3cb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88518
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 15:15:22 +01:00
Michael Meeks
1fd62785c3 android: remove obsolete drawLayout animation.
Fixes crash on pressing 'new document'

Change-Id: Ibc1aecbb2e4efb5920da564fa21cf754bf69cfa3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88539
Tested-by: Mert Tümer <mert.tumer@collabora.com>
Reviewed-by: Mert Tümer <mert.tumer@collabora.com>
2020-02-12 15:06:03 +01:00
Pedro Pinto Silva
e71972bef1 Mobile: MobileWizard: swipe/scroll indicator: Avoid showing indicator when in prsence of window.mobileMenuWizard
Change-Id: I2430f8c3732d42b24abc7d2e9b83d71659260573
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88529
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-12 13:48:51 +01:00
Pedro Pinto Silva
45d053d9d1 Mobile: Hamburger menu: add missing toggle icon and also add default background when there is no image (top level)
Change-Id: I894bb25a9198a74bf1fa43d6c958e23878e0a0fb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88525
Tested-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
Reviewed-by: Pedro Pinto da Silva <pedro.silva@collabora.com>
2020-02-12 13:29:33 +01:00
Tamás Zolnai
8f4143dd74 cypress: mobile: Update shape related focus test.
One tap on a shape does not move the focus on the document
since this commit:
9fcd4d3777

Change-Id: I5d176be7c5dd8296c642c41b8d1e2fcf5945ab27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88521
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 13:26:33 +01:00
Tamás Zolnai
aa9d676cd9 cypress: mobile: Test focus on second tap in Calc.
Change-Id: I1ce1b45f17f1d75c4bc7c1a6a63dfd05f2803612
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88520
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-12 13:26:22 +01:00
Weblate
d4fbeaccbd Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: I8d4703bc4654f4d1c9d34d9f37a4c141a98b2b07
Translation: LibreOffice Online/loleaflet-help
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-help/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88517
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:23:55 +01:00
Weblate
e1fc653c9f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Ie88f8cffa8226beff819bd7229b9a610a81c4de4
Translation: LibreOffice Online/loleaflet-ui
Translate-URL: https://weblate.documentfoundation.org/projects/libo_online/loleaflet-ui/
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88516
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:23:37 +01:00
Weblate
fefc477f3b update translations
LibreOffice Online/android-lib (Bulgarian)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: I00530286bf66db4b7907b6f6bf08693622a6d7fd

update translations

LibreOffice Online/android-lib (Lower Sorbian)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: I57645233bd8763b1fb53b4d038a1d9cd433b52d5

update translations

LibreOffice Online/android-lib (Basque)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: Idbb54d4b1759c459a69ef84a9a264e366e697520

update translations

LibreOffice Online/android-lib (Upper Sorbian)
Currently translated at 100.0% (7 of 7 strings)

Change-Id: Ie9b822558edbec57ef62f8886910f129e1fe0f65

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 71.9% (299 of 416 strings)

Change-Id: I2a807adbc4dcff0aead5014e7e4aec0f98ba3a49

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 68.5% (285 of 416 strings)

Change-Id: Iffff79ac0f5567550ec4d249ccaa4a28e679d64e

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 66.6% (277 of 416 strings)

Change-Id: Ia9515c1195813b68f834fa72f3c02c9849ba3f1e

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 69.7% (290 of 416 strings)

Change-Id: I3ca0aeeb7bf3c55133df1f8836cce51038289a10
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88436
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:21:00 +01:00
Andras Timar
e24eda5d64 tdf#129928 add a comment
Change-Id: I3e9714445b8144445d71113450827dd72bcf0ba5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88441
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:20:01 +01:00
Andras Timar
b9917890b1 loleaflet: updated pot files
Change-Id: I0c2d249677575a034552a114096665668b0c9429
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88515
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:18:58 +01:00
Dennis Francis
5460aa108c Add 'Delete' to context menu on non-text selection
The context menu items are obtained from core. Add a 'Delete'
entry to the context-menu json data just after 'Paste' only if
the selection is graphic and online is in Mobile mode.

Change-Id: Ie5810038bbca5d8ace01b236508b2dd4d31ca2a7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88510
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-12 11:18:40 +01:00
mert
475c7cd42e android: Notify the user about saving the document on close
Change-Id: Ie96bd1918d2d166df096bec5e2c6489f819b6f13
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88102
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-11 23:29:27 +01:00
Jan Holesovsky
7a83e165e3 android: Cleanup properly before returning from the activity.
Without this, it was possible to return to the previous activity without
a proper cleanup which lead to a crash later when restarting the
activity too quickly.

Change-Id: I1003a8eb0ef271d3499b07ff9f111839f48fefac
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88478
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-11 23:25:11 +01:00
Tomaž Vajngerl
78d8906153 android: process activity result only when result is OK
This happens when the used hits the back button when asked for
the "save as" file location. Request is still sent but the result
code is not OK, and the intent is null.

Change-Id: Id3c483dc0e1e0114ff8a933072892b1f8b7c29f8
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88469
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2020-02-11 18:55:23 +01:00
Tomaž Vajngerl
65de5cc728 android: Implement export document on Android
Uses ACTION_CREATE_DOCUMENT activity for the file selection
dialog. Then calls saveAs to a temp file and copies the content
to the outpuStream for the result URI (necessary because URI may
not be a file).

Change-Id: I6df7db5583e546a53c7cfb8c7ea16281ab861926
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88454
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-11 17:48:29 +01:00
Ashod Nakashian
5720a4be80 leaflet: hide the keyboard during and after dragging the document
Change-Id: I5228358353cf04b838a90fc53f5987e9ac623f47
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88155
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-11 16:20:14 +01:00
Ashod Nakashian
9fcd4d3777 leaflet: second tap in cell starts editing
Single taping and double taping now enter
cell-edit mode and show the keyboard.

And improve graphic selection and adding text.

Change-Id: Ib38aac3165078cf143009d9ace530027bf630432
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88034
Tested-by: Jan Holesovsky <kendy@collabora.com>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
2020-02-11 15:47:22 +01:00
Tamás Zolnai
5c8a224e2d tests: Disable unstable unit test.
Half of the Jenkins build fails beacuse of this test.

Error message, we've got during run:
uncaught exception of type std::exception (or derived).
- error: cmd=storage kind=loadfailed

Change-Id: I42bb502a5aac96218b4ca772c1d0def398144797
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88443
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
2020-02-11 14:56:30 +01:00
Weblate
7ba3745e30 update translations
LibreOffice Online/loleaflet-help (Galician)
Currently translated at 62.0% (258 of 416 strings)

Change-Id: Ibb39da6d7cc28d2ea26163fc46068d3c28eb2917

update translations

LibreOffice Online/android-app (Hungarian)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I8f8dc7485eb4fc2cfbf2e881a3fe61362833248a

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 59.9% (249 of 416 strings)

Change-Id: If207a96a6605d68fa5a770869e1ce534e3ba2dbd

update translations

LibreOffice Online/loleaflet-help (English (United Kingdom))
Currently translated at 49.3% (205 of 416 strings)

Change-Id: Iae659fb35a1a281f924767c0c5cefaf3d4c12d09

update translations

LibreOffice Online/android-app (Turkish)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I01c076644a7db1003eea085892fc6f6e09dca36b

update translations

LibreOffice Online/loleaflet-help (Hungarian)
Currently translated at 53.1% (221 of 416 strings)

Change-Id: I38093b903335e0746a20da196f49a61a9150aea0

update translations

LibreOffice Online/loleaflet-help (Upper Sorbian)
Currently translated at 63.9% (266 of 416 strings)

Change-Id: I9389ce6c16a5f8b8cc39059c723ca1f079a48f82

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 68.3% (284 of 416 strings)

Change-Id: Ic63aeec7fa9800861a4717dc22949486fb8e3931

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 98.9% (280 of 283 strings)

Change-Id: I508b45c587d89c704970cc4921a2864448f7b7d2

update translations

LibreOffice Online/android-app (French)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I36670af0671a156b22d94fcc329356ee19c9936e

update translations

LibreOffice Online/android-app (Dutch)
Currently translated at 99.0% (100 of 101 strings)

Change-Id: I492185682170971b1ecc33a81aa1b17a3a637f4c

update translations

LibreOffice Online/loleaflet-help (Dutch)
Currently translated at 54.1% (225 of 416 strings)

Change-Id: I32739b1a97e0c0e488b78c6bb66790e9ea4ad72c

update translations

LibreOffice Online/android-app (Czech)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: Ifb1c55a159c3181b54d50c0118b292942e023c4f

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I6a1085c256398877ff10e7763e83ace47e7ad583

update translations

LibreOffice Online/loleaflet-ui (Portuguese)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I9a527aee6f5040871d57511f33f05f1b79930a17

update translations

LibreOffice Online/loleaflet-help (Catalan)
Currently translated at 67.1% (279 of 416 strings)

Change-Id: I934f9b03d18bb93b22c33a1a484c031bd4610dda

update translations

LibreOffice Online/android-app (Portuguese (Brazil))
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I442c912c23b59c31524f8e7944b763e35f286033

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 100.0% (101 of 101 strings)

Change-Id: I4f7bbb44a8b28f043156d4e2863c2118785ce8b8

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 56.7% (236 of 416 strings)

Change-Id: I59dfd04c06b201bd56e6a20f5eec4c3e18cbffda

update translations

LibreOffice Online/loleaflet-ui (Galician)
Currently translated at 100.0% (283 of 283 strings)

Change-Id: I5bb296a2d1b00f9fa0faa07bd1d5d4f743497c4f

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 51.9% (216 of 416 strings)

Change-Id: Iec9d735c6b262fa124d2c3c373475b640211ddeb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88153
Tested-by: Andras Timar <andras.timar@collabora.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
2020-02-11 11:09:45 +01:00
Jan Holesovsky
29eb7ffe92 android: The full-screen presentations shouldn't show the cut-outs.
They could hide something important in the presentation :-)

At the same time, I believe it will fix the following crash on older
devices, because we did not have the FullScreenStyle for pre-v28:

02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: FATAL EXCEPTION: main
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: Process: com.collabora.libreoffice.snapshot, PID: 30480
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.collabora.libreoffice.snapshot/org.libreoffice.androidlib.SlideShowActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2821)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2899)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread.-wrap11(Unknown Source:0)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1625)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6558)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:469)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:826)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor(AppCompatDelegateImpl.java:555)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor(AppCompatDelegateImpl.java:518)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:466)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:141)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at org.libreoffice.androidlib.SlideShowActivity.onCreate(SlideShowActivity.java:36)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7256)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:7247)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2774)
02-10 23:11:23.179 10189 30480 30480 E AndroidRuntime: ... 9 more

Change-Id: I756cc99658c24573381b48985835db515b930965
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88430
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
2020-02-11 10:24:12 +01:00
Miklos Vajna
8b82efd285 test: increase timeout of UnitClose
This now failed under sanitizers due to a timeout. Make the new limit 2
minutes, sanitizers require 51 seconds for me (so we did not fit into
the 30 seconds default).

Change-Id: Ib8edb002b50e55b605152be5d50574c396964c25
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88424
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2020-02-11 10:02:17 +01:00