[Libreoffice-commits] online.git: android/app loleaflet/po

2020-10-20 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bg/strings.xml |5 +
 android/app/src/main/res/values-cs/strings.xml |5 +
 android/app/src/main/res/values-cy/strings.xml |5 +
 android/app/src/main/res/values-de/strings.xml |5 +
 android/app/src/main/res/values-fr/strings.xml |5 +
 android/app/src/main/res/values-is/strings.xml |5 +
 android/app/src/main/res/values-sl/strings.xml |5 +
 android/app/src/main/res/values-sv/strings.xml |5 +
 android/app/src/main/res/values-uk/strings.xml |5 +
 loleaflet/po/help-fr.po|   16 +---
 loleaflet/po/help-is.po|   10 +-
 loleaflet/po/help-uk.po|   34 
 loleaflet/po/ui-bg.po  |4 -
 loleaflet/po/ui-cs.po  |4 -
 loleaflet/po/ui-cy.po  |4 -
 loleaflet/po/ui-de.po  |4 -
 loleaflet/po/ui-dsb.po |4 -
 loleaflet/po/ui-en_GB.po   |4 -
 loleaflet/po/ui-fr.po  |   96 +
 loleaflet/po/ui-hsb.po |4 -
 loleaflet/po/ui-is.po  |   24 ++
 loleaflet/po/ui-pl.po  |4 -
 loleaflet/po/ui-pt_BR.po   |6 -
 loleaflet/po/ui-sk.po  |4 -
 loleaflet/po/ui-sl.po  |4 -
 loleaflet/po/ui-sv.po  |4 -
 loleaflet/po/ui-uk.po  |4 -
 27 files changed, 141 insertions(+), 138 deletions(-)

New commits:
commit 201f9db4f326b1067bfa75e39e8f3b8ef7ab17b1
Author: Weblate 
AuthorDate: Sun Oct 18 22:35:38 2020 +0200
Commit: Christian Lohmaier 
CommitDate: Tue Oct 20 16:18:38 2020 +0200

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 65.5% (274 of 418 strings)

Change-Id: I5b5d5f1be21757ac8a46c1953bcd0725b45251f9

update translations

LibreOffice Online/android-app (Icelandic)
Currently translated at 100.0% (107 of 107 strings)

Change-Id: Id6dfcacc8297527d549c7533a64ea2a6254fff67

update translations

LibreOffice Online/loleaflet-help (Icelandic)
Currently translated at 59.3% (248 of 418 strings)

Change-Id: I9b610cdd30b89a24794ded225e5223c46cc135ab

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 100.0% (348 of 348 strings)

Change-Id: I634d30d7a862940dad9481a51f2c3f59ab591bd7

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 64.3% (269 of 418 strings)

Change-Id: I681958f717c93c4f0224c7bdf2156c57219696a8

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (107 of 107 strings)

Change-Id: I82be3293a74d012699a732b2350303eee4a01d69

update translations

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

Change-Id: Ia7d9b62de4a5e04d77f82ebf03f37cc54d476a72

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (348 of 348 strings)

Change-Id: I1a5005e4fd245718c823b5570ff6a745b0b665d6

update translations

LibreOffice Online/loleaflet-ui (Czech)
Currently translated at 100.0% (348 of 348 strings)

Change-Id: I7c6b095a2005518dce3d16a927a0f024f05b40ad

update translations

LibreOffice Online/android-app (Welsh)
Currently translated at 100.0% (107 of 107 strings)

Change-Id: I784ef4dcda1010f0634746599b3cb428e9df6a39

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (348 of 348 strings)

Change-Id: Ibba956cafdd6279cd63646aef3ba5da388db490f

update translations

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

Change-Id: I40d52007e145305af20b83ce06c7bc9b2be2b87f

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (107 of 107 strings)

Change-Id: I5fea8e965f90f33213639f36aa1a86408d76bf59

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 62.9% (263 of 418 strings)

Change-Id: Ic830478b043651142e5346cdd4ae1643be0c206e

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 100.0% (348 of 348 strings)

Change-Id: I24e569f8baa4a93cc977cb89798c285ac00f3480

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (107 of 107 strings)

Change-Id: 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-09-30 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ast/strings.xml|3 
 android/app/src/main/res/values-ca/strings.xml |5 +
 android/app/src/main/res/values-dsb/strings.xml|5 +
 android/app/src/main/res/values-en-rGB/strings.xml |5 +
 android/app/src/main/res/values-es/strings.xml |5 +
 android/app/src/main/res/values-hsb/strings.xml|5 +
 android/app/src/main/res/values-hu/strings.xml |5 +
 android/app/src/main/res/values-pl/strings.xml |5 +
 android/app/src/main/res/values-pt-rBR/strings.xml |5 +
 android/app/src/main/res/values-sk/strings.xml |5 +
 android/app/src/main/res/values-zh-rCN/strings.xml |5 +
 android/app/src/main/res/values-zh-rTW/strings.xml |5 +
 android/lib/src/main/res/values-pt/strings.xml |1 
 android/lib/src/main/res/values-zh-rTW/strings.xml |5 -
 loleaflet/po/help-eo.po|   12 --
 loleaflet/po/help-it.po|   14 +--
 loleaflet/po/help-pt.po|   12 +-
 loleaflet/po/ui-ab.po  |6 +
 loleaflet/po/ui-af.po  |6 +
 loleaflet/po/ui-am.po  |6 +
 loleaflet/po/ui-an.po  |6 +
 loleaflet/po/ui-anp.po |6 +
 loleaflet/po/ui-ar.po  |6 +
 loleaflet/po/ui-as.po  |6 +
 loleaflet/po/ui-ast.po |8 +
 loleaflet/po/ui-az.po  |6 +
 loleaflet/po/ui-bar.po |6 +
 loleaflet/po/ui-be.po  |6 +
 loleaflet/po/ui-bg.po  |6 +
 loleaflet/po/ui-bm.po  |6 +
 loleaflet/po/ui-bn.po  |6 +
 loleaflet/po/ui-bn_IN.po   |6 +
 loleaflet/po/ui-bo.po  |6 +
 loleaflet/po/ui-br.po  |6 +
 loleaflet/po/ui-brx.po |6 +
 loleaflet/po/ui-bs.po  |6 +
 loleaflet/po/ui-ca-valencia.po |6 +
 loleaflet/po/ui-ca.po  |8 +
 loleaflet/po/ui-ce.po  |6 +
 loleaflet/po/ui-cs.po  |6 +
 loleaflet/po/ui-cy.po  |6 +
 loleaflet/po/ui-da.po  |6 +
 loleaflet/po/ui-de.po  |6 +
 loleaflet/po/ui-dgo.po |6 +
 loleaflet/po/ui-dsb.po |6 +
 loleaflet/po/ui-dz.po  |6 +
 loleaflet/po/ui-el.po  |6 +
 loleaflet/po/ui-en_AU.po   |6 +
 loleaflet/po/ui-en_GB.po   |6 +
 loleaflet/po/ui-en_ZA.po   |6 +
 loleaflet/po/ui-eo.po  |   28 ++
 loleaflet/po/ui-es.po  |8 +
 loleaflet/po/ui-et.po  |6 +
 loleaflet/po/ui-eu.po  |   28 ++
 loleaflet/po/ui-fa.po  |6 +
 loleaflet/po/ui-fi.po  |6 +
 loleaflet/po/ui-fr.po  |6 +
 loleaflet/po/ui-fur.po |6 +
 loleaflet/po/ui-fy.po  |6 +
 loleaflet/po/ui-ga.po  |6 +
 loleaflet/po/ui-gbm.po |6 +
 loleaflet/po/ui-gd.po  |6 +
 loleaflet/po/ui-gl.po  |6 +
 loleaflet/po/ui-gu.po  |6 +
 loleaflet/po/ui-gug.po |6 +
 loleaflet/po/ui-he.po  |6 +
 loleaflet/po/ui-hi.po  |6 +
 loleaflet/po/ui-hr.po  |6 +
 loleaflet/po/ui-hsb.po |6 +
 loleaflet/po/ui-hu.po  |8 +
 loleaflet/po/ui-hy.po  |6 +
 loleaflet/po/ui-id.po  |6 +
 loleaflet/po/ui-is.po  |6 +
 loleaflet/po/ui-it.po  |   30 ++
 loleaflet/po/ui-ja.po  |6 +
 loleaflet/po/ui-jv.po  |6 +
 loleaflet/po/ui-ka.po  |6 +
 loleaflet/po/ui-kab.po |6 +
 loleaflet/po/ui-kk.po  |6 +
 loleaflet/po/ui-kl.po  |6 +
 loleaflet/po/ui-km.po  |6 +
 loleaflet/po/ui-kmr-Latn.po 

[Libreoffice-commits] online.git: android/app

2020-09-28 Thread mert (via logerrit)
 android/app/build.gradle   
|2 
 android/app/src/main/AndroidManifest.xml   
|2 
 android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
|   70 +-
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   14 +-
 android/app/src/main/res/drawable/ic_folder_black_24dp.xml 
|3 
 android/app/src/main/res/layout/activity_document_browser.xml  
|   21 +--
 android/app/src/main/res/layout/file_explorer_grid_item.xml
|3 
 android/app/src/main/res/layout/file_list_item.xml 
|4 
 android/app/src/main/res/layout/theme_selection.xml
|   44 ++
 android/app/src/main/res/values/strings.xml
|7 +
 android/app/src/main/res/values/themes.xml 
|7 -
 android/app/src/main/res/xml/libreoffice_preferences.xml   
|   13 +
 12 files changed, 167 insertions(+), 23 deletions(-)

New commits:
commit 5c023938a366f44bbe922214fb8727146d18e127
Author: mert 
AuthorDate: Wed May 6 15:15:32 2020 +0300
Commit: Mert Tumer 
CommitDate: Mon Sep 28 14:12:41 2020 +0200

android: enable Dark Theme for Dark Mode changes

Change-Id: I631d31558ae9afac9585d12d66237bc04a761555
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/93563
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Mert Tumer 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 627ac6ca9..aa8f5ca16 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -67,7 +67,7 @@ android {
 
 dependencies {
 implementation fileTree(dir: 'libs', include: ['*.jar'])
-implementation 'androidx.appcompat:appcompat:1.0.2'
+implementation 'androidx.appcompat:appcompat:1.1.0'
 implementation 'androidx.core:core:1.0.2'
 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 4e8723706..a3262 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -32,7 +32,7 @@
 
 
 
 
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
index c51d098af..701ae8350 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
@@ -11,29 +11,97 @@ package org.libreoffice.androidapp;
 
 import android.content.SharedPreferences;
 import android.os.Bundle;
-
+import android.view.View;
+import android.widget.RadioGroup;
+import androidx.appcompat.app.AlertDialog;
 import androidx.appcompat.app.AppCompatActivity;
+import androidx.appcompat.app.AppCompatDelegate;
+import androidx.preference.Preference;
 import androidx.preference.PreferenceFragmentCompat;
+import org.libreoffice.androidapp.ui.LibreOfficeUIActivity;
 
 public class SettingsActivity extends AppCompatActivity {
+
+private static SharedPreferences prefs;
+
 @Override
 protected void onCreate(Bundle savedInstanceState) {
+setTheme(R.style.LibreOfficeTheme_Base);
 super.onCreate(savedInstanceState);
 
 // Display the fragment as the main content.
 getSupportFragmentManager().beginTransaction()
 .replace(android.R.id.content, new SettingsFragment())
 .commit();
+prefs = getSharedPreferences(LibreOfficeUIActivity.EXPLORER_PREFS_KEY, 
MODE_PRIVATE);
 }
 
 public static class SettingsFragment extends PreferenceFragmentCompat 
implements SharedPreferences.OnSharedPreferenceChangeListener {
 
+int dayNightMode;
+int selectedThemeBtnId;
 @Override
 public void onCreatePreferences(Bundle savedInstanceState, String 
rootKey) {
 addPreferencesFromResource(R.xml.libreoffice_preferences);
 if (!BuildConfig.DEBUG) {
 findPreference("ENABLE_SHOW_DEBUG_INFO").setVisible(false);
 }
+Preference themePreference = findPreference("THEME_SELECTION");
+
+dayNightMode = AppCompatDelegate.getDefaultNightMode();
+selectedThemeBtnId = R.id.radioBtn_default;
+switch (dayNightMode) {
+case AppCompatDelegate.MODE_NIGHT_YES:
+themePreference.setSummary(R.string.theme_dark);
+selectedThemeBtnId = R.id.radioBtn_dark;
+break;
+case AppCompatDelegate.MODE_NIGHT_NO:
+

[Libreoffice-commits] online.git: android/app

2020-09-25 Thread Jan Holesovsky (via logerrit)
 android/app/build.gradle   
  |1 
 
android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
 |   18 +-
 2 files changed, 3 insertions(+), 16 deletions(-)

New commits:
commit 109c760c7eb4f94842cb7f502c1cd40349e23929
Author: Jan Holesovsky 
AuthorDate: Fri Sep 25 17:49:17 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Fri Sep 25 17:52:02 2020 +0200

android: Make sure we are correctly installed...

...and don't miss any needed split APKs; that can happen when people are
side-loading the APK, and leads to unpredictable crashes (for which we
are then blamed).

Change-Id: If3f24e69ab88ec8700190d7e36eaf1b25d3c3e27
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103413
Tested-by: Jan Holesovsky 
Reviewed-by: Jan Holesovsky 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 3d364a40e..627ac6ca9 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -72,6 +72,7 @@ dependencies {
 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
 implementation 'com.google.android.material:material:1.1.0-alpha04'
+implementation 'com.google.android.play:core:1.8.0'
 
 //before changing the version please see 
https://issuetracker.google.com/issues/111662669
 implementation 'androidx.preference:preference:1.1.0-alpha01'
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
index 382943ea4..abbe58af6 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
@@ -9,23 +9,9 @@
 
 package org.libreoffice.androidapp;
 
-import android.app.Application;
-import android.content.Context;
-import android.os.Handler;
+import 
com.google.android.play.core.missingsplits.MissingSplitsDetectingApplication;
 
-public class LibreOfficeApplication extends Application {
-
-private static Handler mainHandler;
-
-public LibreOfficeApplication() {
-}
-
-public static Handler getMainHandler() {
-if (mainHandler == null)
-mainHandler = new Handler();
-
-return mainHandler;
-}
+public class LibreOfficeApplication extends MissingSplitsDetectingApplication {
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-09-25 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 0f70961221677c379a46793fa2c0cf192bed0339
Author: Jan Holesovsky 
AuthorDate: Fri Sep 25 17:13:32 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Fri Sep 25 17:19:42 2020 +0200

android: The last document must be removed from the list too.

Before the fix, when there was just one document in the recent list and
the user has removed it, it re-appeared again after restart of the app.

Change-Id: I29ce66aac3c9ff07f320ecb21fd1c07d8d467af5
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/103409
Tested-by: Jan Holesovsky 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 80e5efeb6..a366c 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -662,9 +662,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 }
 }
 
-if (!joined.isEmpty()) {
-prefs.edit().putString(RECENT_DOCUMENTS_KEY, joined).apply();
-}
+prefs.edit().putString(RECENT_DOCUMENTS_KEY, joined).apply();
 
 recentRecyclerView.setAdapter(new RecentFilesAdapter(this, 
recentUris));
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-09-02 Thread Weblate (via logerrit)
 android/app/src/main/res/values-af/strings.xml |   33 +
 android/app/src/main/res/values-da/strings.xml |  103 +
 android/lib/src/main/res/values-af/strings.xml |1 
 android/lib/src/main/res/values-da/strings.xml |   16 
 android/lib/src/main/res/values-sv/strings.xml |1 
 loleaflet/po/help-da.po|  446 -
 loleaflet/po/ios-da.po |   15 
 loleaflet/po/ui-da.po  |  276 ++-
 loleaflet/po/ui-ko.po  |8 
 loleaflet/po/ui-sv.po  |  108 ++
 10 files changed, 539 insertions(+), 468 deletions(-)

New commits:
commit d0d3ce67039596dc6e6f5f792ec8eec83758426a
Author: Weblate 
AuthorDate: Tue Sep 1 00:23:49 2020 +0200
Commit: Andras Timar 
CommitDate: Wed Sep 2 16:14:30 2020 +0200

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I5983a2cdddbbb2b67ebc0b5b7e202861e984a89b

update translations

LibreOffice Online/android-lib (Danish)
Currently translated at 100.0% (13 of 13 strings)

Change-Id: Ifd4c69312f949ccfc39d016f46ca936ecd7817ba

update translations

LibreOffice Online/ios (Danish)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I0050a37ac2cd97632de3e4963938c20321be3dcc

update translations

LibreOffice Online/loleaflet-help (Danish)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I182e8f90e1d017debb37955dbd503901ce5014c5

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 65.6% (67 of 102 strings)

Change-Id: Ie3d81e1f9ae8e6c03db183f1bb858363a089a126

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 65.6% (67 of 102 strings)

Change-Id: Ibd69d877a44ac0e393da7dcc7c84d8ede13d43f9

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 58.8% (60 of 102 strings)

Change-Id: I7d9cbb1031288c9d642b0fb7790408cee2003595

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 58.8% (60 of 102 strings)

Change-Id: I83dbc5fbeb2fee018298dad702e5145ee598f68a

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 57.8% (59 of 102 strings)

Change-Id: Ifd294c592ca4b68a99621fb5a81837d3720ed50e

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 57.8% (59 of 102 strings)

Change-Id: I9f1bd0e072f851ca5e49122e4d9b39fe74dafbda

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 53.9% (55 of 102 strings)

Change-Id: I9887dda9ebd8e808824238e13abfede182560f81

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 53.9% (55 of 102 strings)

Change-Id: Id92b0ff6075be0ab11a41cd3e341b6016c1c1cb6

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 52.9% (54 of 102 strings)

Change-Id: I5c1d38ffd5e6b8de21833be4196da4a41b4068b1

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 52.9% (54 of 102 strings)

Change-Id: Id15460c60cfe3189b2828b624b5264ba615bf4cb

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 49.0% (50 of 102 strings)

Change-Id: I033216c4b00c864c95f1b3ad46434e784127676d

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 49.0% (50 of 102 strings)

Change-Id: Ic37005337167957356790e61ec86d15e9c10d1d9

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 46.0% (47 of 102 strings)

Change-Id: I66aead7d369a7e3b3525b486eb3bea82d315f731

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 46.0% (47 of 102 strings)

Change-Id: Ib381c65bffe625314b03262c81d351b6434087e5

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 45.0% (46 of 102 strings)

Change-Id: I868f7a693672fdd5a5d8919e26a7e5538bc95188

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 45.0% (46 of 102 strings)

Change-Id: Ia4541ee4e600c721ca0ac51f6630f0e6b0bd8dfd

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 44.1% (45 of 102 strings)

Change-Id: I7e8385aafc50dada0e58dbc3394f3436a1f7225e

update translations

LibreOffice Online/android-app 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-08-28 Thread Weblate (via logerrit)
 android/app/src/main/res/values-da/strings.xml |4 -
 android/app/src/main/res/values-ko/strings.xml |   19 ++
 android/lib/src/main/res/values-pt-rBR/strings.xml |1 
 loleaflet/po/help-es.po|6 -
 loleaflet/po/ui-de.po  |   64 +++--
 loleaflet/po/ui-pt_BR.po   |   12 +--
 6 files changed, 56 insertions(+), 50 deletions(-)

New commits:
commit 2422cc373895c0d3ee23ef3728b474f2ff6e4d9e
Author: Weblate 
AuthorDate: Sat Aug 22 06:28:57 2020 +0200
Commit: Andras Timar 
CommitDate: Fri Aug 28 12:07:37 2020 +0200

update translations

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

Change-Id: I0933cc28a6570b91b65a0f761dc883546c9ed0ae

update translations

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

Change-Id: I504ea0faf6e68b7b5d8d44512fe8bb93d52c2723

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (344 of 344 strings)

Change-Id: I62651c9a4ec680370b1e2e0db4bdac1f53679507

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I7d9f1eca068faaf4fbe730dc4f7a4f6009fd389d

update translations

LibreOffice Online/android-app (Korean)
Currently translated at 19.6% (20 of 102 strings)

Change-Id: I0d462951fe7a928931002feedbbd019db3cd5a1f

update translations

LibreOffice Online/android-app (Korean)
Currently translated at 19.6% (20 of 102 strings)

Change-Id: I2229085507efd42a0c6e0f7232e4cb044bf1340e

update translations

LibreOffice Online/android-app (Korean)
Currently translated at 19.6% (20 of 102 strings)

Change-Id: I9cb8da6624db1374ec5b60745a5a1d228ebd7463

update translations

LibreOffice Online/android-app (Danish)
Currently translated at 0.9% (1 of 102 strings)

Change-Id: I1172754fcf8b77e7a8bfd5a5c27debde97a2ff2b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100928
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-da/strings.xml 
b/android/app/src/main/res/values-da/strings.xml
index a6b3daec9..7801c538f 100644
--- a/android/app/src/main/res/values-da/strings.xml
+++ b/android/app/src/main/res/values-da/strings.xml
@@ -1,2 +1,4 @@
 
-
\ No newline at end of file
+
+Indstillinger
+
\ No newline at end of file
diff --git a/android/app/src/main/res/values-ko/strings.xml 
b/android/app/src/main/res/values-ko/strings.xml
index a2f1dea3f..7320b53f5 100644
--- a/android/app/src/main/res/values-ko/strings.xml
+++ b/android/app/src/main/res/values-ko/strings.xml
@@ -4,4 +4,23 @@
 $APP_NAME 은 현대적이며, 사용하기 쉬운 오픈소스 제품군이다. 이 
제품군은 워드 프로세서, 스프레드시트, 프레젠테이션 등등이 포함되어 있습니다.
 버전: %1$s, 빌드 ID: %2$s
 설정
+파일 생성 실패
+동일한 이름을 가진 파일이 이미 존재하며, 덮어 씁니다.
+이 파일은 읽기 전용이며, 저장이 
비활성화됩니다.
+항목 없음
+도구 모음의 폴더 아이콘을 사용하여 파일을 여십시오.
+버전 : %1$s
+\n온라인 git-hash : %2$s
+\n핵심 git-hash : %3$s
+파일 관리자 레이아웃
+파일을 그리드 또는 리스트로 봅니다.
+파일을 불러올 방법을 선택 하십시오 : A-Z, 크기 또는 
날짜
+숨겨진 파일/폴더 표시 가능
+숨겨진 파일/폴더
+파일 관리자 설정
+그리드
+로드할 파일을 결정하지 못하였습니다
+저장 권한이 필요합니다
+편집기 설정
+목록
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-pt-rBR/strings.xml 
b/android/lib/src/main/res/values-pt-rBR/strings.xml
index 98b088211..c5dcc247c 100644
--- a/android/lib/src/main/res/values-pt-rBR/strings.xml
+++ b/android/lib/src/main/res/values-pt-rBR/strings.xml
@@ -14,4 +14,5 @@
 Obrigado por usar %1$s!
 Mais tarde
 Saindo...
+Este arquivo não pode ser salvo 
neste local, abrindo-o em só leitura. Mova-o para os arquivos de Play para 
poder ler e gravar o arquivo.
 
\ No newline at end of file
diff --git a/loleaflet/po/help-es.po b/loleaflet/po/help-es.po
index a9f8f6313..d0c811fb8 100644
--- a/loleaflet/po/help-es.po
+++ b/loleaflet/po/help-es.po
@@ -3,7 +3,7 @@ msgstr ""
 "Project-Id-Version: \n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2020-03-31 22:32+0200\n"
-"PO-Revision-Date: 2020-03-22 00:15+\n"
+"PO-Revision-Date: 2020-08-19 17:35+\n"
 "Last-Translator: Adolfo Jayme Barrientos \n"
 "Language-Team: Spanish 
\n"
 "Language: es\n"
@@ -11,7 +11,7 @@ msgstr ""
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "Plural-Forms: nplurals=2; plural=n != 1;\n"
-"X-Generator: Weblate 3.10.3\n"
+"X-Generator: Weblate 4.1.1\n"
 "X-Pootle-Path: /es/libo_online/loleaflet-help-es.po\n"
 "X-Pootle-Revision: 3713610\n"
 
@@ -1503,7 +1503,7 @@ msgstr "¿Cómo salir del %productName sin gu

[Libreoffice-commits] online.git: android/app

2020-08-06 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |  103 --
 android/app/src/main/res/layout/activity_document_browser.xml  
|1 
 2 files changed, 45 insertions(+), 59 deletions(-)

New commits:
commit 2508d83e509c7f748afdb784799b2ebfc572e9d1
Author: Jan Holesovsky 
AuthorDate: Thu Aug 6 14:41:37 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Thu Aug 6 15:40:09 2020 +0200

android: Make the "create new file" FAB always visible.

There were reports that it didn't appear after a new installation.
I failed to reproduce that, but I can imagine it might have happened,
seeing the code.  But it is not important to hide it any more, because
we are using the Content providers now.

When at this, make the FAB rotate the other direction, to look more
consistent with the appearing / disappearing buttons.

Change-Id: I92e01c7190405c2d4869edd50a9da011558306af
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/100219
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index e89913628..80e5efeb6 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -442,7 +442,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 if (isFabMenuOpen)
 return;
 
-
ViewCompat.animate(editFAB).rotation(45f).withLayer().setDuration(300).setInterpolator(new
 OvershootInterpolator(0f)).start();
+
ViewCompat.animate(editFAB).rotation(-45f).withLayer().setDuration(300).setInterpolator(new
 OvershootInterpolator(0f)).start();
 impressLayout.startAnimation(fabOpenAnimation);
 writerLayout.startAnimation(fabOpenAnimation);
 calcLayout.startAnimation(fabOpenAnimation);
@@ -929,8 +929,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 ActivityCompat.requestPermissions(this,
 new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},
 PERMISSION_WRITE_EXTERNAL_STORAGE);
-} else {
-setEditFABVisibility(View.VISIBLE);
 }
 Log.d(LOGTAG, "onStart");
 }
@@ -1038,65 +1036,54 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 }
 }
 
-private void setEditFABVisibility(final int visibility) {
-LibreOfficeApplication.getMainHandler().post(new Runnable() {
-@Override
-public void run() {
-editFAB.setVisibility(visibility);
-}
-});
-}
-
 @Override
 public void onRequestPermissionsResult(int requestCode, @NonNull String[] 
permissions, @NonNull int[] grantResults) {
 switch (requestCode) {
 case PERMISSION_WRITE_EXTERNAL_STORAGE:
-if (permissions.length > 0 && grantResults[0] == 
PackageManager.PERMISSION_GRANTED) {
-setEditFABVisibility(View.VISIBLE);
-} else {
-setEditFABVisibility(View.INVISIBLE);
-if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
-boolean showRationale = 
shouldShowRequestPermissionRationale(Manifest.permission.WRITE_EXTERNAL_STORAGE);
-androidx.appcompat.app.AlertDialog.Builder 
rationaleDialogBuilder = new androidx.appcompat.app.AlertDialog.Builder(this)
-.setCancelable(false)
-
.setTitle(getString(R.string.title_permission_required))
-
.setMessage(getString(R.string.reason_required_to_read_documents));
-if (showRationale) {
-
rationaleDialogBuilder.setPositiveButton(getString(R.string.positive_ok), new 
DialogInterface.OnClickListener() {
-@Override
-public void onClick(DialogInterface dialog, 
int which) {
-
ActivityCompat.requestPermissions(LibreOfficeUIActivity.this,
-new 
String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},
-PERMISSION_WRITE_EXTERNAL_STORAGE);
-}
-})
-
.setNegativeButton(getString(R.string.negative_im_sure), new 
DialogInterface.OnClickListener() {
-@Override
-public void onClick(DialogInterface 
dialog, int which) {
-

[Libreoffice-commits] online.git: android/app android/lib loleaflet/js

2020-07-16 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |7 
 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java   
|   15 ++
 loleaflet/js/global.js 
|   15 ++
 3 files changed, 31 insertions(+), 6 deletions(-)

New commits:
commit f29c1cc3ea928c511d82cb93126412e099266759
Author: Jan Holesovsky 
AuthorDate: Wed Jul 15 21:29:23 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Thu Jul 16 11:53:17 2020 +0200

android: Actually use the Desktop browser UI for Chromebooks.

Chromebooks are not touch devices, the desktop browser-like UI makes
much more sense there.

Change-Id: Id963929e781f2baff32a65e0437afb4dfd8460a3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98865
Tested-by: Jenkins CollaboraOffice 
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index f44723861..e89913628 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -678,11 +678,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 return true;
 }
 
-/** True if the App is running under ChromeOS. */
-private boolean isChromeOS() {
-return 
getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
-}
-
 /** Start an ACTION_OPEN_DOCUMENT Intent to trigger opening a document. */
 private void openDocument() {
 collapseFabMenu();
@@ -700,7 +695,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 // impossible to choose any files, unless they notice the dropdown in
 // the bottom left and choose "All files".  Interestingly, SVG / SVGZ
 // are shown there as an option, the other mime types are just blank
-if (!isChromeOS()) {
+if (!LOActivity.isChromeOS(this)) {
 final String[] mimeTypes = new String[] {
 // ODF
 "application/vnd.oasis.opendocument.text",
diff --git 
a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java 
b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
index 3374ff4ca..e904c6d74 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -16,6 +16,7 @@ import android.content.ClipDescription;
 import android.content.ClipboardManager;
 import android.content.ActivityNotFoundException;
 import android.content.ContentResolver;
+import android.content.Context;
 import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.SharedPreferences;
@@ -210,6 +211,11 @@ public class LOActivity extends AppCompatActivity {
 return mMainHandler;
 }
 
+/** True if the App is running under ChromeOS. */
+public static boolean isChromeOS(Context context) {
+return 
context.getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
+}
+
 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
@@ -776,6 +782,15 @@ public class LOActivity extends AppCompatActivity {
 Log.d(TAG, "postMobileDebug: " + message);
 }
 
+/**
+ * Provide the info that this app is actually running under ChromeOS - so
+ * has to mostly look like on desktop.
+ */
+@JavascriptInterface
+public boolean isChromeOS() {
+return isChromeOS(this);
+}
+
 /**
  * Passing message the other way around - from Java to the FakeWebSocket 
in JS.
  */
diff --git a/loleaflet/js/global.js b/loleaflet/js/global.js
index 0ed660e69..f1046a3c9 100644
--- a/loleaflet/js/global.js
+++ b/loleaflet/js/global.js
@@ -143,9 +143,18 @@
};
 
global.mode = {
+   isChromebook: function() {
+   if (!window.ThisIsTheAndroidApp)
+   return false;
+
+   return window.LOOLMessageHandler.isChromeOS();
+   },
// Here "mobile" means "mobile phone" (at least for now). Has 
to match small screen size
// requirement.
isMobile: function() {
+   if (global.mode.isChromebook())
+   return false;
+
if (L.Browser.mobile && L.Browser.cypressTest) {
return true;
}
@@ -154,9 +163,15 @@
},
// Mobile device with big screen size.
isTablet: function() {

[Libreoffice-commits] online.git: android/app

2020-07-15 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/AndroidManifest.xml |   47 +++
 1 file changed, 47 insertions(+)

New commits:
commit f63b617b12ea8d8b0aa3fc83fbe60190ff4bda3a
Author: Jan Holesovsky 
AuthorDate: Tue Jul 14 20:13:47 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Wed Jul 15 23:45:13 2020 +0200

android: Add support for ODT/ODS/ODP for Chrome OS.

Turns out that the ODF mime types are most probably not supported by
Chrome OS, because the android:mimeType=... is not enough to associate
the app with the ODT/ODP/ODS files.

So introduce an additional intent-filter that explicitly matches
according to the file extension; a bit hacky, but works.

Change-Id: If7cad4214e8d16f96d035380460d5c3da347
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98765
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 6912a0b57..4e8723706 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -116,6 +116,53 @@
 
 
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-06-30 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |  115 +-
 1 file changed, 64 insertions(+), 51 deletions(-)

New commits:
commit d36b66c91a898ab7cba431dbc18243914f4172b9
Author: Jan Holesovsky 
AuthorDate: Tue Jun 30 11:55:47 2020 +0200
Commit: Jan Holesovsky 
CommitDate: Tue Jun 30 15:56:39 2020 +0200

android: Intent.EXTRA_MIME_TYPES does not work on ChromeOS.

From some reason, when we limit the mime types the same way as on normal
Android, the ChromeOS file picker shows no files by default; the user
has to use the dropdown in the bottom left to switch to All files, and
then they can choose something to open.

[Interestingly, the only other working choice is SVGZ/SVG; but the rest
of the mime types are empty in the dropdown.]

I haven't found any advice anywhere, so just disabled this for ChromeOS.

Change-Id: I95195077ab936670050d980f4180d4b22bfa35d7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97483
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index c1d9df818..f44723861 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -678,6 +678,11 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 return true;
 }
 
+/** True if the App is running under ChromeOS. */
+private boolean isChromeOS() {
+return 
getPackageManager().hasSystemFeature("org.chromium.arc.device_management");
+}
+
 /** Start an ACTION_OPEN_DOCUMENT Intent to trigger opening a document. */
 private void openDocument() {
 collapseFabMenu();
@@ -689,57 +694,65 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 // NOTE: If updating the list here, also check the AndroidManifest.xml,
 // I didn't find a way how to do it from one central place :-(
 i.setType("*/*");
-final String[] mimeTypes = new String[] {
-// ODF
-"application/vnd.oasis.opendocument.text",
-"application/vnd.oasis.opendocument.graphics",
-"application/vnd.oasis.opendocument.presentation",
-"application/vnd.oasis.opendocument.spreadsheet",
-"application/vnd.oasis.opendocument.text-flat-xml",
-"application/vnd.oasis.opendocument.graphics-flat-xml",
-"application/vnd.oasis.opendocument.presentation-flat-xml",
-"application/vnd.oasis.opendocument.spreadsheet-flat-xml",
-
-// ODF templates
-"application/vnd.oasis.opendocument.text-template",
-"application/vnd.oasis.opendocument.spreadsheet-template",
-"application/vnd.oasis.opendocument.graphics-template",
-"application/vnd.oasis.opendocument.presentation-template",
-
-// MS
-"application/rtf",
-"text/rtf",
-"application/msword",
-"application/vnd.ms-powerpoint",
-"application/vnd.ms-excel",
-"application/vnd.visio",
-"application/vnd.visio.xml",
-"application/x-mspublisher",
-
-// OOXML
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
-
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
-
"application/vnd.openxmlformats-officedocument.presentationml.slideshow",
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
-
-// OOXML templates
-
"application/vnd.openxmlformats-officedocument.wordprocessingml.template",
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.template",
-
"application/vnd.openxmlformats-officedocument.presentationml.template",
-
-// other
-"text/csv",
-"text/comma-separated-values",
-"application/vnd.ms-works",
-"application/vnd.apple.keynote",
-"application/x-abiword",
-"application/x-pagemaker",
-"image/x-emf",
-"image/x-svm",
-"image/x-wmf",
-"image/svg+xml"
-};
-i.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);
+
+// from some reason, the file picker on ChromeOS is confused when it
+// gets the EXTRA_MIME_TYPES; to the user it looks like it is
+// impossible to choose any files, unless they notice the dropdown in
+// the bottom left and choose "All files".  Interestingly, SVG / SVGZ
+// are shown there as an option, the other mime types 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-06-26 Thread Weblate (via logerrit)
 android/app/src/main/res/values-an/strings.xml  |7 
 android/app/src/main/res/values-gl/strings.xml  |3 
 android/app/src/main/res/values-uk/strings.xml  |3 
 android/lib/src/main/res/values-ast/strings.xml |1 
 loleaflet/po/help-ca.po |   14 
 loleaflet/po/help-gl.po |6 
 loleaflet/po/help-kab.po|6 
 loleaflet/po/help-nb.po |  386 
 loleaflet/po/help-sv.po |4 
 loleaflet/po/help-uk.po |6 
 loleaflet/po/help-zh_CN.po  |   44 +-
 loleaflet/po/ios-bs.po  |   19 -
 loleaflet/po/ios-gl.po  |6 
 loleaflet/po/ui-ast.po  |6 
 loleaflet/po/ui-bg.po   |4 
 loleaflet/po/ui-ca.po   |6 
 loleaflet/po/ui-cy.po   |   22 -
 loleaflet/po/ui-da.po   |6 
 loleaflet/po/ui-de.po   |4 
 loleaflet/po/ui-el.po   |4 
 loleaflet/po/ui-en_GB.po|   42 +-
 loleaflet/po/ui-es.po   |4 
 loleaflet/po/ui-eu.po   |4 
 loleaflet/po/ui-gl.po   |   42 --
 loleaflet/po/ui-it.po   |   22 -
 loleaflet/po/ui-nb.po   |4 
 loleaflet/po/ui-pt.po   |   22 -
 loleaflet/po/ui-sv.po   |   22 -
 loleaflet/po/ui-uk.po   |   57 +--
 29 files changed, 373 insertions(+), 403 deletions(-)

New commits:
commit 6f90eb96a1a964a0052e720777311515bc96655a
Author: Weblate 
AuthorDate: Fri Jun 26 15:59:37 2020 +0200
Commit: Andras Timar 
CommitDate: Fri Jun 26 20:22:44 2020 +0200

update translations

LibreOffice Online/loleaflet-help (Kabyle)
Currently translated at 34.4% (143 of 416 strings)

Change-Id: I6ce9f0bb8f42490431a7a23b93ff5e4c82122723

update translations

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

Change-Id: Ie09455b7ffc3c427c66781a32f015665c0545703

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 61.8% (257 of 416 strings)

Change-Id: I2a3d14d3b58dbe66231f9bbab9639d675a45ca1f

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 96.5% (299 of 310 strings)

Change-Id: I0a6b36a8e79551df82f094760df382b8942e6660

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ib1bb76ebff66fce951dd2be03a5da1c3c17bf3fb

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 92.6% (287 of 310 strings)

Change-Id: I4edcfd872ecf9cd4bd1e1efcfb4516415a8eb9be

update translations

LibreOffice Online/loleaflet-ui (Danish)
Currently translated at 75.8% (235 of 310 strings)

Change-Id: Ia665d109743e6ef00a6b5e509b2f126928b72c28

update translations

LibreOffice Online/ios (Bosnian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I2fbba21e2a80f4e6ffb12a5651affd8ffbb2fb72

update translations

LibreOffice Online/loleaflet-help (Chinese (Simplified))
Currently translated at 68.8% (286 of 416 strings)

Change-Id: Idb9c518cb5e2c68bc550489ca50d3d43b2c2e576

update translations

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

Change-Id: I3eb2ae88b732a3742af4944596b0f4f7122180d3

update translations

LibreOffice Online/android-lib (Asturian)
Currently translated at 66.7% (8 of 12 strings)

Change-Id: I713913b024033fa9e8e06edc243e532a382ac4f0

update translations

LibreOffice Online/loleaflet-ui (German)
Currently translated at 100.0% (310 of 310 strings)

Change-Id: Ife17fbfb627fa2c173d6d3cc33fb50a3c784fca5

update translations

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

Change-Id: I383adf870d21c2e9b6e939294aec7c11258425c8

update translations

LibreOffice Online/android-app (Aragonese)
Currently translated at 15.7% (16 of 102 strings)

Change-Id: I8ee54ee85e93bca217b4d4b5544bada5c4d9a41d

update translations

LibreOffice Online/loleaflet-help (Norwegian Bokmål)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I66dc80932af86f79beb935fb2eb12a9e04b4b433

update translations

LibreOffice Online/loleaflet-help 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/Makefile.am

2020-06-11 Thread Henry Castro (via logerrit)
 android/app/build.gradle |6 --
 android/lib/build.gradle |   12 ++--
 loleaflet/Makefile.am|   12 
 3 files changed, 14 insertions(+), 16 deletions(-)

New commits:
commit 132bef2a972647b310fbf88a5e97b0789ad1ce14
Author: Henry Castro 
AuthorDate: Wed May 27 12:43:29 2020 -0400
Commit: Henry Castro 
CommitDate: Thu Jun 11 21:00:45 2020 +0200

android: generate debug and release loleaflet assets

Change-Id: If3659de771b3d1f7015c1e4c26d6877f90afe306
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/94996
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 1b4848bd0..3d364a40e 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -83,16 +83,10 @@ task copyBrandFiles(type: Copy) {
into "src/main/res"
 }
 
-task generateLoleafletAssets(type: Exec) {
-   commandLine 'make', '-C', '../../'
-}
-
 afterEvaluate {
if (!project.ext.liboHasBranding.equals("true") || 
!file("${liboBrandingDir}").exists()) {
copyBrandFiles.enabled = false
}
 
preBuild.dependsOn copyBrandFiles
-   generateDebugAssets.dependsOn generateLoleafletAssets
-   generateReleaseAssets.dependsOn generateLoleafletAssets
 }
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 50cb2fc43..1b1eb90df 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -298,10 +298,18 @@ preBuild.dependsOn 'createRCfiles',
 'createFullConfig',
 'copyBrandTheme'
 
+task generateLoleafletDebugAssets(type: Exec) {
+   commandLine 'make', '-C', '../../', 
"DIST_FOLDER=${project.getProjectDir()}/src/debug/assets/dist", 'BUNDLE=DEBUG'
+}
+
+task generateLoleafletReleaseAssets(type: Exec) {
+   commandLine 'make', '-C', '../../', 
"DIST_FOLDER=${project.getProjectDir()}/src/release/assets/dist", 
'BUNDLE=RELEASE'
+}
+
 afterEvaluate {
if (!file("${liboBrandingDir}").exists()) {
copyBrandTheme.enabled = false
}
-   generateDebugAssets.dependsOn copyDocTemplates, copyKitConfig
-   generateReleaseAssets.dependsOn copyDocTemplates, copyKitConfig
+   generateDebugAssets.dependsOn copyDocTemplates, copyKitConfig, 
generateLoleafletDebugAssets
+   generateReleaseAssets.dependsOn copyDocTemplates, copyKitConfig, 
generateLoleafletReleaseAssets
 }
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index b79a89f00..94269517b 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -5,11 +5,7 @@ L10N_PO = $(wildcard $(srcdir)/po/*.po)
 BUNDLE ?= $(if $(filter true,$(ENABLE_DEBUG)),DEBUG,RELEASE)
 IS_DEBUG = $(if $(filter DEBUG,$(BUNDLE)),true,)
 
-if ENABLE_ANDROIDAPP
-DIST_FOLDER = $(abs_top_srcdir)/android/lib/src/main/assets/dist
-else
-DIST_FOLDER = $(builddir)/dist
-endif
+DIST_FOLDER ?= $(builddir)/dist
 
 export NODE_PATH=$(abs_builddir)/node_module
 
@@ -412,9 +408,9 @@ build-loleaflet: compilets \
$(DIST_FOLDER)/loleaflet.html
@echo "build loleaflet completed"
 if ENABLE_ANDROIDAPP
-   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/ ; else touch 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/branding.css ; fi
-   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
-   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
+   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" 
$(DIST_FOLDER)/ ; else touch $(DIST_FOLDER)/branding.css ; fi
+   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg $(DIST_FOLDER)/images/ ; fi
+   @if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(DIST_FOLDER)/images/toolbar-bg.svg ; fi
@echo
@echo "JS, HTML and CSS has been updated 
(android/lib/src/main/assets/dist)."
 endif
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-05-20 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bg/strings.xml |3 
 android/app/src/main/res/values-cs/strings.xml |3 
 android/app/src/main/res/values-en-rGB/strings.xml |3 
 android/app/src/main/res/values-fr/strings.xml |3 
 android/app/src/main/res/values-it/strings.xml |3 
 android/app/src/main/res/values-ru/strings.xml |7 
 android/app/src/main/res/values-sk/strings.xml |3 
 android/app/src/main/res/values-sv/strings.xml |  100 
 android/app/src/main/res/values-tr/strings.xml |5 
 android/app/src/main/res/values-zh-rCN/strings.xml |  105 
 android/lib/src/main/res/values-sv/strings.xml |   15 +
 android/lib/src/main/res/values-tr/strings.xml |2 
 android/lib/src/main/res/values-zh-rCN/strings.xml |   15 +
 loleaflet/po/help-af.po|  247 ++---
 loleaflet/po/help-ast.po   |5 
 loleaflet/po/help-ca.po|   30 +-
 loleaflet/po/help-sk.po|   12 -
 loleaflet/po/help-sv.po|   13 -
 loleaflet/po/help-tr.po|   56 +---
 loleaflet/po/ios-af.po |   19 -
 loleaflet/po/ios-sv.po |   19 -
 loleaflet/po/ios-tr.po |   15 -
 loleaflet/po/ios-zh_CN.po  |   17 -
 loleaflet/po/ios-zh_TW.po  |   17 -
 loleaflet/po/ui-ast.po |   10 
 loleaflet/po/ui-en_GB.po   |   22 -
 loleaflet/po/ui-it.po  |   12 -
 loleaflet/po/ui-sk.po  |   18 -
 loleaflet/po/ui-sv.po  |   42 +--
 loleaflet/po/ui-tr.po  |   36 +--
 loleaflet/po/ui-zh_CN.po   |  152 +---
 loleaflet/po/ui-zh_TW.po   |   38 +--
 32 files changed, 604 insertions(+), 443 deletions(-)

New commits:
commit cb51332587097c180d41d272a4806c30734290bc
Author: Weblate 
AuthorDate: Wed May 20 15:07:49 2020 +0200
Commit: Andras Timar 
CommitDate: Wed May 20 16:39:06 2020 +0200

update translations

LibreOffice Online/ios (Chinese (Traditional))
Currently translated at 60.0% (3 of 5 strings)

Change-Id: I6847e097cfe863027230199ea19d7f1903c56d54

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 100.0% (299 of 299 strings)

Change-Id: Ibb382a23d555dc6a2f667c849afdb9bc2c7ad383

update translations

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

Change-Id: I915ac90f007f76faeb64213230cc474815b57876

update translations

LibreOffice Online/android-app (Russian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ia727ebd5939f337be686f32e11561d5fa2951d2b

update translations

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

Change-Id: I92ec0af7327c811305d9cb52979059a7677cfc46

update translations

LibreOffice Online/android-app (Swedish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I976874b6a0a79a033a71d2eedd0ca458649e89a0

update translations

LibreOffice Online/android-app (Chinese (Simplified))
Currently translated at 98.0% (100 of 102 strings)

Change-Id: I37ec240ebc2099aa624f7a3d4b4dc94bfe31ad32

update translations

LibreOffice Online/android-lib (Swedish)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Iee6e4f67a9d47f134e9e45438dba8e277f4cfe26

update translations

LibreOffice Online/ios (Swedish)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I72d9cd5f07a81ee301f5e0f8629b80932b241d8b

update translations

LibreOffice Online/loleaflet-help (Swedish)
Currently translated at 47.6% (198 of 416 strings)

Change-Id: I29358e1b37c663903e7b9cdd44e72e3f1729f73e

update translations

LibreOffice Online/loleaflet-ui (Chinese (Simplified))
Currently translated at 97.3% (291 of 299 strings)

Change-Id: I49d01411ef7bcf6b9e6ef8cd86988934b86757d7

update translations

LibreOffice Online/loleaflet-ui (Swedish)
Currently translated at 100.0% (299 of 299 strings)

Change-Id: If95f6b50651a1c62824c1a69afe08539389bd3e0

update translations

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

Change-Id: I8feab13d589621fdb398ab01c86d216d6c280e4a

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 100.0% (299 of 299 strings)

Change-Id: 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-05-06 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ast/strings.xml|8 
 android/app/src/main/res/values-bg/strings.xml |4 +-
 android/app/src/main/res/values-ca/strings.xml |7 +++-
 android/app/src/main/res/values-cy/strings.xml |3 +
 android/app/src/main/res/values-de/strings.xml |7 +++-
 android/app/src/main/res/values-dsb/strings.xml|3 +
 android/app/src/main/res/values-el/strings.xml |7 +++-
 android/app/src/main/res/values-es/strings.xml |7 +++-
 android/app/src/main/res/values-eu/strings.xml |7 +++-
 android/app/src/main/res/values-hsb/strings.xml|3 +
 android/app/src/main/res/values-hu/strings.xml |7 +++-
 android/app/src/main/res/values-is/strings.xml |8 
 android/app/src/main/res/values-nl/strings.xml |4 +-
 android/app/src/main/res/values-pl/strings.xml |7 +++-
 android/app/src/main/res/values-pt-rBR/strings.xml |3 +
 android/app/src/main/res/values-pt/strings.xml |7 +++-
 android/lib/src/main/res/values-is/strings.xml |6 +++
 loleaflet/po/help-cs.po|   12 +++
 loleaflet/po/help-hsb.po   |4 --
 loleaflet/po/help-nl.po|4 +-
 loleaflet/po/help-pt.po|6 +--
 loleaflet/po/ios-is.po |   15 
 loleaflet/po/ios-pl.po |6 +--
 loleaflet/po/ios-pt.po |6 +--
 loleaflet/po/ui-bg.po  |   12 ++-
 loleaflet/po/ui-ca.po  |   12 ++-
 loleaflet/po/ui-cs.po  |   22 
 loleaflet/po/ui-cy.po  |   12 ++-
 loleaflet/po/ui-de.po  |   24 +-
 loleaflet/po/ui-dsb.po |   18 +++---
 loleaflet/po/ui-el.po  |   12 ++-
 loleaflet/po/ui-es.po  |   12 ++-
 loleaflet/po/ui-eu.po  |   12 ++-
 loleaflet/po/ui-fr.po  |   12 ++-
 loleaflet/po/ui-hsb.po |   18 +++---
 loleaflet/po/ui-hu.po  |   12 ++-
 loleaflet/po/ui-is.po  |   36 +++--
 loleaflet/po/ui-nl.po  |   18 +++---
 loleaflet/po/ui-pl.po  |   12 ++-
 loleaflet/po/ui-pt.po  |   18 +++---
 loleaflet/po/ui-pt_BR.po   |   12 ++-
 41 files changed, 206 insertions(+), 219 deletions(-)

New commits:
commit 98237bc43df429df5f06abe9ef0c7d1894e16adb
Author: Weblate 
AuthorDate: Wed May 6 11:07:29 2020 +0200
Commit: Andras Timar 
CommitDate: Wed May 6 13:44:09 2020 +0200

update translations

LibreOffice Online/android-lib (Icelandic)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I183fcaf2de50e621f187208fb454fb6d855e95ee

update translations

LibreOffice Online/ios (Icelandic)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I842ec844671c654ebce260340583dba212378899

update translations

LibreOffice Online/android-app (Icelandic)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I628da1a1dfb3184fcb135e17fef5a1c57402d959

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 100.0% (299 of 299 strings)

Change-Id: Iea245a9dd18333e1290264d9df089585580c386d

update translations

LibreOffice Online/android-app (Greek)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I22c7c03799af6c1d28906cb48e5221b7211b7c33

update translations

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

Change-Id: Ib7ff420c6d2747f4f6a5b0be887c1c4ac643b7ed

update translations

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

Change-Id: Ib5fbefab251a3c97b324de9c14da3f9d531f7c98

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I6e414a613134e9d639424c7fd781487822552a9b

update translations

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

Change-Id: I958890da36d7daccdb81afdf67076b4f85992890

update translations

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

Change-Id: I21c82208e9fae9be79cfce4f9bb1a655a0290389

update translations

LibreOffice Online/android-app 

[Libreoffice-commits] online.git: android/app

2020-05-04 Thread Andras Timar (via logerrit)
 android/app/src/main/res/layout/about.xml   |2 +-
 android/app/src/main/res/values/strings.xml |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5f2371d12fc70f4e743b83407820e25ed90f48de
Author: Andras Timar 
AuthorDate: Mon May 4 08:33:55 2020 +0200
Commit: Andras Timar 
CommitDate: Mon May 4 08:33:55 2020 +0200

If we change text but not the id, old translations are pulled in

Change-Id: I34cbaba2260ee2ae0bd5e83adec755e451aa

diff --git a/android/app/src/main/res/layout/about.xml 
b/android/app/src/main/res/layout/about.xml
index 3b1ec37ff..0b02204b1 100644
--- a/android/app/src/main/res/layout/about.xml
+++ b/android/app/src/main/res/layout/about.xml
@@ -41,7 +41,7 @@
 android:id="@+id/about_version"
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
-android:text="@string/app_version"
+android:text="@string/app_version_and_hash"
 android:textAlignment="center"
 android:textIsSelectable="true"
 android:textSize="14sp" />
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index d9db90079..fa8c6f037 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -2,7 +2,7 @@
 
 
 Settings
-Version: %1$s\nonline git-hash: %2$s\ncore 
git-hash: %3$s
+Version: %1$s\nonline git-hash: 
%2$s\ncore git-hash: %3$s
 $APP_NAME is a modern, easy-to-use, open 
source productivity suite for word processing, spreadsheets, presentations and 
more.
 This release was supplied by $VENDOR.
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-05-03 Thread mert (via logerrit)
 android/app/appSettings.gradle.in 
|3 +++
 android/app/build.gradle  
|4 
 android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
|9 ++---
 android/app/src/main/res/values/strings.xml   
|2 +-
 4 files changed, 14 insertions(+), 4 deletions(-)

New commits:
commit 30a01c0b215209a0fc8bef7fc4c102e17b6754f0
Author: mert 
AuthorDate: Thu Apr 9 11:19:10 2020 +0300
Commit: Andras Timar 
CommitDate: Sun May 3 08:49:33 2020 +0200

tdf#131567 android: added version number in about dialog

also included git-hashes

Change-Id: Ia1d7f7f14b4c560ad7e47fd7a2f459e0da60e3d1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91951
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/appSettings.gradle.in 
b/android/app/appSettings.gradle.in
index cbef6f786..611a9e48a 100644
--- a/android/app/appSettings.gradle.in
+++ b/android/app/appSettings.gradle.in
@@ -8,6 +8,9 @@ ext {
 liboHasBranding = '@APP_HAS_BRANDING@'
 liboBrandingDir = '@APP_BRANDING_DIR@'
 liboAndroidAbi  = '@ANDROID_ABI@'
+liboOVersionHash= '@LOOLWSD_VERSION_HASH@'
+liboCoreVersionHash = '@CORE_VERSION_HASH@'
+
 }
 android.defaultConfig {
 applicationId '@ANDROID_PACKAGE_NAME@'
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 9d45689bb..1b4848bd0 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -22,6 +22,8 @@ android {
 resValue "string", "app_name", "${liboAppName} Debug"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+resValue "string", "online_version_hash", "${liboOVersionHash}"
+resValue "string", "core_version_hash", "${liboCoreVersionHash}"
 resValue "string", "image_draw_header", "@drawable/drawer_header"
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
@@ -37,6 +39,8 @@ android {
 resValue "string", "app_name", "${liboAppName}"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+resValue "string", "online_version_hash", "${liboOVersionHash}"
+resValue "string", "core_version_hash", "${liboCoreVersionHash}"
 if 
(file("src/main/res/drawable/drawer_header_brand.png").exists()) {
 resValue "string", "image_draw_header", 
"@drawable/drawer_header_brand"
 } else {
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
index 0afad916a..b348cd58d 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
@@ -52,11 +52,14 @@ public class AboutDialogFragment extends DialogFragment {
 {
 String versionName = getActivity().getPackageManager()
 .getPackageInfo(getActivity().getPackageName(), 
0).versionName;
-String[] tokens = versionName.split("/");
-if (tokens.length >= 2)
+String onlineVersionHash = getString(R.string.online_version_hash);
+String coreVersionHash = getString(R.string.core_version_hash);
+
+if (!onlineVersionHash.isEmpty() && !coreVersionHash.isEmpty() && 
!versionName.isEmpty())
 {
 String version = 
String.format(versionView.getText().toString().replace("\n", ""),
-tokens[0], "https://hub.libreoffice.org/git-online/; + tokens[1] + "\">" + tokens[1] 
+ "");
+versionName, "https://hub.libreoffice.org/git-online/; + onlineVersionHash + "\">" + 
onlineVersionHash + "",
+"https://hub.libreoffice.org/git-core/; + 
coreVersionHash + "\">" + coreVersionHash + "");
 @SuppressWarnings("deprecation") // since 24 with additional 
option parameter
 Spanned versionString = Html.fromHtml(version);
 versionView.setText(versionString);
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 8368c33fc..d9db90079 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -2,7 +2,7 @@
 
 
 Settings
-Version: %1$s, Build ID: %2$s
+Version: %1$s\nonline git-hash: %2$s\ncore 
git-hash: %3$s
 $APP_NAME is a modern, easy-to-use, open 
source productivity suite for word processing, spreadsheets, presentations and 
more.
 This release was supplied by $VENDOR.
 

[Libreoffice-commits] online.git: android/app android/lib android/README common/FileUtil.cpp common/FileUtil.hpp common/JsonUtil.hpp common/Protocol.hpp configure.ac cypress_test/integration_tests ios

2020-04-26 Thread Andras Timar (via logerrit)
 android/README 
 |2 -
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
|4 +-
 android/lib/src/main/java/org/libreoffice/androidlib/ProgressDialog.java   
 |4 +-
 common/FileUtil.cpp
 |2 -
 common/FileUtil.hpp
 |4 +-
 common/JsonUtil.hpp
 |2 -
 common/Protocol.hpp
 |2 -
 configure.ac   
 |8 ++---
 cypress_test/integration_tests/mobile/calc/cell_appearance_spec.js 
 |2 -
 cypress_test/integration_tests/mobile/calc/insertion_wizard_spec.js
 |2 -
 cypress_test/integration_tests/mobile/writer/toolbar_spec.js   
 |4 +-
 ios/Mobile/CODocument.mm   
 |2 -
 ios/README 
 |4 +-
 kit/ChildSession.hpp   
 |6 +--
 logerrit   
 |2 -
 loleaflet/README   
 |2 -
 loleaflet/admin/src/Util.js
 |2 -
 loleaflet/css/leaflet.css  
 |2 -
 loleaflet/html/signing-identities.html 
 |2 -
 loleaflet/js/select2.js
 |4 +-
 loleaflet/js/vex.combined.js   
 |8 ++---
 loleaflet/js/w2ui-1.5.rc1.js   
 |6 +--
 loleaflet/reference.html   
 |   16 +-
 loleaflet/src/control/Control.LokDialog.js 
 |2 -
 loleaflet/src/control/Control.Menubar.js   
 |2 -
 loleaflet/src/control/Control.TopToolbar.js
 |8 ++---
 loleaflet/src/control/Signing.js   
 |2 -
 loleaflet/src/layer/BackgroundColor.js 
 |2 -
 loleaflet/src/layer/ObjectFocusDarkOverlay.js  
 |2 -
 loleaflet/src/layer/tile/GridLayer.js  
 |8 ++---
 loleaflet/src/layer/tile/TileLayer.TableOverlay.js 
 |2 -
 loleaflet/src/layer/tile/TileLayer.js  
 |4 +-
 loleaflet/src/layer/vector/Path.Drag.Transform.js  
 |2 -
 loleaflet/src/layer/vector/Path.Drag.js
 |2 -
 loleaflet/src/layer/vector/Path.Transform.Util.js  
 |2 -
 loleaflet/src/layer/vector/Path.Transform.js   
 |2 -
 loleaflet/src/map/Clipboard.js 
 |6 +--
 loleaflet/src/map/Map.js   
 |2 -
 loleaflet/src/map/handler/Map.TouchGesture.js  
 |2 -
 loolstat   
 |6 +--
 net/Socket.hpp 
 |4 +-
 test/TileCacheTests.cpp
 |2 -
 test/UnitHTTP.cpp  
 |2 -
 wsd/Admin.hpp  
 |2 -
 wsd/DocumentBroker.cpp 
 |4 +-
 wsd/DocumentBroker.hpp 
 |2 -
 wsd/LOOLWSD.cpp
 |4 +-
 wsd/LOOLWSD.hpp
 |4 +-
 wsd/SenderQueue.hpp
 |2 -
 wsd/TileCache.hpp  
 |2 -
 wsd/protocol.txt   
 |6 +--
 wsd/reference.md   
 |4 +-
 52 files changed, 93 insertions(+), 93 deletions(-)

New commits:
commit 33000dfded7cb32930e6c21770f5d388da28bd76
Author: Andras Timar 
AuthorDate: Sun Apr 26 22:55:16 2020 +0200
Commit: Andras Timar 

[Libreoffice-commits] online.git: android/app loleaflet/Makefile.am

2020-04-21 Thread Henry Castro (via logerrit)
 android/app/build.gradle |6 --
 loleaflet/Makefile.am|6 +-
 2 files changed, 5 insertions(+), 7 deletions(-)

New commits:
commit 40b0e084beaa98df54263de0465d02f6b6e5f0f2
Author: Henry Castro 
AuthorDate: Tue Apr 21 18:11:13 2020 -0400
Commit: Henry Castro 
CommitDate: Wed Apr 22 00:49:43 2020 +0200

android: change dependency to generate assets

According to gradle graph tasks, add a dependecy
to generate loleaflet assets

Change-Id: I5b528989c645903840eae44b7770b7d2425bb921
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92662
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index ab9944d89..9d45689bb 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -79,7 +79,7 @@ task copyBrandFiles(type: Copy) {
into "src/main/res"
 }
 
-task build_loleaflet(type: Exec) {
+task generateLoleafletAssets(type: Exec) {
commandLine 'make', '-C', '../../'
 }
 
@@ -88,5 +88,7 @@ afterEvaluate {
copyBrandFiles.enabled = false
}
 
-   preBuild.dependsOn copyBrandFiles, build_loleaflet
+   preBuild.dependsOn copyBrandFiles
+   generateDebugAssets.dependsOn generateLoleafletAssets
+   generateReleaseAssets.dependsOn generateLoleafletAssets
 }
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index ceb3419d7..d38c7953a 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -339,11 +339,7 @@ if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
@echo
-   @echo "Copied JS, HTML and CSS to the Android project 
(android/lib/src/main/assets/dist)."
-   @echo
-   @echo "  Now you need to build the actual .apk from Android Studio:"
-   @echo "  Just open the 'android' subdir as a project there and build."
-   @echo
+   @echo "JS, HTML and CSS has been updated 
(android/lib/src/main/assets/dist)."
 endif
 
 $(DIST_FOLDER)/admin-bundle.js: $(LOLEAFLET_ADMIN_DST) \
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/Makefile.am

2020-04-21 Thread Henry Castro (via logerrit)
 android/app/build.gradle  |3 +--
 android/lib/build.gradle  |   14 +-
 android/lib/libSettings.gradle.in |1 +
 loleaflet/Makefile.am |1 -
 4 files changed, 15 insertions(+), 4 deletions(-)

New commits:
commit e3b0c057331aa9e6c0f8e1ca5eebc6ca41b60a24
Author: Henry Castro 
AuthorDate: Tue Apr 21 17:23:59 2020 -0400
Commit: Henry Castro 
CommitDate: Tue Apr 21 23:43:15 2020 +0200

android: add gradle task copyBrandTheme

Change-Id: Ide4a58551fad9befe3e81ab727be283e438dcae3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92661
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index a7218c635..ab9944d89 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -77,7 +77,6 @@ dependencies {
 task copyBrandFiles(type: Copy) {
from "${liboBrandingDir}/android"
into "src/main/res"
-   println 'copy files done'
 }
 
 task build_loleaflet(type: Exec) {
@@ -86,7 +85,7 @@ task build_loleaflet(type: Exec) {
 
 afterEvaluate {
if (!project.ext.liboHasBranding.equals("true") || 
!file("${liboBrandingDir}").exists()) {
-   copyBrandFiles.enabled = false;
+   copyBrandFiles.enabled = false
}
 
preBuild.dependsOn copyBrandFiles, build_loleaflet
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 94d695190..94c505d42 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -181,6 +181,11 @@ task createFullConfig(type: Copy) {
 }
 }
 
+task copyBrandTheme(type: Copy) {
+   from "${liboBrandingDir}/online-theme"
+   into "src/main/assets/share/theme_definitions/online"
+}
+
 task createStrippedConfig {
 def preserveDir = file("src/main/assets/share/config/soffice.cfg/empty")
 outputs.dir "src/main/assets/share/registry/res"
@@ -273,4 +278,11 @@ ReferenceOOoMajorMinor=4.1
 
 // creating the UI stuff is cheap, don't bother only applying it for the 
flavor..
 preBuild.dependsOn 'createRCfiles',
-'createFullConfig'
+'createFullConfig',
+'copyBrandTheme'
+
+afterEvaluate {
+   if (!file("${liboBrandingDir}").exists()) {
+   copyBrandTheme.enabled = false
+   }
+}
diff --git a/android/lib/libSettings.gradle.in 
b/android/lib/libSettings.gradle.in
index 9bcd1b58b..afa68ee1f 100644
--- a/android/lib/libSettings.gradle.in
+++ b/android/lib/libSettings.gradle.in
@@ -10,6 +10,7 @@ ext {
 liboVersionMinor= '@LOOLWSD_VERSION_MAJOR@'
 liboGitFullCommit   = '@LOOLWSD_VERSION_HASH@'
 liboApplicationId   = '@ANDROID_PACKAGE_NAME@'
+liboBrandingDir = '@APP_BRANDING_DIR@'
 liboAndroidAbi  = '@ANDROID_ABI@'
 liboGooglePlay  = '@APP_GOOGLE_PLAY@'
 }
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index a7466742f..ceb3419d7 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -338,7 +338,6 @@ if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/ ; else touch 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/branding.css ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
-   @if test -d "$(APP_BRANDING_DIR)/online-theme" ; then mkdir -p 
$(abs_top_srcdir)/android/lib/src/main/assets/share/theme_definitions ; cp -a 
"$(APP_BRANDING_DIR)/online-theme" 
"$(abs_top_srcdir)/android/lib/src/main/assets/share/theme_definitions/online" 
; fi
@echo
@echo "Copied JS, HTML and CSS to the Android project 
(android/lib/src/main/assets/dist)."
@echo
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app loleaflet/Makefile.am

2020-04-21 Thread Henry Castro (via logerrit)
 android/app/appSettings.gradle.in |1 +
 android/app/build.gradle  |   12 +++-
 loleaflet/Makefile.am |1 -
 3 files changed, 12 insertions(+), 2 deletions(-)

New commits:
commit 8b593d94c160db1c6d4e640072495d8f03e701e3
Author: Henry Castro 
AuthorDate: Tue Apr 21 16:41:58 2020 -0400
Commit: Henry Castro 
CommitDate: Tue Apr 21 23:01:07 2020 +0200

android: add gradle task copyBrandFiles

The gradle build system can do the job

Change-Id: Ife8f080726ca61540201bd00acb7fab97efbba85
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92659
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/appSettings.gradle.in 
b/android/app/appSettings.gradle.in
index a4e89c24f..cbef6f786 100644
--- a/android/app/appSettings.gradle.in
+++ b/android/app/appSettings.gradle.in
@@ -6,6 +6,7 @@ ext {
 liboInfoURL = '@INFO_URL@'
 liboLauncherIcon= '@mipmap/@APP_IC_LAUNCHER@'
 liboHasBranding = '@APP_HAS_BRANDING@'
+liboBrandingDir = '@APP_BRANDING_DIR@'
 liboAndroidAbi  = '@ANDROID_ABI@'
 }
 android.defaultConfig {
diff --git a/android/app/build.gradle b/android/app/build.gradle
index abb4d01b0..a7218c635 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -74,10 +74,20 @@ dependencies {
 implementation project(path: ':lib')
 }
 
+task copyBrandFiles(type: Copy) {
+   from "${liboBrandingDir}/android"
+   into "src/main/res"
+   println 'copy files done'
+}
+
 task build_loleaflet(type: Exec) {
commandLine 'make', '-C', '../../'
 }
 
 afterEvaluate {
-   preBuild.dependsOn build_loleaflet
+   if (!project.ext.liboHasBranding.equals("true") || 
!file("${liboBrandingDir}").exists()) {
+   copyBrandFiles.enabled = false;
+   }
+
+   preBuild.dependsOn copyBrandFiles, build_loleaflet
 }
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index 9702c2e65..a7466742f 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -338,7 +338,6 @@ if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/ ; else touch 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/branding.css ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
-   @if test -d "$(APP_BRANDING_DIR)/android" ; then for I in `cd 
"$(APP_BRANDING_DIR)/android" && find . -type f` ; do mkdir -p 
$(abs_top_srcdir)/android/lib/src/main/res/`dirname $$I` ; cp -a 
"$(APP_BRANDING_DIR)/android/$$I" 
"$(abs_top_srcdir)/android/app/src/main/res/$$I" ; done ; fi
@if test -d "$(APP_BRANDING_DIR)/online-theme" ; then mkdir -p 
$(abs_top_srcdir)/android/lib/src/main/assets/share/theme_definitions ; cp -a 
"$(APP_BRANDING_DIR)/online-theme" 
"$(abs_top_srcdir)/android/lib/src/main/assets/share/theme_definitions/online" 
; fi
@echo
@echo "Copied JS, HTML and CSS to the Android project 
(android/lib/src/main/assets/dist)."
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/build.gradle android/build.gradle.in android/.gitignore android/lib configure.ac

2020-04-21 Thread Henry Castro (via logerrit)
 android/.gitignore   |1 +
 android/app/build.gradle |1 +
 android/build.gradle.in  |1 +
 android/lib/build.gradle |2 ++
 configure.ac |1 +
 5 files changed, 6 insertions(+)

New commits:
commit 0e8942f88f7dfac058da02db19251cff8fe55fe5
Author: Henry Castro 
AuthorDate: Sun Apr 19 12:09:41 2020 -0400
Commit: Henry Castro 
CommitDate: Tue Apr 21 16:03:38 2020 +0200

android: configure build directory

Enable to change to build directory when
builddir != srcdir

Change-Id: I8e48897c44a5ea67da8ffebc3183d722a05e3a20
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92596
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/.gitignore b/android/.gitignore
index 57063e693..afb2ba6d8 100644
--- a/android/.gitignore
+++ b/android/.gitignore
@@ -1,6 +1,7 @@
 .gradle
 .idea
 /android.iml
+/build.gradle
 /local.properties
 /lib/src/main/assets/etc/
 /lib/src/main/assets/example.odt
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 5d4be5d2a..abb4d01b0 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -5,6 +5,7 @@ apply from: 'appSettings.gradle'
 
 android {
 compileSdkVersion 28
+buildDir = "${rootProject.getBuildDir()}/app"
 
 defaultConfig {
 // applicationId, versionCode and versionName are defined in 
appSettings.gradle
diff --git a/android/build.gradle b/android/build.gradle.in
similarity index 94%
rename from android/build.gradle
rename to android/build.gradle.in
index 56532aa69..5b78812cb 100644
--- a/android/build.gradle
+++ b/android/build.gradle.in
@@ -1,4 +1,5 @@
 // Top-level build file where you can add configuration options common to all 
sub-projects/modules.
+buildDir = "@builddir@/build"
 
 buildscript {
 repositories {
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 0fa72b561..94d695190 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -5,6 +5,7 @@ apply from: 'libSettings.gradle'
 
 android {
 compileSdkVersion 28
+buildDir = "${rootProject.getBuildDir()}/lib"
 
 defaultConfig {
 minSdkVersion 21
@@ -58,6 +59,7 @@ android {
 externalNativeBuild {
 cmake {
 path "src/main/cpp/CMakeLists.txt"
+buildStagingDirectory "${rootProject.getBuildDir()}/cmake"
 }
 }
 }
diff --git a/configure.ac b/configure.ac
index b4bf69e97..939f407e8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1081,6 +1081,7 @@ fi
 
 if test "$enable_androidapp" = "yes"; then
 AC_CONFIG_FILES([android/Makefile
+ android/build.gradle
  android/app/appSettings.gradle
  android/lib/libSettings.gradle
  android/lib/src/main/cpp/CMakeLists.txt])
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-04-21 Thread Henry Castro (via logerrit)
 android/app/build.gradle |8 
 1 file changed, 8 insertions(+)

New commits:
commit e33c9303980d3818b830f38f14c227d16e4e2c1b
Author: Henry Castro 
AuthorDate: Mon Apr 20 10:41:50 2020 -0400
Commit: Henry Castro 
CommitDate: Tue Apr 21 15:50:01 2020 +0200

android: integrate gradle task to build loleaflet

Change-Id: I6f2d39d7986d3f9e477bad225e554c3bdb71d125
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92598
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 07f6aa41e..5d4be5d2a 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -72,3 +72,11 @@ dependencies {
 implementation 'androidx.preference:preference:1.1.0-alpha01'
 implementation project(path: ':lib')
 }
+
+task build_loleaflet(type: Exec) {
+   commandLine 'make', '-C', '../../'
+}
+
+afterEvaluate {
+   preBuild.dependsOn build_loleaflet
+}
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-04-20 Thread Henry Castro (via logerrit)
 android/app/build.gradle  |6 ++
 android/app/src/main/res/layout/navigation_header.xml |2 +-
 2 files changed, 7 insertions(+), 1 deletion(-)

New commits:
commit 972a5387fb780f125584601bcc10ec97ccf67a84
Author: Henry Castro 
AuthorDate: Mon Apr 13 15:28:13 2020 -0400
Commit: Henry Castro 
CommitDate: Mon Apr 20 23:45:38 2020 +0200

android: fix drawer_header_brand not found

./gradlew assemble

Execution failed for task ':app:processDebugResources'.
> A failure occurred while executing
com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
 android/app/src/main/res/layout/navigation_header.xml:8:
AAPT: error: resource drawable/drawer_header_brand
(aka org.libreoffice.androidapp.debug:drawable/drawer_header_brand) not 
found.

Change-Id: I0776e495b6215129202ca583306ed32a8ac51bd4
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92128
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 0ac10b9f6..07f6aa41e 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -21,6 +21,7 @@ android {
 resValue "string", "app_name", "${liboAppName} Debug"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+resValue "string", "image_draw_header", "@drawable/drawer_header"
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
@@ -35,6 +36,11 @@ android {
 resValue "string", "app_name", "${liboAppName}"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+if 
(file("src/main/res/drawable/drawer_header_brand.png").exists()) {
+resValue "string", "image_draw_header", 
"@drawable/drawer_header_brand"
+} else {
+resValue "string", "image_draw_header", 
"@drawable/drawer_header"
+}
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
diff --git a/android/app/src/main/res/layout/navigation_header.xml 
b/android/app/src/main/res/layout/navigation_header.xml
index 79889c36b..2b596bb5b 100644
--- a/android/app/src/main/res/layout/navigation_header.xml
+++ b/android/app/src/main/res/layout/navigation_header.xml
@@ -9,6 +9,6 @@
 android:layout_width="match_parent"
 android:layout_height="wrap_content"
 android:adjustViewBounds="true"
-android:src="@drawable/drawer_header_brand"/>
+android:src="@string/image_draw_header"/>
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-04-20 Thread Henry Castro (via logerrit)
 android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
|4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit f09d71bacab49530ed5c8033858e97bb7a35fb4c
Author: Henry Castro 
AuthorDate: Mon Apr 13 12:21:43 2020 -0400
Commit: Henry Castro 
CommitDate: Mon Apr 20 23:24:12 2020 +0200

android: fix missing brand resource

configured with no brand and I get the following error:

./gradlew assemble

: error: cannot find symbol
builder .setIcon(BuildConfig.APP_HAS_BRANDING? 
R.drawable.ic_launcher_brand: R.drawable.lo_icon)
  symbol:   variable ic_launcher_brand
  location: class drawable

Change-Id: Ibf3dcf581f12190ba4664b286710fc5a8ef43fe2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92120
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Henry Castro 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
index 89fd32e74..0afad916a 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
@@ -82,7 +82,9 @@ public class AboutDialogFragment extends DialogFragment {
 vendorView.setText(vendor);
 
 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
-builder .setIcon(BuildConfig.APP_HAS_BRANDING? 
R.drawable.ic_launcher_brand: R.drawable.lo_icon)
+int brandIcon = this.getResources().getIdentifier("ic_launcher_brand", 
"drawable",
+this.getActivity().getPackageName());
+builder .setIcon(BuildConfig.APP_HAS_BRANDING? brandIcon: 
R.drawable.lo_icon)
 .setTitle(R.string.app_name)
 .setView(messageView)
 .setNegativeButton(R.string.about_license, new 
DialogInterface.OnClickListener() {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-04-16 Thread mert (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
|8 ++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit 6c1f49d404663dcd305503083f6f4c5500a77800
Author: mert 
AuthorDate: Tue Apr 14 20:01:05 2020 +0300
Commit: Mert Tümer 
CommitDate: Fri Apr 17 07:56:23 2020 +0200

Android: fix tapping on file name doesn't open files anymore.

Change-Id: Ic5e34a1ee484fedc888d8fae58354241a3cd7beb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92212
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Mert Tümer 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index cf69e690e..f7a1b9151 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -115,12 +115,16 @@ class RecentFilesAdapter extends 
RecyclerView.Adapterhttps://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-04-15 Thread Weblate (via logerrit)
 android/app/src/main/res/values-en-rGB/strings.xml |2 
 android/app/src/main/res/values-it/strings.xml |2 
 android/app/src/main/res/values-kab/strings.xml|  105 +++
 android/app/src/main/res/values-nb-rNO/strings.xml |   23 +
 android/app/src/main/res/values-pl/strings.xml |2 
 android/lib/src/main/res/values-kab/strings.xml|   15 +
 android/lib/src/main/res/values-nb-rNO/strings.xml |5 
 loleaflet/po/help-ca.po|   26 -
 loleaflet/po/help-kab.po   |  290 +
 loleaflet/po/help-nb.po|   39 +-
 loleaflet/po/help-sl.po|   36 +-
 loleaflet/po/help-uk.po|   10 
 loleaflet/po/ios-en_GB.po  |   15 -
 loleaflet/po/ios-it.po |   15 -
 loleaflet/po/ios-kab.po|   19 -
 loleaflet/po/ios-pt.po |   11 
 loleaflet/po/ios-sl.po |   10 
 loleaflet/po/ui-ast.po |   14 -
 loleaflet/po/ui-en_GB.po   |8 
 loleaflet/po/ui-es.po  |4 
 loleaflet/po/ui-it.po  |8 
 loleaflet/po/ui-kab.po |  187 ++---
 loleaflet/po/ui-nb.po  |  166 +---
 loleaflet/po/ui-pt.po  |8 
 loleaflet/po/ui-sl.po  |8 
 loleaflet/po/ui-ug.po  |   29 +-
 26 files changed, 582 insertions(+), 475 deletions(-)

New commits:
commit ef25b5abc9aae813a449e0df88d8868b6af66fca
Author: Weblate 
AuthorDate: Tue Apr 14 20:36:43 2020 +0200
Commit: Andras Timar 
CommitDate: Wed Apr 15 11:45:08 2020 +0200

update translations

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

Change-Id: I3ad0b027f015027cabc7d498f37d384ddd19350e

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 61.5% (256 of 416 strings)

Change-Id: I6f4aa96b26b6af6ff02eff00a40fe3a8133c45be

update translations

LibreOffice Online/ios (Portuguese)
Currently translated at 60.0% (3 of 5 strings)

Change-Id: I2b844c4b059e3dd728df5912650e60f65f7053be

update translations

LibreOffice Online/loleaflet-ui (Uyghur)
Currently translated at 33.6% (98 of 292 strings)

Change-Id: I46dc25d98d561f6709b237f0a84b3f1e1da68e08

update translations

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

Change-Id: I851ff8f304149b96b6ed48244f1030a5175359ac

update translations

LibreOffice Online/ios (Slovenian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I849d9be6f25338a466effef314e42bf37d147027

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I4b1c0b76463911999063976975d4892f0210197e

update translations

LibreOffice Online/loleaflet-help (Kabyle)
Currently translated at 34.4% (143 of 416 strings)

Change-Id: I1d5925357b4cea2e8e9722fa6998c3d3c380a843

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I91b8a732bd2d0a2a7d212f6c0a47a21031eb44a5

update translations

LibreOffice Online/loleaflet-help (Kabyle)
Currently translated at 32.7% (136 of 416 strings)

Change-Id: Ib992b2f62569331988f33391f31dca9cf8905f0c

update translations

LibreOffice Online/loleaflet-help (Kabyle)
Currently translated at 13.9% (58 of 416 strings)

Change-Id: I744b65c54cf12a90a9e57054c38d0d89ced4a6df

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I4c1469053eb748b6bc8a4e670596558c879a5d28

update translations

LibreOffice Online/android-app (Polish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I870403d3085537585989f10d472b412727b87308

update translations

LibreOffice Online/ios (Italian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I0bf80f893ec4c040d655e18779c82c5736dcfc8b

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: Ic091131c12bffe52d6a69e50ead294e8b9f63b70

update translations

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

Change-Id: 

[Libreoffice-commits] online.git: android/app

2020-04-10 Thread mert (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
|4 
 1 file changed, 4 insertions(+)

New commits:
commit 93bf06a2078ade47db7c8a45ba448c3cc66aa96c
Author: mert 
AuthorDate: Fri Apr 10 12:39:35 2020 +0300
Commit: Jan Holesovsky 
CommitDate: Fri Apr 10 12:59:11 2020 +0200

android: Blind fix for an exception of getContentResolver

Change-Id: Iec24f014a2c82b8f4d4c134b9817651f558ecedb
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/92005
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index 380b4a64f..cf69e690e 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -76,6 +76,8 @@ class RecentFilesAdapter extends 
RecyclerView.Adapterhttps://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-04-07 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bg/strings.xml |2 ++
 android/app/src/main/res/values-pt/strings.xml |2 ++
 android/app/src/main/res/values-sk/strings.xml |3 +++
 android/lib/src/main/res/values-sk/strings.xml |5 +
 loleaflet/po/help-bg.po|   20 +++-
 loleaflet/po/help-cs.po|   10 +-
 loleaflet/po/help-sk.po|6 ++
 loleaflet/po/ios-ast.po|8 
 loleaflet/po/ios-bg.po |   15 ---
 loleaflet/po/ios-cs.po |   15 ---
 loleaflet/po/ios-dsb.po|   15 ---
 loleaflet/po/ios-hsb.po|   15 ---
 loleaflet/po/ios-nb.po |   15 ---
 loleaflet/po/ios-sk.po |8 
 loleaflet/po/ui-ast.po |4 ++--
 loleaflet/po/ui-bg.po  |   14 +-
 loleaflet/po/ui-cs.po  |   10 --
 loleaflet/po/ui-dsb.po |8 +++-
 loleaflet/po/ui-hsb.po |8 +++-
 loleaflet/po/ui-sk.po  |   14 +-
 20 files changed, 92 insertions(+), 105 deletions(-)

New commits:
commit 67d4f7add64f35e8ac5b310d4893c9d6fc86899c
Author: Weblate 
AuthorDate: Tue Apr 7 10:13:08 2020 +0200
Commit: Andras Timar 
CommitDate: Tue Apr 7 10:45:49 2020 +0200

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 36.6% (107 of 292 strings)

Change-Id: I064a4cd65d2da5c0868b723491374f5d8fa2010f

update translations

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

Change-Id: If97285f20b6a576be13782b7e6fac1da77106c56

update translations

LibreOffice Online/ios (Norwegian Bokmål)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I5ae4b60ad2ff62e1fb7ec07e4af62a71c4ca3fae

update translations

LibreOffice Online/ios (Asturian)
Currently translated at 80.0% (4 of 5 strings)

Change-Id: I34220c5e4a5070868047c2b446172d0a2143f1c8

update translations

LibreOffice Online/ios (Upper Sorbian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Ie7a92fd3deb77f4ae9ff963d5fcbd0188693f001

update translations

LibreOffice Online/ios (Lower Sorbian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I0c2c1847badc0f3457fa80a134429cc9b78e2d80

update translations

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

Change-Id: I404d21c68f8748e724ee028c0d8b98d17dda9bd4

update translations

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

Change-Id: I8c71fd434275e608ae6faf089732be64be7fd66e

update translations

LibreOffice Online/android-app (Bulgarian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I7cb45cf765460a75e9c56d66de2c0ce5c543eb43

update translations

LibreOffice Online/ios (Bulgarian)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: I8f87197b12c07809dd277d87739b8203be2561d1

update translations

LibreOffice Online/loleaflet-help (Bulgarian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I3b9e39b0229b8d01ed42012ca40e5b22b832838f

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 99.7% (291 of 292 strings)

Change-Id: I526e812b6c2012d9b53d15395468d6af7a9c9ef0

update translations

LibreOffice Online/android-app (Slovak)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I83290565e16c21c9f5c5f0fd6abdf3615c606e05

update translations

LibreOffice Online/android-lib (Slovak)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I10445623d69f6d9a46b7f24fc6781a488a98bb1b

update translations

LibreOffice Online/ios (Slovak)
Currently translated at 100.0% (5 of 5 strings)

Change-Id: Ieb8085e4ac8b2fd09b3de5c716a45d7eee74a5b2

update translations

LibreOffice Online/loleaflet-help (Slovak)
Currently translated at 98.6% (410 of 416 strings)

Change-Id: I93e8cabdc1084e54dc3771d2a9a1553107b28933

update translations

LibreOffice Online/loleaflet-ui (Slovak)
Currently translated at 100.0% (292 of 292 strings)

Change-Id: I5d38a321e0964155ac4636a08b2db8ff80ec0f7e

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 100.0% 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-03-31 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ca/strings.xml  |2 
 android/app/src/main/res/values-cs/strings.xml  |2 
 android/app/src/main/res/values-cy/strings.xml  |2 
 android/app/src/main/res/values-de/strings.xml  |2 
 android/app/src/main/res/values-dsb/strings.xml |2 
 android/app/src/main/res/values-es/strings.xml  |4 
 android/app/src/main/res/values-eu/strings.xml  |2 
 android/app/src/main/res/values-fr/strings.xml  |3 
 android/app/src/main/res/values-hsb/strings.xml |2 
 android/app/src/main/res/values-hu/strings.xml  |2 
 android/app/src/main/res/values-id/strings.xml  |  103 
 android/app/src/main/res/values-pl/strings.xml  |2 
 android/app/src/main/res/values-pt/strings.xml  |1 
 android/app/src/main/res/values-sl/strings.xml  |2 
 android/app/src/main/res/values-uk/strings.xml  |2 
 android/lib/src/main/res/values-dsb/strings.xml |5 
 android/lib/src/main/res/values-fr/strings.xml  |5 
 android/lib/src/main/res/values-hsb/strings.xml |5 
 android/lib/src/main/res/values-id/strings.xml  |   15 +
 android/lib/src/main/res/values-pt/strings.xml  |5 
 loleaflet/po/help-ca.po |6 
 loleaflet/po/help-cs.po |8 
 loleaflet/po/help-de.po |  306 +++-
 loleaflet/po/help-fr.po |   24 -
 loleaflet/po/help-id.po |   41 +--
 loleaflet/po/help-sl.po |  102 
 loleaflet/po/help-uk.po |   54 +---
 loleaflet/po/ui-fr.po   |   10 
 loleaflet/po/ui-id.po   |   94 ++-
 loleaflet/po/ui-pl.po   |6 
 30 files changed, 463 insertions(+), 356 deletions(-)

New commits:
commit 3b9447dedff8b1ad23a7a2a1d02eccf926801e50
Author: Weblate 
AuthorDate: Tue Mar 31 13:11:37 2020 +0200
Commit: Andras Timar 
CommitDate: Wed Apr 1 07:16:27 2020 +0200

update translations

LibreOffice Online/android-app (Welsh)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I56d19eaaa4d3fd12a4afeb6723b52135ab703f26

update translations

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

Change-Id: I43799c9be31c03ec6a512840f4fc9a97aeb6f7ae

update translations

LibreOffice Online/loleaflet-ui (Polish)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I60a64e29101867ace68d2e8aa22e3828626ecbae

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I6041cd7a735bb7cdea036b684044470f69ba82f6

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Iea44d2dadcc265aefd8e8d5fe1f2ee33f84a569e

update translations

LibreOffice Online/loleaflet-help (Ukrainian)
Currently translated at 60.6% (252 of 416 strings)

Change-Id: I262795efbaa30be7ef288d8af7f9ba4dc0235b4c

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 95.9% (399 of 416 strings)

Change-Id: Ie705e945482045597f1677cc54aa937601a79dc5

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ibdc258e2e23db38fe9766a0d07b1fcf8167ec6bf

update translations

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

Change-Id: Iafb77036828741f641182df60296dd37ac2f6907

update translations

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

Change-Id: I09df6904fb21373c6e92d294fcea8acf47231578

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I621d8f94440445bff805a4a27600f3fb69e46d2c

update translations

LibreOffice Online/android-app (Indonesian)
Currently translated at 95.1% (97 of 102 strings)

Change-Id: I2f926525980e8c6f533672c2975ea126fe5b2b3b

update translations

LibreOffice Online/android-app (Polish)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: I31df5c7a51d1e8c05480d84f8fe025d6a8c125c4

update translations

LibreOffice Online/android-lib (Indonesian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I30268db36a3b94fd4c50d626e75566a685164714

update translations

LibreOffice Online/android-app (German)
Currently translated at 100.0% (102 of 102 strings)

Change-Id: Ic8f0ae07605d102d1602303741827db9bdc3926d

update 

[Libreoffice-commits] online.git: android/app

2020-03-27 Thread mert (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   93 +-
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
   |   12 +
 android/app/src/main/res/drawable/ic_more_vert_black_24dp.xml  
|9 
 android/app/src/main/res/layout/file_explorer_grid_item.xml
|   49 +++--
 android/app/src/main/res/layout/file_list_item.xml 
|9 
 android/app/src/main/res/menu/context_menu.xml 
|2 
 android/app/src/main/res/values/strings.xml
|2 
 7 files changed, 119 insertions(+), 57 deletions(-)

New commits:
commit c07f4fb97492a5b833d44e2750c4fc5ca6879c7a
Author: mert 
AuthorDate: Tue Mar 24 01:31:32 2020 +0300
Commit: Andras Timar 
CommitDate: Fri Mar 27 15:32:59 2020 +0100

android: added context menu for the files

Change-Id: Iab18379797917ce2e8ab25ed428f6a806f5f4e7e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90944
Reviewed-by: Jan Holesovsky 
Tested-by: Jenkins CollaboraOffice 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index bd9116c94..c1d9df818 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -10,7 +10,6 @@
 package org.libreoffice.androidapp.ui;
 
 import android.Manifest;
-import android.app.AlertDialog;
 import android.content.ActivityNotFoundException;
 import android.content.BroadcastReceiver;
 import android.content.ComponentName;
@@ -22,6 +21,7 @@ import android.content.SharedPreferences;
 import android.content.pm.PackageManager;
 import android.content.pm.ShortcutInfo;
 import android.content.pm.ShortcutManager;
+import android.database.Cursor;
 import android.graphics.drawable.Icon;
 import android.hardware.usb.UsbManager;
 import android.net.Uri;
@@ -29,6 +29,8 @@ import android.os.Build;
 import android.os.Bundle;
 import android.preference.PreferenceManager;
 import android.provider.DocumentsContract;
+import android.provider.MediaStore;
+import android.provider.OpenableColumns;
 import android.provider.Settings;
 import android.text.Editable;
 import android.text.TextUtils;
@@ -77,6 +79,7 @@ import java.util.List;
 import androidx.annotation.NonNull;
 import androidx.appcompat.app.ActionBar;
 import androidx.appcompat.app.ActionBarDrawerToggle;
+import androidx.appcompat.app.AlertDialog;
 import androidx.appcompat.app.AppCompatActivity;
 import androidx.appcompat.widget.Toolbar;
 import androidx.core.app.ActivityCompat;
@@ -102,7 +105,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
 FileFilter fileFilter;
 FilenameFilter filenameFilter;
-private int currentlySelectedFile;
+private Uri currentlySelectedFile;
 
 /** The document that is being edited - to know what to save back to 
cloud. */
 //private IFile mCurrentDocument;
@@ -386,8 +389,8 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
 updateRecentFiles();
 
-// TODO allow context menu for the various files - for Open and Share
-//registerForContextMenu(fileRecyclerView);
+// allow context menu for the various files - for Open and Share
+registerForContextMenu(recentRecyclerView);
 
 setupNavigationDrawer();
 }
@@ -510,11 +513,25 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 case R.id.context_menu_share:
 share(currentlySelectedFile);
 return true;
+case R.id.context_menu_remove_from_list:
+removeFromList(currentlySelectedFile);
+return true;
 default:
 return super.onContextItemSelected(item);
 }
 }
 
+public void openContextMenu(View view, Uri uri) {
+
+this.currentlySelectedFile = uri;
+
+if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
+view.showContextMenu(view.getPivotX(), view.getPivotY());
+}
+else
+view.showContextMenu();
+}
+
 public boolean isViewModeList() {
 return prefs.getString(EXPLORER_VIEW_TYPE_KEY, 
GRID_VIEW).equals(LIST_VIEW);
 }
@@ -614,44 +631,42 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 }
 
 /** Context menu item handling. */
-private void share(int position) {
-/*
-new AsyncTask() {
-@Override
-protected File doInBackground(IFile... document) {
-// this operation may imply network access and must be run in
-// a different thread
-   

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-03-26 Thread Weblate (via logerrit)
 android/app/src/main/res/values-de/strings.xml |   38 +++
 android/app/src/main/res/values-he/strings.xml |  103 +-
 android/app/src/main/res/values-it/strings.xml |1 
 android/app/src/main/res/values-sl/strings.xml |1 
 android/app/src/main/res/values-sv/strings.xml |   17 +
 android/app/src/main/res/values-tr/strings.xml |3 
 android/lib/src/main/res/values-bg/strings.xml |3 
 android/lib/src/main/res/values-de/strings.xml |8 
 android/lib/src/main/res/values-en-rGB/strings.xml |5 
 android/lib/src/main/res/values-he/strings.xml |   15 +
 android/lib/src/main/res/values-it/strings.xml |5 
 android/lib/src/main/res/values-sl/strings.xml |5 
 android/lib/src/main/res/values-tr/strings.xml |4 
 loleaflet/po/help-ca.po|   62 +++---
 loleaflet/po/help-de.po|  155 +++
 loleaflet/po/help-es.po|4 
 loleaflet/po/help-it.po|   24 --
 loleaflet/po/help-sl.po|  216 ++---
 loleaflet/po/ui-de.po  |   55 ++---
 loleaflet/po/ui-he.po  |  109 --
 loleaflet/po/ui-it.po  |   10 
 loleaflet/po/ui-sl.po  |6 
 loleaflet/po/ui-tr.po  |   22 --
 23 files changed, 517 insertions(+), 354 deletions(-)

New commits:
commit 9c2f6382d28b0adc8563bd2a5bcc7236390b9fa3
Author: Weblate 
AuthorDate: Wed Mar 25 21:28:59 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Mar 26 12:00:37 2020 +0100

update translations

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

Change-Id: I8b49030c370d554db036a0e186d6332a9263d0d0

update translations

LibreOffice Online/android-lib (Slovenian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I70effac3f9908b12815c430931a2292bf5dbed5b

update translations

LibreOffice Online/android-app (Slovenian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ie1fd88e1eae85134679f9f7285ab3c1420bf15ad

update translations

LibreOffice Online/loleaflet-help (Slovenian)
Currently translated at 83.9% (349 of 416 strings)

Change-Id: I53b08543ba97e157fc0e505bd98d69e1c70237a7

update translations

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

Change-Id: Ib6cedbdedcbf1c14204aae5c6a26964b99a09867

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: I41024ff5c600da3f26471c00a5c06c0380b6c1ec

update translations

LibreOffice Online/android-lib (Turkish)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Ibc0f532df8170198be67b2699a8b3c265bffde23

update translations

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

Change-Id: I3ea29557fe41bc46faa7313875c095e5e45185fe

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 99.7% (289 of 290 strings)

Change-Id: Idbe17cd7b879bd1333a6fa5554309a5a437d82a8

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I39c6d1dca5c9acfb51ad46dea4fa549b38b9a220

update translations

LibreOffice Online/android-lib (Italian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I715122ed869741ae66f65efc8425b76fb024e0a8

update translations

LibreOffice Online/loleaflet-help (Italian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ide96c3d2ff684e67d1121c2d9bd3268353366f54

update translations

LibreOffice Online/loleaflet-ui (Italian)
Currently translated at 100.0% (290 of 290 strings)

Change-Id: Iab76b9dfc1a8835fe8fb226e4003d73b5057782c

update translations

LibreOffice Online/loleaflet-help (German)
Currently translated at 64.7% (269 of 416 strings)

Change-Id: I121156a5f5e9832237aa4eb7ed3bd88af3d2b14c

update translations

LibreOffice Online/loleaflet-ui (Hebrew)
Currently translated at 99.3% (288 of 290 strings)

Change-Id: I39c7a2d9bbc0dc4f3fa95e406561f9b313ec9e03

update translations

LibreOffice Online/android-app (Hebrew)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ib11902d876161296d1694b0e456c302355523424

update translations

LibreOffice Online/android-lib (Bulgarian)
Currently translated at 100.0% (12 of 12 

[Libreoffice-commits] online.git: android/app

2020-03-20 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/AndroidManifest.xml |1 +
 1 file changed, 1 insertion(+)

New commits:
commit db585f8c64b32ba423f5c311ddd04d39809d34b4
Author: Jan Holesovsky 
AuthorDate: Fri Mar 20 14:29:00 2020 +0100
Commit: Andras Timar 
CommitDate: Fri Mar 20 14:38:32 2020 +0100

android: Force portrait for the moment.

Change-Id: Ibd3964fb7e99264104ad46c26e6ff2e4e62b6559
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90794
Tested-by: Andras Timar 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 6912a0b57..ecda89bbb 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -51,6 +51,7 @@
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-03-20 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bg/strings.xml  |1 +
 android/lib/src/main/res/values-ast/strings.xml |2 ++
 android/lib/src/main/res/values-bg/strings.xml  |2 ++
 android/lib/src/main/res/values-ca/strings.xml  |1 +
 android/lib/src/main/res/values-cy/strings.xml  |5 +
 android/lib/src/main/res/values-es/strings.xml  |1 +
 android/lib/src/main/res/values-eu/strings.xml  |1 +
 loleaflet/po/help-ca.po |6 +++---
 loleaflet/po/help-es.po |   18 +++---
 9 files changed, 19 insertions(+), 18 deletions(-)

New commits:
commit 2bba146b28599481dd81fb0d1f57c0a856827107
Author: Weblate 
AuthorDate: Fri Mar 20 08:25:31 2020 +0100
Commit: Andras Timar 
CommitDate: Fri Mar 20 12:19:19 2020 +0100

update translations

LibreOffice Online/android-app (Bulgarian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Ia0adbe259646f2fda33a25b30f8811dc147cc5a3

update translations

LibreOffice Online/android-lib (Bulgarian)
Currently translated at 75.0% (9 of 12 strings)

Change-Id: I9206580869c83825c95c9079cc8fe052d860e2a9

update translations

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

Change-Id: If5c7bb3dab8e0d84010d7c4c3c149d5eed99183e

update translations

LibreOffice Online/android-lib (Asturian)
Currently translated at 58.3% (7 of 12 strings)

Change-Id: Ic5b84d1302c52727c27c7acc3d8f23ae39c286d5

update translations

LibreOffice Online/android-lib (Catalan)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Id176e6b42a7571fbfbacbbf00f6f9293f255f815

update translations

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

Change-Id: Ia75341ad1c6408648600e9f01702ac0408865d50

update translations

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

Change-Id: I09fda62f77693d651390db378eb9f2fa62f3c6e0

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I9b2cb58ac67e3136408b5493d4ab3d4c6e64e9a2

update translations

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

Change-Id: I0c4e7d1bfadcd652dc4450abfe65134b055e0060

update translations

LibreOffice Online/android-lib (Welsh)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Icda607bf7238045a1ade6f237fb18c61fb0bcff5

update translations

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

Change-Id: Iebbc610027b26b1202d6e1c78978ed35213e8bcd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90736
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-bg/strings.xml 
b/android/app/src/main/res/values-bg/strings.xml
index 3540dec88..30a5fd173 100644
--- a/android/app/src/main/res/values-bg/strings.xml
+++ b/android/app/src/main/res/values-bg/strings.xml
@@ -99,4 +99,5 @@
 Версия: %1$s, Build ID: %2$s
 Включва използването на 
дебъгера на Chrome в документа.
 Дебъгер на Chrome
+Настройки на редактора
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-ast/strings.xml 
b/android/lib/src/main/res/values-ast/strings.xml
index ab73e35e0..9f2f7300f 100644
--- a/android/lib/src/main/res/values-ast/strings.xml
+++ b/android/lib/src/main/res/values-ast/strings.xml
@@ -5,4 +5,6 @@
 Preparando 
pal primer aniciu dempués d\'un anovamientu.
 Ríquese permisu 
d\'almacenamientu
 Sero
+Nun pudo determinase qué ficheru 
cargar
+Colando…
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-bg/strings.xml 
b/android/lib/src/main/res/values-bg/strings.xml
index bcdef509d..affadd8f2 100644
--- a/android/lib/src/main/res/values-bg/strings.xml
+++ b/android/lib/src/main/res/values-bg/strings.xml
@@ -8,4 +8,6 @@
 Този файл е само за четене, 
записването е изключено.
 Записване...
 Подготвя се 
първо стартиране след актуализация.
+По-късно
+Оценяване сега
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-ca/strings.xml 
b/android/lib/src/main/res/values-ca/strings.xml
index e7ee2aaae..74682a355 100644
--- a/android/lib/src/main/res/values-ca/strings.xml
+++ b/android/lib/src/main/res/values-ca/strings.xml
@@ -12,4 +12,5 @@
 Més tard
 Si en gaudiu, poseu-li 5 estrelles al 
Google Play. Les vostres ressenyes positives són la nostra motivació més 
gran.
 Gràcies per utilitzar el %1$s!
+S\'està sortint…
 
\ No newline at end of file
diff --git 

[Libreoffice-commits] online.git: android/app android/lib

2020-03-19 Thread Jan Holesovsky (via logerrit)
 android/app/build.gradle |2 +-
 android/lib/build.gradle |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 583547926e5f47cbcbc96ade04df4d5766f46692
Author: Jan Holesovsky 
AuthorDate: Thu Mar 19 08:58:46 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Mar 19 09:03:55 2020 +0100

android: Breaking the build on extra translation is a nonsense.

The next translation update will kill the extra string anyway.

Change-Id: Ieda2ea51837e12fe40d2c85ff2d99afc65a2989b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90731
Tested-by: Andras Timar 
Reviewed-by: Andras Timar 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 6ca998f58..0ac10b9f6 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -13,7 +13,7 @@ android {
 }
 
 lintOptions {
-disable 'MissingTranslation'
+disable 'MissingTranslation', 'ExtraTranslation'
 }
 
 buildTypes {
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 812a8a7aa..0fa72b561 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -19,7 +19,7 @@ android {
 }
 
 lintOptions {
-disable 'MissingTranslation'
+disable 'MissingTranslation', 'ExtraTranslation'
 }
 
 buildTypes {
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib

2020-03-19 Thread Weblate (via logerrit)
 android/app/src/main/res/values-hu/strings.xml |1 +
 android/app/src/main/res/values-uk/strings.xml |1 +
 android/lib/src/main/res/values-cs/strings.xml |3 +++
 android/lib/src/main/res/values-hu/strings.xml |5 +
 android/lib/src/main/res/values-pl/strings.xml |5 +
 android/lib/src/main/res/values-pt-rBR/strings.xml |1 +
 android/lib/src/main/res/values-uk/strings.xml |5 +
 7 files changed, 21 insertions(+)

New commits:
commit 8f86c5929568fcbba9cc36c428744cbc58dc2dd4
Author: Weblate 
AuthorDate: Wed Mar 18 22:35:26 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Mar 19 09:01:45 2020 +0100

update translations

LibreOffice Online/android-app (Ukrainian)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: I1e0750a6d3fecb7736cc2df4c1e4b600187fd858

update translations

LibreOffice Online/android-lib (Czech)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I35f5302c62e6950459b2fdb0b169f9445f8b8034

update translations

LibreOffice Online/android-lib (Ukrainian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: Ide65bc2675a820111f150b13519ae2c1ec8b57c2

update translations

LibreOffice Online/android-lib (Polish)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I2917662b4663d3e13f5564e822f9f3652c1bcc7a

update translations

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

Change-Id: I82425b31fff35f1a00767d1497dc0123af9d4321

update translations

LibreOffice Online/android-lib (Hungarian)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I4ca0eb2624bbb7c90742bd42811c8c9be301e423

update translations

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

Change-Id: Ia25abe8feca105d849ca35a4f8e02e7b0aa8fab1
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90714
Tested-by: Andras Timar 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-hu/strings.xml 
b/android/app/src/main/res/values-hu/strings.xml
index d18f6bd2b..4cac2534b 100644
--- a/android/app/src/main/res/values-hu/strings.xml
+++ b/android/app/src/main/res/values-hu/strings.xml
@@ -99,4 +99,5 @@
 Dokumentum megosztása
 A Chrome hibakereső 
eszközének engedélyezése a dokumentumban
 Hibakeresés Chrome-mal
+A szerkesztő beállításai
 
\ No newline at end of file
diff --git a/android/app/src/main/res/values-uk/strings.xml 
b/android/app/src/main/res/values-uk/strings.xml
index f10ad51f2..a18ec71bd 100644
--- a/android/app/src/main/res/values-uk/strings.xml
+++ b/android/app/src/main/res/values-uk/strings.xml
@@ -99,4 +99,5 @@
 URL і порт хмарного сервера.
 URL сервера
 Експериментальна можливість: Використовувати, 
тільки якщо OTG пристрій доступний для запису.
+Налаштування Редактора
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-cs/strings.xml 
b/android/lib/src/main/res/values-cs/strings.xml
index 4bb7bf8eb..72170a53e 100644
--- a/android/lib/src/main/res/values-cs/strings.xml
+++ b/android/lib/src/main/res/values-cs/strings.xml
@@ -10,4 +10,7 @@
 Ukládání...
 Děkujeme, že používáte %1$s!
 Později
+Ukončování...
+Pokud se vám tato aplikace líbí, dejte jí 
na Google Play 5 hvězdiček. Příznivé recenze jsou pro nás tou nejlepší 
motivací.
+Ohodnotit nyní
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-hu/strings.xml 
b/android/lib/src/main/res/values-hu/strings.xml
index 8749b1a2f..bb910d83e 100644
--- a/android/lib/src/main/res/values-hu/strings.xml
+++ b/android/lib/src/main/res/values-hu/strings.xml
@@ -8,4 +8,9 @@
 Ez a fájl írásvédett, a mentés le 
van tiltva.
 Előkészülés a 
frissítés utáni első indításhoz.
 Mentés...
+Kilépés...
+Ha tetszik az alkalmazás, kérjük, adjon 5 
csillagot a Google Play-en. A pozitív visszajelzések motiválnak minket a 
legjobban.
+Köszönjük, hogy a %1$s-t 
használja!
+Később
+Értékelés most
 
\ No newline at end of file
diff --git a/android/lib/src/main/res/values-pl/strings.xml 
b/android/lib/src/main/res/values-pl/strings.xml
index 7bdb9e4ed..952a016f0 100644
--- a/android/lib/src/main/res/values-pl/strings.xml
+++ b/android/lib/src/main/res/values-pl/strings.xml
@@ -8,4 +8,9 @@
 Nie udało się określić pliku do 
załadowania
 Wymagane jest pozwolenie na 
przechowywanie
 Ten plik jest tylko do odczytu, 
zapisywanie jest wyłączone.
+Wychodzenie...
+Jeśli Ci się spodoba, daj nam 5 gwiazdek 
w Google Play. Twoja pozytywna recenzja jest naszą największą 
motywacją.
+Dziękujemy za używanie %1$s!
+Później
+Oceń teraz
 
\ No newline at end of file
diff --git 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-03-18 Thread Weblate (via logerrit)
 android/app/src/main/res/values-an/strings.xml |2 +
 android/app/src/main/res/values-ast/strings.xml|1 
 android/app/src/main/res/values-ca/strings.xml |1 
 android/app/src/main/res/values-cs/strings.xml |1 
 android/app/src/main/res/values-cy/strings.xml |1 
 android/app/src/main/res/values-dsb/strings.xml|1 
 android/app/src/main/res/values-en-rGB/strings.xml |1 
 android/app/src/main/res/values-es/strings.xml |1 
 android/app/src/main/res/values-eu/strings.xml |1 
 android/app/src/main/res/values-hsb/strings.xml|1 
 android/app/src/main/res/values-pl/strings.xml |1 
 android/app/src/main/res/values-pt-rBR/strings.xml |1 
 android/lib/src/main/res/values-ast/strings.xml|1 
 android/lib/src/main/res/values-ca/strings.xml |4 +++
 android/lib/src/main/res/values-cs/strings.xml |2 +
 android/lib/src/main/res/values-es/strings.xml |4 +++
 android/lib/src/main/res/values-eu/strings.xml |4 +++
 android/lib/src/main/res/values-pt-rBR/strings.xml |4 +++
 loleaflet/po/help-ca.po|6 ++--
 loleaflet/po/help-cs.po|   18 +
 loleaflet/po/help-en_GB.po |   28 +
 loleaflet/po/help-es.po|4 ---
 loleaflet/po/help-eu.po|   24 +++---
 loleaflet/po/help-hu.po|   12 -
 loleaflet/po/help-pt_BR.po |   26 ---
 loleaflet/po/ui-an.po  |4 +--
 loleaflet/po/ui-ast.po |4 +--
 loleaflet/po/ui-ca.po  |6 ++--
 loleaflet/po/ui-cy.po  |8 ++
 loleaflet/po/ui-dsb.po |4 +--
 loleaflet/po/ui-en_GB.po   |   10 +++
 loleaflet/po/ui-es.po  |6 ++--
 loleaflet/po/ui-eu.po  |4 +--
 loleaflet/po/ui-hsb.po |4 +--
 loleaflet/po/ui-pt_BR.po   |6 ++--
 loleaflet/po/ui-uk.po  |   10 +++
 36 files changed, 92 insertions(+), 124 deletions(-)

New commits:
commit ac2e0f3fe5863499ae2a42ce4457148b045cedcb
Author: Weblate 
AuthorDate: Wed Mar 18 18:29:22 2020 +0100
Commit: Andras Timar 
CommitDate: Wed Mar 18 19:35:25 2020 +0100

update translations

LibreOffice Online/android-lib (Czech)
Currently translated at 83.3% (10 of 12 strings)

Change-Id: Ic60bbaa41dfed7745258c56fcccf59a204451364

update translations

LibreOffice Online/android-lib (Asturian)
Currently translated at 41.7% (5 of 12 strings)

Change-Id: I34f5a37804d9b93e6733603a4fa41d4b45c70482

update translations

LibreOffice Online/android-lib (Catalan)
Currently translated at 100.0% (12 of 12 strings)

Change-Id: I3e4a5ac856b2c22272a2283751512ea461203375

update translations

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

Change-Id: I8bfcea884723f6f88d920e87f0409a98d8450874

update translations

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

Change-Id: I560a64c3caf626a3fc65d007fa79229ac49c8806

update translations

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

Change-Id: Ia8ea90608982a42040c661cdea546ddf760c7dc4

update translations

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

Change-Id: I2408a873216d84d6cb1cf5c28fa40e0f31e99fec

update translations

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

Change-Id: Id44155498d92fe1234a25489104b8662a8f198a7

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: Ia76ffa6e07afc4e8449c3511e8f1a6e1ce546b55

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 98.6% (410 of 416 strings)

Change-Id: I7d37d58fe29d379aef5f29d5f527474e52a41bcd

update translations

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

Change-Id: Ie499b21d573b15460d2e95d23819263fa7d9e2df

update translations

LibreOffice Online/android-app (Welsh)
Currently translated at 100.0% (100 of 100 strings)

Change-Id: Idca78e8ccf93abade03044faddede8c0efeab9fa

update translations

LibreOffice Online/android-app (English 

[Libreoffice-commits] online.git: android/app

2020-03-16 Thread mert (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   11 +
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
   |   57 +++---
 2 files changed, 54 insertions(+), 14 deletions(-)

New commits:
commit 10c695cfbbb8a9072388f5f0a03f557aa51955cf
Author: mert 
AuthorDate: Tue Mar 10 19:08:11 2020 +0300
Commit: Andras Timar 
CommitDate: Mon Mar 16 15:50:05 2020 +0100

android: fix crash on removed/renamed file on recent files

Change-Id: Iedeaba896ecca17c0c7e5c038b1c370b72484c68
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90290
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Mert Tümer 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 1ef2acc45..bd9116c94 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -113,7 +113,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 public static final String EXPLORER_VIEW_TYPE_KEY = "EXPLORER_VIEW_TYPE";
 public static final String EXPLORER_PREFS_KEY = "EXPLORER_PREFS";
 public static final String SORT_MODE_KEY = "SORT_MODE";
-private static final String RECENT_DOCUMENTS_KEY = "RECENT_DOCUMENTS_LIST";
+public static final String RECENT_DOCUMENTS_KEY = "RECENT_DOCUMENTS_LIST";
 private static final String ENABLE_SHOW_HIDDEN_FILES_KEY = 
"ENABLE_SHOW_HIDDEN_FILES";
 
 public static final String NEW_FILE_PATH_KEY = "NEW_FILE_PATH_KEY";
@@ -208,6 +208,12 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 recentRecyclerView.setAdapter(new RecentFilesAdapter(this, 
recentUris));
 }
 
+/** access shared preferences from the activity instance */
+public SharedPreferences getPrefs()
+{
+return prefs;
+}
+
 /** Create the Navigation menu and set up the actions and everything 
there. */
 public void setupNavigationDrawer() {
 drawerLayout = findViewById(R.id.drawer_layout);
@@ -986,6 +992,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 Uri shortcutUri = Uri.parse(pathString);
 String filename = RecentFilesAdapter.getUriFilename(this, 
shortcutUri);
 
+if (filename == null)
+continue;
+
 Intent intent = getIntentToEdit(shortcutUri);
 ShortcutInfo.Builder builder = new ShortcutInfo.Builder(this, 
filename)
 .setShortLabel(filename)
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index 4a06899a9..371b7ab03 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -22,6 +22,7 @@ import android.widget.TextView;
 import org.libreoffice.androidapp.R;
 
 import java.text.SimpleDateFormat;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.List;
 
@@ -34,11 +35,11 @@ class RecentFilesAdapter extends 
RecyclerView.Adapter recentUris;
+private ArrayList recentFiles;
 
 RecentFilesAdapter(LibreOfficeUIActivity activity, List recentUris) {
 this.mActivity = activity;
-this.recentUris = recentUris;
+initRecentFiles(recentUris);
 }
 
 @Override
@@ -47,6 +48,26 @@ class RecentFilesAdapter extends 
RecyclerView.Adapter recentUris) {
+this.recentFiles = new ArrayList<>();
+boolean invalidUriFound = false;
+String joined = "";
+for (Uri u: recentUris) {
+String filename = getUriFilename(mActivity, u);
+if (null != filename) {
+long length = getUriFileLength(mActivity, u);
+recentFiles.add(new RecentFile(u, filename, length));
+joined = joined.concat(u.toString()+"\n");
+}
+else
+invalidUriFound = true;
+}
+if (invalidUriFound) {
+
mActivity.getPrefs().edit().putString(mActivity.RECENT_DOCUMENTS_KEY, 
joined).apply();
+}
+}
+
 /** Return the filename of the given Uri. */
 public static String getUriFilename(Activity activity, Uri uri) {
 String filename = "";
@@ -60,11 +81,8 @@ class RecentFilesAdapter extends 
RecyclerView.Adapter segments = uri.getPathSegments();
-if (segments.size() > 0)
-filename = segments.get(segments.size() - 1);
-}
+if (filename.isEmpty())
+return null;
 
 return filename;
 }
@@ -91,17 +109,18 @@ class 

[Libreoffice-commits] online.git: android/app

2020-03-16 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/AndroidManifest.xml |3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 829ddbdbf3f4761473eb03c09657bb3079c99557
Author: Jan Holesovsky 
AuthorDate: Thu Mar 12 19:24:25 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Mon Mar 16 09:52:02 2020 +0100

android: Make the app movable to the SD card.

Change-Id: Ib5bfe6e4a403efa3e0ec294dadcfad6f410b6b1b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90484
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 79cea3f49..6912a0b57 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -1,6 +1,7 @@
 
 http://schemas.android.com/apk/res/android;
-package="org.libreoffice.androidapp">
+package="org.libreoffice.androidapp"
+android:installLocation="auto">
 
 https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib

2020-03-16 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
|3 ---
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |8 
 android/app/src/main/res/menu/navigation_menu.xml  
|4 ++--
 android/app/src/main/res/values/strings.xml
|1 +
 android/app/src/main/res/xml/libreoffice_preferences.xml   
|9 -
 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java   
|8 +++-
 android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java
|5 -
 7 files changed, 22 insertions(+), 16 deletions(-)

New commits:
commit 05198a9723dec59eeae6e4ba9f3a9856938acc21
Author: Jan Holesovsky 
AuthorDate: Sat Mar 14 00:07:50 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Mon Mar 16 09:51:27 2020 +0100

android: Re-introduce Settings in the Navigation menu.

Contains only the ability to turn on the chrome://inspect debugging even
in the production builds.

Change-Id: I2acc4a13851ed8140cb5b95712a684a56f29dfa2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90485
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
index 510979a7a..c51d098af 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
@@ -34,9 +34,6 @@ public class SettingsActivity extends AppCompatActivity {
 if (!BuildConfig.DEBUG) {
 findPreference("ENABLE_SHOW_DEBUG_INFO").setVisible(false);
 }
-else {
-findPreference("ENABLE_CHROME_DEBUGGING").setVisible(false);
-}
 }
 
 @Override
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index c9989069a..1ef2acc45 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -272,14 +272,14 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 break;
 */
 
+case R.id.action_settings:
+startActivity(new Intent(getApplicationContext(), 
SettingsActivity.class));
+return true;
+
 case R.id.action_about:
 AboutDialogFragment aboutDialogFragment = new 
AboutDialogFragment();
 aboutDialogFragment.show(getSupportFragmentManager(), 
"AboutDialogFragment");
 return true;
-
-/*case R.id.action_settings:
-startActivity(new Intent(getApplicationContext(), 
SettingsActivity.class));
-return true;*/
 }
 return false;
 }
diff --git a/android/app/src/main/res/menu/navigation_menu.xml 
b/android/app/src/main/res/menu/navigation_menu.xml
index 55f86fcab..b89655b9f 100644
--- a/android/app/src/main/res/menu/navigation_menu.xml
+++ b/android/app/src/main/res/menu/navigation_menu.xml
@@ -48,10 +48,10 @@
 android:title="@string/sort_oldest"/>
 
 
-
+
 
 
+  android:title="@string/action_settings"/>
 
 
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 663779278..29213c2df 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -17,6 +17,7 @@
 List
 Grid
 File Manager Settings
+Editor Settings
 Hidden Files/Folders
 Enable to show hidden 
files/folders
 Select how to order files: A-Z, by size 
or by date.
diff --git a/android/app/src/main/res/xml/libreoffice_preferences.xml 
b/android/app/src/main/res/xml/libreoffice_preferences.xml
index 7ffdbd8dd..f8a3b14f5 100644
--- a/android/app/src/main/res/xml/libreoffice_preferences.xml
+++ b/android/app/src/main/res/xml/libreoffice_preferences.xml
@@ -1,7 +1,7 @@
 
 http://schemas.android.com/apk/res/android;
 xmlns:app="http://schemas.android.com/apk/res-auto;>
-
@@ -29,6 +29,13 @@
 android:defaultValue="false"
 app:iconSpaceReserved="false" />
 
+
+
+
+
 https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
-if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
-if ((getApplicationInfo().flags & 

[Libreoffice-commits] online.git: android/app

2020-03-12 Thread RutuKendre (via logerrit)
 android/app/src/main/res/layout/activity_document_browser.xml |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 60f2e0d709dc823a1c3668e9ed9c2ad6231ffa40
Author: RutuKendre 
AuthorDate: Wed Mar 11 15:03:04 2020 +0530
Commit: Jan Holesovsky 
CommitDate: Thu Mar 12 19:27:10 2020 +0100

android: Fix overflow by changing height from 48dp to wrap_content for 
recent files textview

Change-Id: I5a2341cb1f2921d93767fe88e3e7847bc71a443e
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90317
Tested-by: Jan Holesovsky 
Reviewed-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/layout/activity_document_browser.xml 
b/android/app/src/main/res/layout/activity_document_browser.xml
index 44b01b52a..e7ac16548 100644
--- a/android/app/src/main/res/layout/activity_document_browser.xml
+++ b/android/app/src/main/res/layout/activity_document_browser.xml
@@ -59,7 +59,7 @@
 https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-03-11 Thread Tomaž Vajngerl (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   13 --
 1 file changed, 11 insertions(+), 2 deletions(-)

New commits:
commit fb27d9a79679f6aac5f2199163d5ba3e6421f2e5
Author: Tomaž Vajngerl 
AuthorDate: Mon Mar 9 11:25:52 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Mar 11 15:57:22 2020 +0100

android: fix opening document because activity is not found

Opening a document with Intent.ACTION_OPEN_DOCUMENT is only
supported with Android SDK >= 19, so for complete support we need
to add a fallback to Intent.ACTION_GET_CONTENT. Additionally if
the activity Intent.ACTION_OPEN_DOCUMENT is not found for whatever
reason, also try to start it with the fallback.

Change-Id: I0e28a3bb038a5d44716856e5c015223933c6de6b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90210
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 10652f005..c9989069a 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -11,6 +11,7 @@ package org.libreoffice.androidapp.ui;
 
 import android.Manifest;
 import android.app.AlertDialog;
+import android.content.ActivityNotFoundException;
 import android.content.BroadcastReceiver;
 import android.content.ComponentName;
 import android.content.Context;
@@ -660,8 +661,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 private void openDocument() {
 collapseFabMenu();
 
-Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT);
-
+Intent i = new Intent();
 i.addCategory(Intent.CATEGORY_OPENABLE);
 
 // set only the allowed mime types
@@ -724,6 +724,15 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 // TODO and that should default to 
Context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)
 //i.putExtra(DocumentsContract.EXTRA_INITIAL_URI, 
previousDirectoryPath);
 
+try {
+i.setAction(Intent.ACTION_OPEN_DOCUMENT);
+startActivityForResult(i, OPEN_FILE_REQUEST_CODE);
+return;
+} catch (ActivityNotFoundException exception) {
+Log.w(LOGTAG, "Start of activity with ACTION_OPEN_DOCUMENT failed 
(no activity found). Trying the fallback.");
+}
+// Fallback
+i.setAction(Intent.ACTION_GET_CONTENT);
 startActivityForResult(i, OPEN_FILE_REQUEST_CODE);
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-03-10 Thread Tomaž Vajngerl (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
|6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit 943ef670b5b58b18a291006f0b7a62a96baee25c
Author: Tomaž Vajngerl 
AuthorDate: Mon Mar 9 10:35:11 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Mar 10 14:25:35 2020 +0100

android: handle security exception in recent files

Change-Id: Iad7de414ab94a8d9a2997cb8d6c64d0544fc7c77
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/90209
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index df162477b..4a06899a9 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -50,8 +50,9 @@ class RecentFilesAdapter extends 
RecyclerView.Adapterhttps://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib

2020-03-02 Thread Tomaž Vajngerl (via logerrit)
 android/app/src/main/AndroidManifest.xml |4 -
 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java |   34 
+-
 2 files changed, 34 insertions(+), 4 deletions(-)

New commits:
commit 65a19d4e216b279d27c7c6bd58c03ee3586fc93a
Author: Tomaž Vajngerl 
AuthorDate: Mon Mar 2 09:32:15 2020 +0100
Commit: Tomaž Vajngerl 
CommitDate: Mon Mar 2 19:04:55 2020 +0100

android: reuse an already open activity when starting a new one

This sets the "launchMode" of the LOActivity to "singleTask" and
implements "onNewIntent". This is necessary so that we don't
duplicate LOActivity instances, as that isn't handled correctly
and can cause a freeze or in some cases that text input from one
instance is sent to the other. The back button stack isn't ideal
as it still can return us to LibreOfficeUIActivity even when the
activity is started from some other app, but this at least is
consistent with how some other apps work.

Change-Id: Idd11214578ec124661e2612bb49ba7e4bc4f3cea
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89811
Reviewed-by: Michael Meeks 
Tested-by: Jenkins CollaboraOffice 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 5d1f2b091..79cea3f49 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -35,7 +35,6 @@
 android:label="@string/app_name">
 
 
-
 
 
 
@@ -50,7 +49,8 @@
 
 
+
android:configChanges="orientation|screenSize|screenLayout|keyboardHidden"
+android:launchMode="singleTask">
 
 
 
diff --git 
a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java 
b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
index ef8aa9bf3..c7796d05c 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -397,6 +397,36 @@ public class LOActivity extends AppCompatActivity {
 }
 }
 
+@Override
+protected void onNewIntent(Intent intent) {
+
+Log.i(TAG, "onNewIntent");
+
+if (documentLoaded) {
+postMobileMessageNative("save dontTerminateEdit=true 
dontSaveIfUnmodified=true");
+}
+
+final Intent finalIntent = intent;
+mProgressDialog.indeterminate(R.string.saving);
+mainHandler.post(new Runnable() {
+@Override
+public void run() {
+documentLoaded = false;
+postMobileMessageNative("BYE");
+copyTempBackToIntent();
+runOnUiThread(new Runnable() {
+@Override
+public void run() {
+mProgressDialog.dismiss();
+setIntent(finalIntent);
+init();
+}
+});
+}
+});
+super.onNewIntent(intent);
+}
+
 @Override
 protected void onSaveInstanceState(@NonNull Bundle outState) {
 super.onSaveInstanceState(outState);
@@ -417,7 +447,7 @@ public class LOActivity extends AppCompatActivity {
 loadDocument();
 } else {
 Toast.makeText(this, 
getString(R.string.storage_permission_required), Toast.LENGTH_SHORT).show();
-finish();
+finishAndRemoveTask();
 break;
 }
 break;
@@ -626,7 +656,7 @@ public class LOActivity extends AppCompatActivity {
 }
 });*/
 
-finish();
+finishAndRemoveTask();
 }
 });
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-02-29 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   20 --
 1 file changed, 20 deletions(-)

New commits:
commit a5410a126f283f28b583ef7916e8d55cc077101b
Author: Jan Holesovsky 
AuthorDate: Fri Feb 28 15:45:34 2020 +0100
Commit: Michael Meeks 
CommitDate: Sat Feb 29 11:03:14 2020 +0100

android: No need for a USB device attached/detached receiver any more.

This was needed before we switched to using the Content provider
framework.

Change-Id: I3906069ad3dc04a957f768b9ed02463aeaa4470f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89732
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 4651a85bb..10652f005 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -164,12 +164,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
 SettingsListenerModel.getInstance().setListener(this);
 
-// Registering the USB detect broadcast receiver
-IntentFilter filter = new IntentFilter();
-filter.addAction(UsbManager.ACTION_USB_DEVICE_ATTACHED);
-filter.addAction(UsbManager.ACTION_USB_DEVICE_DETACHED);
-registerReceiver(mUSBReceiver, filter);
-
 // Register the LOActivity events broadcast receiver
 
LocalBroadcastManager.getInstance(this).registerReceiver(mLOActivityReceiver,
   new IntentFilter(LOActivity.LO_ACTIVITY_BROADCAST));
@@ -820,19 +814,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 //Log.d(LOGTAG, currentDirectory.toString() + 
Integer.toString(filterMode));
 }
 
-private final BroadcastReceiver mUSBReceiver = new BroadcastReceiver() {
-public void onReceive(Context context, Intent intent) {
-String action = intent.getAction();
-if (UsbManager.ACTION_USB_DEVICE_ATTACHED.equals(action)) {
-Toast.makeText(context, R.string.usb_connected_configure, 
Toast.LENGTH_SHORT).show();
-//startActivity(new Intent(context, 
DocumentProviderSettingsActivity.class));
-Log.d(LOGTAG, "USB device attached");
-} else if (UsbManager.ACTION_USB_DEVICE_DETACHED.equals(action)) {
-Log.d(LOGTAG, "USB device detached");
-}
-}
-};
-
 /** Receiver for receiving messages from LOActivity - like that Save was 
performed and similar. */
 private final BroadcastReceiver mLOActivityReceiver = new 
BroadcastReceiver() {
 @Override
@@ -925,7 +906,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 @Override
 protected void onDestroy() {
 super.onDestroy();
-unregisterReceiver(mUSBReceiver);
 
LocalBroadcastManager.getInstance(this).unregisterReceiver(mLOActivityReceiver);
 Log.d(LOGTAG, "onDestroy");
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-02-25 Thread Weblate (via logerrit)
 android/app/src/main/res/values-cs/strings.xml  |2 +-
 android/app/src/main/res/values-dsb/strings.xml |2 +-
 android/app/src/main/res/values-eu/strings.xml  |2 +-
 android/app/src/main/res/values-hsb/strings.xml |2 +-
 android/app/src/main/res/values-hu/strings.xml  |2 +-
 android/app/src/main/res/values-pt/strings.xml  |2 +-
 android/lib/src/main/res/values-hu/strings.xml  |2 ++
 loleaflet/po/ui-bg.po   |8 
 loleaflet/po/ui-ca.po   |6 +++---
 loleaflet/po/ui-cs.po   |4 ++--
 loleaflet/po/ui-cy.po   |8 
 loleaflet/po/ui-de.po   |   10 +-
 loleaflet/po/ui-dsb.po  |6 +++---
 loleaflet/po/ui-el.po   |6 +++---
 loleaflet/po/ui-en_GB.po|8 
 loleaflet/po/ui-es.po   |8 
 loleaflet/po/ui-eu.po   |6 +++---
 loleaflet/po/ui-fr.po   |6 +++---
 loleaflet/po/ui-gl.po   |8 
 loleaflet/po/ui-hsb.po  |6 +++---
 loleaflet/po/ui-hu.po   |8 
 loleaflet/po/ui-is.po   |   20 +---
 loleaflet/po/ui-it.po   |6 +++---
 loleaflet/po/ui-nl.po   |6 +++---
 loleaflet/po/ui-pl.po   |6 +++---
 loleaflet/po/ui-pt.po   |4 ++--
 loleaflet/po/ui-pt_BR.po|6 +++---
 loleaflet/po/ui-ru.po   |6 +++---
 loleaflet/po/ui-sl.po   |   20 +---
 loleaflet/po/ui-tr.po   |8 
 loleaflet/po/ui-uk.po   |6 +++---
 loleaflet/po/ui-zh_TW.po|8 
 32 files changed, 103 insertions(+), 105 deletions(-)

New commits:
commit 6f7229802647b6b2b8001e4232e2720dba03a14e
Author: Weblate 
AuthorDate: Sun Feb 23 19:15:54 2020 +0100
Commit: Andras Timar 
CommitDate: Tue Feb 25 11:21:10 2020 +0100

update translations

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

Change-Id: Ic104628d67d59f73041eb106ac50d50848cbde6e

update translations

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

Change-Id: I143fa07f1cbfeb73d3b1833f16dc26550db7e43e

update translations

LibreOffice Online/android-app (Basque)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: I1887ef80e1f1cd243ab870e44adb174b15a88368

update translations

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

Change-Id: Idaeda0a44b3143cf10459b80225bd2d49b888f40

update translations

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

Change-Id: I1468acbb78f393081eba42fc385732f4c31712f6

update translations

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

Change-Id: Ida536ad1b0a194eb37bddaae056f335f3d7e8a65

update translations

LibreOffice Online/android-lib (Hungarian)
Currently translated at 100.0% (8 of 8 strings)

Change-Id: I2bc806914e12e3fce7cfb5840448b544bc70c315

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I2c396e85bfbac4ebc48d75738082f9522a40b487

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I705356ab54afae9aaee238e078ea432c3410bbcd

update translations

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

Change-Id: Ida18a8145a8e2bb718f7ca87e35427b21a74f11c

update translations

LibreOffice Online/loleaflet-ui (Slovenian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: Ib583b1efe8aefe154eb286e5cfda350c0438654e

update translations

LibreOffice Online/loleaflet-ui (Russian)
Currently translated at 100.0% (288 of 288 strings)

Change-Id: I9f1b78c644f3f15a25e218b84eefb0f0e3ce4548

update translations

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

Change-Id: I7e8026c4fb0c0a24186681f5ea3ebf19a7edcebe

update translations

LibreOffice Online/loleaflet-ui (Portuguese)
Currently translated at 100.0% (288 

[Libreoffice-commits] online.git: android/app

2020-02-24 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/AndroidManifest.xml |   18 --
 1 file changed, 16 insertions(+), 2 deletions(-)

New commits:
commit cd8bc110d9e97a160304b46b3f7c9e44c437670c
Author: Jan Holesovsky 
AuthorDate: Mon Feb 24 14:56:07 2020 +0100
Commit: Michael Meeks 
CommitDate: Mon Feb 24 18:52:20 2020 +0100

android: Don't restart the app when the orientation changes.

We handle the screen size change just fine, no need to restart
everything.

Change-Id: Ic272d1bbaa343c62c98fe1ca68239260779ed367
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89346
Tested-by: Michael Meeks 
Reviewed-by: Michael Meeks 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 25109c11f..5d1f2b091 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -23,11 +23,15 @@
 android:supportsRtl="true"
 android:theme="@style/LibreOfficeTheme">
 
-
+
 
 
 
 
@@ -42,7 +46,11 @@
 
 
 
-
+
+
+
 
 
 
@@ -108,12 +116,18 @@
 
 
 
+
+
 
+
+
 
 
 https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-02-24 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/res/layout/activity_document_browser.xml |  195 --
 1 file changed, 97 insertions(+), 98 deletions(-)

New commits:
commit 0bc1f92b3d9138d4bdff3874b42715abc25cd5c3
Author: Jan Holesovsky 
AuthorDate: Sat Feb 22 13:32:59 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Mon Feb 24 13:49:02 2020 +0100

android shell: Use the CoordinatorLayout for the shell.

Hides the toolbar nicely when scrolling the content & the scrolling is
smoother with it too.

Change-Id: I618fece423749c3eb99c949e6f8d456ee9cf3c38
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89251
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/layout/activity_document_browser.xml 
b/android/app/src/main/res/layout/activity_document_browser.xml
index 17b358fc0..44b01b52a 100644
--- a/android/app/src/main/res/layout/activity_document_browser.xml
+++ b/android/app/src/main/res/layout/activity_document_browser.xml
@@ -7,32 +7,27 @@
  file, You can obtain one at http://mozilla.org/MPL/2.0/.
  -->
 
-http://schemas.android.com/apk/res/android;
+http://schemas.android.com/apk/res/android;
 xmlns:app="http://schemas.android.com/apk/res-auto;
 xmlns:tools="http://schemas.android.com/tools;
+android:id="@+id/drawer_layout"
 android:layout_width="match_parent"
 android:layout_height="match_parent"
-android:orientation="vertical">
+android:clickable="true"
+android:focusableInTouchMode="true"
+android:focusable="true">
 
-
+
 
-
+
 
-
+android:layout_height="wrap_content">
 
 
+app:popupTheme="@style/LibreOfficeTheme"
+app:layout_scrollFlags="enterAlways|scroll" />
 
-
+
 
-
+
+
+android:orientation="vertical">
 
 
+android:layout_height="wrap_content"
+android:orientation="horizontal">
 
-
+
+
+
+
+
+
+
+android:layout_marginTop="8dp"
+android:layout_marginBottom="8dp" >
 
-
-
-
-
+
 
-
+android:layout_height="match_parent"
+android:layout_marginTop="16dp"
+android:orientation="horizontal">
 
-
+android:layout_weight="3" />
 
-
+
 
-
-
-
-
-
-
-
-
-
-
+android:layout_height="wrap_content"
+android:layout_weight="3" />
+
 
-
-
+
+
+
+
+
+
+
+
+
 
 

 
-
-
+
 
-
+
+
+
 
-
+
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-02-21 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   67 ++
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
   |   59 +---
 2 files changed, 80 insertions(+), 46 deletions(-)

New commits:
commit 59296ecbaab04a1dfd6ba5a80ff108fa6e65dc4c
Author: Jan Holesovsky 
AuthorDate: Fri Feb 21 18:38:38 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Sat Feb 22 08:29:21 2020 +0100

android shell: Correct names for the Dynamic shortcuts + make them 
read/write.

Dynamic shortcuts == the long press on the app icon to edit recent
documents.

Also fixes crashing with too many recent documents.

Change-Id: I844e60de6523039889539cfe1e3c1bb70dc062bc
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89235
Tested-by: Jan Holesovsky 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index a4a69b2fc..4651a85bb 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -87,6 +87,8 @@ import androidx.recyclerview.widget.GridLayoutManager;
 import androidx.recyclerview.widget.LinearLayoutManager;
 import androidx.recyclerview.widget.RecyclerView;
 
+import static 
androidx.core.content.pm.ShortcutManagerCompat.getMaxShortcutCountPerActivity;
+
 public class LibreOfficeUIActivity extends AppCompatActivity implements 
SettingsListenerModel.OnSettingsPreferenceChangedListener {
 private String LOGTAG = LibreOfficeUIActivity.class.getSimpleName();
 private SharedPreferences prefs;
@@ -524,13 +526,8 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 prefs.edit().putString(EXPLORER_VIEW_TYPE_KEY, LIST_VIEW).apply();
 }
 
-/** Start editing of the given Uri. */
-public void open(final Uri uri) {
-if (uri == null)
-return;
-
-addDocumentToRecents(uri);
-
+/** Build Intent to edit a Uri. */
+public Intent getIntentToEdit(Uri uri) {
 Intent i = new Intent(Intent.ACTION_EDIT, uri);
 i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
 i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
@@ -539,6 +536,17 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 ComponentName componentName = new ComponentName(packageName, 
LOActivity.class.getName());
 i.setComponent(componentName);
 
+return i;
+}
+
+/** Start editing of the given Uri. */
+public void open(final Uri uri) {
+if (uri == null)
+return;
+
+addDocumentToRecents(uri);
+
+Intent i = getIntentToEdit(uri);
 startActivityForResult(i, LO_ACTIVITY_REQUEST_CODE);
 }
 
@@ -949,19 +957,27 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 String joined = TextUtils.join("\n", recentsArrayList);
 prefs.edit().putString(RECENT_DOCUMENTS_KEY, joined).apply();
 
-//update app shortcuts (7.0 and above)
+// Update app shortcuts (7.0 and above)
 if (android.os.Build.VERSION.SDK_INT >= 
android.os.Build.VERSION_CODES.N_MR1) {
 ShortcutManager shortcutManager = 
getSystemService(ShortcutManager.class);
 
-//Remove all shortcuts, and apply new ones.
+// Remove all shortcuts, and apply new ones.
 shortcutManager.removeAllDynamicShortcuts();
 
 ArrayList shortcuts = new ArrayList();
+int i = 0;
 for (String pathString : recentsArrayList) {
 if (pathString.isEmpty())
 continue;
 
-//find the appropriate drawable
+// I cannot see more than 3 anyway, and with too many we get
+// an exception, so let's limit to 3
+if (i >= 3 || i >= getMaxShortcutCountPerActivity(this))
+break;
+
+++i;
+
+// Find the appropriate drawable
 int drawable = 0;
 switch (FileUtilities.getType(pathString)) {
 case FileUtilities.DOC:
@@ -978,27 +994,26 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 break;
 }
 
-// TODO better way to get the filename for content: uris
-File file = new File(pathString);
+Uri shortcutUri = Uri.parse(pathString);
+String filename = RecentFilesAdapter.getUriFilename(this, 
shortcutUri);
 
-//for some reason, getName uses %20 instead of space
-String filename = file.getName().replace("%20", " ");
-
-

[Libreoffice-commits] online.git: android/app

2020-02-21 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 3840b42e98fd2276b85d55032447f04f02ac46eb
Author: Jan Holesovsky 
AuthorDate: Fri Feb 21 17:33:10 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Fri Feb 21 18:40:48 2020 +0100

android shell: When creating documents, try to default to the Documents dir.

No idea if all the devices have this, and also it is API 26+, but at
least something; the default view is a mess.

Change-Id: Icd9aa55e91bc7b35285044fdcfc335d426d9
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/89231
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index dff39f242..a4a69b2fc 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -27,6 +27,7 @@ import android.net.Uri;
 import android.os.Build;
 import android.os.Bundle;
 import android.preference.PreferenceManager;
+import android.provider.DocumentsContract;
 import android.provider.Settings;
 import android.text.Editable;
 import android.text.TextUtils;
@@ -553,9 +554,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
 i.putExtra(Intent.EXTRA_TITLE, defaultFileName);
 
-// TODO remember where the user picked the file the last time
-// TODO and that should default to 
Context.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)
-//i.putExtra(DocumentsContract.EXTRA_INITIAL_URI, 
previousDirectoryPath);
+// Try to default to the Documents folder
+Uri documentsUri = 
Uri.parse("content://com.android.externalstorage.documents/document/home%3A");
+i.putExtra(DocumentsContract.EXTRA_INITIAL_URI, documentsUri);
 
 startActivityForResult(i, requestCode);
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-02-18 Thread Weblate (via logerrit)
 android/app/src/main/res/values-cs/strings.xml |4 
 android/app/src/main/res/values-en-rGB/strings.xml |2 
 android/app/src/main/res/values-eo/strings.xml |3 
 android/app/src/main/res/values-es/strings.xml |2 
 android/app/src/main/res/values-it/strings.xml |2 
 android/app/src/main/res/values-pl/strings.xml |  102 
 android/app/src/main/res/values-sk/strings.xml |  102 
 android/app/src/main/res/values-zh-rTW/strings.xml |   92 
 android/lib/src/main/res/values-ast/strings.xml|1 
 android/lib/src/main/res/values-bg/strings.xml |1 
 android/lib/src/main/res/values-ca/strings.xml |2 
 android/lib/src/main/res/values-cs/strings.xml |2 
 android/lib/src/main/res/values-cy/strings.xml |1 
 android/lib/src/main/res/values-dsb/strings.xml|1 
 android/lib/src/main/res/values-en-rGB/strings.xml |2 
 android/lib/src/main/res/values-eo/strings.xml |3 
 android/lib/src/main/res/values-es/strings.xml |1 
 android/lib/src/main/res/values-eu/strings.xml |1 
 android/lib/src/main/res/values-gl/strings.xml |2 
 android/lib/src/main/res/values-hsb/strings.xml|1 
 android/lib/src/main/res/values-it/strings.xml |2 
 android/lib/src/main/res/values-nl/strings.xml |2 
 android/lib/src/main/res/values-pl/strings.xml |   11 
 android/lib/src/main/res/values-pt-rBR/strings.xml |1 
 android/lib/src/main/res/values-sk/strings.xml |   11 
 android/lib/src/main/res/values-zh-rTW/strings.xml |   11 
 loleaflet/po/help-ast.po   |8 
 loleaflet/po/help-ca.po|   12 
 loleaflet/po/help-da.po|   15 
 loleaflet/po/help-en_GB.po |  436 ++---
 loleaflet/po/help-es.po|6 
 loleaflet/po/help-gl.po|  118 ++---
 loleaflet/po/help-nl.po|   37 -
 loleaflet/po/help-pt_BR.po |8 
 loleaflet/po/ios-pl.po |   11 
 loleaflet/po/ui-ca.po  |   16 
 loleaflet/po/ui-cs.po  |   16 
 loleaflet/po/ui-da.po  |   14 
 loleaflet/po/ui-gl.po  |   14 
 loleaflet/po/ui-id.po  |8 
 loleaflet/po/ui-it.po  |   16 
 loleaflet/po/ui-nl.po  |   18 
 loleaflet/po/ui-pl.po  |  185 
 loleaflet/po/ui-ru.po  |  138 +++---
 loleaflet/po/ui-uk.po  |  113 ++---
 loleaflet/po/ui-zh_TW.po   |   20 
 46 files changed, 928 insertions(+), 646 deletions(-)

New commits:
commit 4ddf38bb061d5e3f7e2765a88bb15198507e568b
Author: Weblate 
AuthorDate: Tue Feb 18 22:34:02 2020 +0100
Commit: Andras Timar 
CommitDate: Tue Feb 18 23:39:44 2020 +0100

update translations

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

Change-Id: Idf0d944db0a3b02b07d43395001ee1837bcc6f3a

update translations

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

Change-Id: I1c347a8951f86cdafd06a86ee76137adc37240d3

update translations

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

Change-Id: I8e738a218359344df14b7bb08358fdba3d17c8f6

update translations

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

Change-Id: I84e9506f7f828471ff9ae9da8da4e8302418f89e

update translations

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

Change-Id: I5395612a69c7b3e3d05f497a17afc261716afe3a

update translations

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

Change-Id: I8da8f25a4e94fc2fb7b700547c4a0c4a9a9a2b78

update translations

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

Change-Id: Iba6009b13b4d57946563e278152358dca7363512

update translations

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

Change-Id: I62e955da3e37a5933320455112793455332cd901

update translations

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

Change-Id: I7183916354b0ae1d8b597c1bca34f4cf56602956

update translations

LibreOffice Online/loleaflet-help (Galician)
Currently translated at 84.9% (353 of 416 

[Libreoffice-commits] online.git: android/app

2020-02-18 Thread Ashod Nakashian (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   10 ++
 1 file changed, 10 insertions(+)

New commits:
commit 8c26be1ee75a0c34a46859de14e331c53e457e1b
Author: Ashod Nakashian 
AuthorDate: Mon Feb 17 14:27:05 2020 -0500
Commit: Ashod Nakashian 
CommitDate: Tue Feb 18 15:01:27 2020 +0100

android: hide the keyboard after creating new doc

Also, when cancelling the new doc creation.

Change-Id: Ia84eae1f69c6018b98437327cdc67a923632b3dd
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/3
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Ashod Nakashian 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index b40c3120f..0b2ad0355 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -603,6 +603,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 input.setSelection(0, input.getText().toString().lastIndexOf('.'));
 input.requestFocus();
 InputMethodManager imm = (InputMethodManager) 
getSystemService(Context.INPUT_METHOD_SERVICE);
+
+// We should just focus on the input EditText so the keyboard would 
hide automatically.
+// imm.showSoftInput(input,0); Should be enough, alas this is the 
wrong place, so doesn't work.
 imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
 
 // warning text to notify the user that such a file already exists
@@ -618,6 +621,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 .setPositiveButton(tempFile.exists() ? R.string.action_overwrite : 
R.string.action_create, new DialogInterface.OnClickListener() {
 @Override
 public void onClick(DialogInterface dialog, int which) {
+// Hide the keyboard, which we show forcefully.
+imm.hideSoftInputFromWindow(input.getWindowToken(), 0);
+
 final String path = currentDirectory.getUri().getPath() + 
input.getText().toString();
 Uri newDocUri = createNewFile(path, extension);
 if (newDocUri != null) {
@@ -639,6 +645,10 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 .setNegativeButton(R.string.action_cancel, new 
DialogInterface.OnClickListener() {
 @Override
 public void onClick(DialogInterface dialog, int which) {
+
+// Hide the keyboard, which we show forcefully.
+imm.hideSoftInputFromWindow(input.getWindowToken(), 0);
+
 dialog.cancel();
 }
 });
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-02-12 Thread Michael Meeks (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |6 --
 1 file changed, 6 deletions(-)

New commits:
commit 1fd62785c3ccbd58a71d835d12fb54c96fd8de74
Author: Michael Meeks 
AuthorDate: Wed Feb 12 13:55:32 2020 +
Commit: Mert Tümer 
CommitDate: Wed Feb 12 15:06:03 2020 +0100

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 
Reviewed-by: Mert Tümer 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 10fc735af..b40c3120f 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -159,10 +159,8 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 private boolean isFabMenuOpen = false;
 private FloatingActionButton editFAB;
 private FloatingActionButton writerFAB;
-private FloatingActionButton drawFAB;
 private FloatingActionButton impressFAB;
 private FloatingActionButton calcFAB;
-private LinearLayout drawLayout;
 private LinearLayout writerLayout;
 private LinearLayout impressLayout;
 private LinearLayout calcLayout;
@@ -333,13 +331,11 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
 private void expandFabMenu() {
 
ViewCompat.animate(editFAB).rotation(45.0F).withLayer().setDuration(300).setInterpolator(new
 OvershootInterpolator(10.0F)).start();
-drawLayout.startAnimation(fabOpenAnimation);
 impressLayout.startAnimation(fabOpenAnimation);
 writerLayout.startAnimation(fabOpenAnimation);
 calcLayout.startAnimation(fabOpenAnimation);
 writerFAB.setClickable(true);
 impressFAB.setClickable(true);
-drawFAB.setClickable(true);
 calcFAB.setClickable(true);
 isFabMenuOpen = true;
 }
@@ -348,11 +344,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
ViewCompat.animate(editFAB).rotation(0.0F).withLayer().setDuration(300).setInterpolator(new
 OvershootInterpolator(10.0F)).start();
 writerLayout.startAnimation(fabCloseAnimation);
 impressLayout.startAnimation(fabCloseAnimation);
-drawLayout.startAnimation(fabCloseAnimation);
 calcLayout.startAnimation(fabCloseAnimation);
 writerFAB.setClickable(false);
 impressFAB.setClickable(false);
-drawFAB.setClickable(false);
 calcFAB.setClickable(false);
 isFabMenuOpen = false;
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app loleaflet/po

2020-02-11 Thread Weblate (via logerrit)
 android/app/src/main/res/values-cs/strings.xml |2 
 android/app/src/main/res/values-fr/strings.xml |2 
 android/app/src/main/res/values-gl/strings.xml |2 
 android/app/src/main/res/values-hu/strings.xml |2 
 android/app/src/main/res/values-nl/strings.xml |3 
 android/app/src/main/res/values-pt-rBR/strings.xml |2 
 android/app/src/main/res/values-pt/strings.xml |3 
 android/app/src/main/res/values-tr/strings.xml |4 
 loleaflet/po/help-ca.po|   18 +-
 loleaflet/po/help-en_GB.po |   12 -
 loleaflet/po/help-gl.po|  143 +
 loleaflet/po/help-hsb.po   |4 
 loleaflet/po/help-hu.po|   12 -
 loleaflet/po/help-nl.po|9 -
 loleaflet/po/ui-gl.po  |4 
 loleaflet/po/ui-pt.po  |   80 ---
 loleaflet/po/ui-tr.po  |   14 +-
 17 files changed, 156 insertions(+), 160 deletions(-)

New commits:
commit 7ba3745e30643bc3bde1cdbe3f1809b9776fcdd4
Author: Weblate 
AuthorDate: Tue Feb 11 07:22:43 2020 +0100
Commit: Andras Timar 
CommitDate: Tue Feb 11 11:09:45 2020 +0100

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)

[Libreoffice-commits] online.git: android/app

2020-02-11 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/AndroidManifest.xml   |1 -
 android/app/src/main/res/values-v28/themes.xml |6 --
 2 files changed, 7 deletions(-)

New commits:
commit 29eb7ffe92861023982557d96fe8e8cc50974d2a
Author: Jan Holesovsky 
AuthorDate: Tue Feb 11 10:00:59 2020 +0100
Commit: Andras Timar 
CommitDate: Tue Feb 11 10:24:12 2020 +0100

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 
Tested-by: Andras Timar 

diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index 8a501c8a0..5ef3a0873 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -24,7 +24,6 @@
 android:theme="@style/LibreOfficeTheme">
 
 
 
 
-
-
-shortEdges
-
-
\ No newline at end of file
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/Makefile.am android/templates

2020-02-10 Thread Andras Timar (via logerrit)
 android/Makefile.am
|3 
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   16 -
 android/app/src/main/res/layout/activity_document_browser.xml  
|   32 --
 android/app/src/main/res/menu/view_menu.xml
|3 
 android/app/src/main/res/values-ast/strings.xml
|1 
 android/app/src/main/res/values-bg/strings.xml 
|2 
 android/app/src/main/res/values-ca/strings.xml 
|2 
 android/app/src/main/res/values-cs/strings.xml 
|2 
 android/app/src/main/res/values-cy/strings.xml 
|2 
 android/app/src/main/res/values-de/strings.xml 
|2 
 android/app/src/main/res/values-dsb/strings.xml
|2 
 android/app/src/main/res/values-el/strings.xml 
|2 
 android/app/src/main/res/values-en-rGB/strings.xml 
|2 
 android/app/src/main/res/values-es/strings.xml 
|2 
 android/app/src/main/res/values-eu/strings.xml 
|2 
 android/app/src/main/res/values-fr/strings.xml 
|2 
 android/app/src/main/res/values-gl/strings.xml 
|2 
 android/app/src/main/res/values-hsb/strings.xml
|2 
 android/app/src/main/res/values-hu/strings.xml 
|2 
 android/app/src/main/res/values-is/strings.xml 
|2 
 android/app/src/main/res/values-it/strings.xml 
|2 
 android/app/src/main/res/values-nl/strings.xml 
|2 
 android/app/src/main/res/values-pt-rBR/strings.xml 
|2 
 android/app/src/main/res/values-pt/strings.xml 
|2 
 android/app/src/main/res/values-ru/strings.xml 
|1 
 android/app/src/main/res/values-sl/strings.xml 
|2 
 android/app/src/main/res/values-tr/strings.xml 
|2 
 android/app/src/main/res/values/arrays.xml 
|1 
 android/app/src/main/res/values/strings.xml
|2 
 dev/null   
|binary
 30 files changed, 1 insertion(+), 100 deletions(-)

New commits:
commit 5ff5cfe894ab1532f8679b884861185dfe03f0cf
Author: Andras Timar 
AuthorDate: Mon Feb 10 17:55:33 2020 +0100
Commit: Andras Timar 
CommitDate: Mon Feb 10 22:53:15 2020 +0100

android: Kill all mention of Draw in the app

... because we have no working Draw-equivalent on the online side.
Being able to open Draw files (+PDFs) is fine, just don't let them be 
edited.

Currently mentions I've seen are:

* shipped untitled.odg,
* (+) New Drawing,
* when pressing the filter icon on the toolbar, there's a Drawings option.

Change-Id: I1936dcee1ad145776ae3b1e0cc1d0a435e3417e2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/88407
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/Makefile.am b/android/Makefile.am
index fb3076a46..ffa317c8a 100644
--- a/android/Makefile.am
+++ b/android/Makefile.am
@@ -2,8 +2,7 @@ clean-local:
rm -rf $(abs_top_srcdir)/android/lib/src/main/assets/*
rm -rf app/build
 
-all-local: lib/src/main/assets/templates/untitled.odg \
-  lib/src/main/assets/templates/untitled.odp \
+all-local: lib/src/main/assets/templates/untitled.odp \
   lib/src/main/assets/templates/untitled.ods \
   lib/src/main/assets/templates/untitled.odt
 
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 389f9b5a7..10fc735af 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -220,12 +220,9 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 writerFAB.setOnClickListener(this);
 calcFAB = findViewById(R.id.newCalcFAB);
 calcFAB.setOnClickListener(this);
-drawFAB = findViewById(R.id.newDrawFAB);
-drawFAB.setOnClickListener(this);
 writerLayout = findViewById(R.id.writerLayout);
 impressLayout 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-02-06 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bg/strings.xml |2 
 android/app/src/main/res/values-ca/strings.xml |5 
 android/app/src/main/res/values-cy/strings.xml |2 
 android/app/src/main/res/values-dsb/strings.xml|2 
 android/app/src/main/res/values-en-rGB/strings.xml |  104 +-
 android/app/src/main/res/values-eo/strings.xml |   15 ++
 android/app/src/main/res/values-es/strings.xml |7 -
 android/app/src/main/res/values-eu/strings.xml |2 
 android/app/src/main/res/values-hsb/strings.xml|2 
 android/app/src/main/res/values-is/strings.xml |   88 +++
 android/app/src/main/res/values-ja/strings.xml |9 +
 android/lib/src/main/res/values-en-rGB/strings.xml |9 +
 android/lib/src/main/res/values-ja/strings.xml |5 
 loleaflet/po/help-en_GB.po |   17 +-
 loleaflet/po/help-is.po|  119 +---
 loleaflet/po/ios-eo.po |4 
 loleaflet/po/ios-ja.po |8 -
 loleaflet/po/ui-af.po  |   13 +-
 loleaflet/po/ui-am.po  |   13 +-
 loleaflet/po/ui-as.po  |   13 +-
 loleaflet/po/ui-de.po  |4 
 loleaflet/po/ui-dsb.po |6 -
 loleaflet/po/ui-en_GB.po   |   98 +++--
 loleaflet/po/ui-eo.po  |   24 +---
 loleaflet/po/ui-he.po  |   13 +-
 loleaflet/po/ui-is.po  |  121 +
 loleaflet/po/ui-ml.po  |   13 +-
 27 files changed, 459 insertions(+), 259 deletions(-)

New commits:
commit f4e88f615a02bcc31a5063ae0a24f6a71e8173b3
Author: Weblate 
AuthorDate: Thu Feb 6 09:45:05 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Feb 6 21:17:40 2020 +0100

update translations

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

Change-Id: I07f83134e9981fd069b2e25f1138a4430c881700

update translations

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

Change-Id: Ic507a92420b65405a9958388ffbddcc4e60fbc8d

update translations

LibreOffice Online/android-app (English (United Kingdom))
Currently translated at 30.7% (31 of 101 strings)

Change-Id: Idac18ee56e924e93d5ce53ab27d4aadbe4d25272

update translations

LibreOffice Online/android-app (English (United Kingdom))
Currently translated at 4.0% (4 of 101 strings)

Change-Id: Ib95fcd774d982b764b1f63337c401638507413d0

update translations

LibreOffice Online/android-lib (English (United Kingdom))
Currently translated at 100.0% (6 of 6 strings)

Change-Id: If29f6ef730b8d00490fe0b290cdba0cf613a688d

update translations

LibreOffice Online/android-app (Esperanto)
Currently translated at 15.8% (16 of 101 strings)

Change-Id: I882ee9cd517bb6519e5154eb4f67f9fccbaea601

update translations

LibreOffice Online/ios (Esperanto)
Currently translated at 100.0% (4 of 4 strings)

Change-Id: I90e48d21cab6ae6c0ea46359586a27331d238977

update translations

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

Change-Id: Id4f884816178f04af3b5eafbf3420a9063e11fc6

update translations

LibreOffice Online/loleaflet-ui (Esperanto)
Currently translated at 65.7% (186 of 283 strings)

Change-Id: I7580408131e91db107264f6f7915bd18dbf75ed8

update translations

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

Change-Id: Id388779917735f36afaa08274e52221370fa0d4d

update translations

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

Change-Id: I28df151afb4a16e7f94eaabfed45d049dbeadf05

update translations

LibreOffice Online/loleaflet-help (Icelandic)
Currently translated at 59.1% (246 of 416 strings)

Change-Id: I522d8ce13b2db7e0f7d936c94c086f5874bb213e

update translations

LibreOffice Online/android-app (Icelandic)
Currently translated at 76.2% (77 of 101 strings)

Change-Id: I72eab3f23e209e1e736d0ad7e4f99f742983d57e

update translations

LibreOffice Online/loleaflet-help (Icelandic)
Currently translated at 49.5% (206 of 416 strings)

Change-Id: I6c44c508990d3f2f4c75d52c8629bb753c970bbf

update translations

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

Change-Id: 

[Libreoffice-commits] online.git: android/app android/lib

2020-02-03 Thread mert (via logerrit)
 android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java  |  
  3 +++
 android/app/src/main/res/values/strings.xml |  
  2 ++
 android/app/src/main/res/xml/libreoffice_preferences.xml|  
  8 
 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java|  
  3 ++-
 android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java |  
  7 ++-
 5 files changed, 21 insertions(+), 2 deletions(-)

New commits:
commit 4122634c9b8ef217877b168f529e1147ea4a00db
Author: mert 
AuthorDate: Wed Jan 29 17:13:24 2020 +0300
Commit: Jan Holesovsky 
CommitDate: Mon Feb 3 23:07:41 2020 +0100

Added the chrome debugging enablement into the settings

Change-Id: I24c97018b499517637f460ba663737ca781ee975
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/87687
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
index c51d098af..510979a7a 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java
@@ -34,6 +34,9 @@ public class SettingsActivity extends AppCompatActivity {
 if (!BuildConfig.DEBUG) {
 findPreference("ENABLE_SHOW_DEBUG_INFO").setVisible(false);
 }
+else {
+findPreference("ENABLE_CHROME_DEBUGGING").setVisible(false);
+}
 }
 
 @Override
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 12f65fc11..390ec274b 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -27,6 +27,8 @@
 Set which file filter should be used by 
default.
 Show Debug Info
 Enable to show debug 
information in document viewer
+Chrome Debugging
+Enable to use Chrome\'s 
debugging tool in the document
 
 Show License
 Show Notice
diff --git a/android/app/src/main/res/xml/libreoffice_preferences.xml 
b/android/app/src/main/res/xml/libreoffice_preferences.xml
index 5f8389d45..a6da9e4ef 100644
--- a/android/app/src/main/res/xml/libreoffice_preferences.xml
+++ b/android/app/src/main/res/xml/libreoffice_preferences.xml
@@ -43,6 +43,14 @@
 android:summary="@string/pref_show_debug_info_summary"
 android:defaultValue="false"
 app:iconSpaceReserved="false" />
+
 
 
 
diff --git 
a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java 
b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
index 9c7729ef9..34fd8b1b2 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -292,10 +292,11 @@ public class LOActivity extends AppCompatActivity {
 webSettings.setJavaScriptEnabled(true);
 mWebView.addJavascriptInterface(this, "LOOLMessageHandler");
 
+boolean isChromeDebugEnabled = 
sPrefs.getBoolean("ENABLE_CHROME_DEBUGGING", false);
 // allow debugging (when building the debug version); see details in
 // 
https://developers.google.com/web/tools/chrome-devtools/remote-debugging/webviews
 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
-if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) 
!= 0) {
+if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) 
!= 0 || isChromeDebugEnabled) {
 WebView.setWebContentsDebuggingEnabled(true);
 }
 }
diff --git 
a/android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java 
b/android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java
index 21b9f..761d73c07 100644
--- 
a/android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java
+++ 
b/android/lib/src/main/java/org/libreoffice/androidlib/SlideShowActivity.java
@@ -12,9 +12,11 @@ package org.libreoffice.androidlib;
 import androidx.annotation.NonNull;
 import androidx.appcompat.app.AppCompatActivity;
 
+import android.content.SharedPreferences;
 import android.content.pm.ApplicationInfo;
 import android.graphics.Color;
 import android.os.Bundle;
+import android.preference.PreferenceManager;
 import android.util.Log;
 import android.view.View;
 import android.webkit.WebSettings;
@@ -39,7 +41,10 @@ public class SlideShowActivity extends AppCompatActivity {
 slidesSvgUri = savedInstanceState.getString(SVG_URI_KEY);
 }
 Log.d(TAG, "SlideShow Svg Uri "+slidesSvgUri);
-if ((getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 
0) {
+SharedPreferences sPrefs = 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-01-29 Thread Weblate (via logerrit)
 android/app/src/main/res/values-bar/strings.xml |   11 ++
 android/app/src/main/res/values-gl/strings.xml  |  102 +++-
 android/app/src/main/res/values-is/strings.xml  |   16 +++
 android/lib/src/main/res/values-bar/strings.xml |7 +
 android/lib/src/main/res/values-gl/strings.xml  |9 +-
 android/lib/src/main/res/values-is/strings.xml  |9 +-
 loleaflet/po/ui-bar.po  |   28 +++---
 loleaflet/po/ui-gl.po   |  102 ++--
 loleaflet/po/ui-id.po   |   52 ++--
 loleaflet/po/ui-is.po   |   19 ++--
 loleaflet/po/ui-ja.po   |   15 +--
 loleaflet/po/ui-uk.po   |   29 --
 12 files changed, 270 insertions(+), 129 deletions(-)

New commits:
commit e7910852b680a9314a276d58300d510e6ca687c5
Author: Weblate 
AuthorDate: Wed Jan 29 10:28:37 2020 +0100
Commit: Andras Timar 
CommitDate: Wed Jan 29 20:32:14 2020 +0100

update translations

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

Change-Id: Ifbc783477f9ee2dd0866e9c017fb5c4374b3d150

update translations

LibreOffice Online/android-lib (Galician)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: Ia58dbe560eec21addcb1a640b86f58d28900f282

update translations

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

Change-Id: Ie4c00e58157ba2c6fd39e20e47e8cf11b85a9fdb

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 94.9% (94 of 99 strings)

Change-Id: Ibee8409c7c1897f8e72df599139a2695f971b785

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 93.9% (93 of 99 strings)

Change-Id: I251ac3131f0e013e8a3506f26605ab91ae326c5e

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 91.9% (91 of 99 strings)

Change-Id: If6f9c882136b6ee29c9c542a80badc9cb5e3549d

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 90.9% (90 of 99 strings)

Change-Id: I0d81c91956b44d0129d13b877681ef730c248bcc

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 89.9% (89 of 99 strings)

Change-Id: I623dd0e013f67ec828a8078175561654081ec54e

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 87.9% (87 of 99 strings)

Change-Id: I03cc402dc8b047205cd222b694ae8634043391d5

update translations

LibreOffice Online/android-app (Galician)
Currently translated at 3.0% (3 of 99 strings)

Change-Id: Iaa460f896ba7869f626d18bf7e88d0fdc992cae9

update translations

LibreOffice Online/android-lib (Bavarian)
Currently translated at 66.7% (4 of 6 strings)

Change-Id: I20f64d2240406bb88c9ff42fde1ea2f240dbf066

update translations

LibreOffice Online/android-app (Bavarian)
Currently translated at 8.1% (8 of 99 strings)

Change-Id: I54ef58d0472bcdbd6a2ac24c97c62206e797ee4e

update translations

LibreOffice Online/loleaflet-ui (Ukrainian)
Currently translated at 82.0% (232 of 283 strings)

Change-Id: Iaf130e9cedf6a0e50e1b8425725a537de770405e

update translations

LibreOffice Online/loleaflet-ui (Bavarian)
Currently translated at 2.8% (8 of 283 strings)

Change-Id: I037ec09dfa556b505fa34f80fd593a8921105fa5

update translations

LibreOffice Online/android-app (Icelandic)
Currently translated at 13.1% (13 of 99 strings)

Change-Id: I30e2e8707a602744652f67db5048ce187a40691f

update translations

LibreOffice Online/android-lib (Icelandic)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I5ef093496cabdd063eab44fc49f52d739c666d39

update translations

LibreOffice Online/loleaflet-ui (Indonesian)
Currently translated at 87.3% (247 of 283 strings)

Change-Id: Ia38dcab175579f9715c26bd23e5d17f777d9824c

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 82.3% (233 of 283 strings)

Change-Id: I758ad43610c7561e8b4bdabbbe47765f11fff1e4

update translations

LibreOffice Online/loleaflet-ui (Icelandic)
Currently translated at 82.0% (232 of 283 strings)

Change-Id: I5d8dd486f72292fbf9b5d0555e71f4c2bb0e49b9

update translations

LibreOffice Online/loleaflet-ui (Indonesian)
Currently translated at 86.6% (245 of 283 strings)

Change-Id: I52af05de380c47d3b1cb09253b3626969a000efe

update translations

LibreOffice 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-01-28 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ast/strings.xml |4 
 android/lib/src/main/res/values-ast/strings.xml |5 
 loleaflet/po/help-ast.po|   16 -
 loleaflet/po/help-ca.po |6 
 loleaflet/po/help-es.po |   24 +-
 loleaflet/po/help-eu.po |   84 
 loleaflet/po/help-fr.po |  250 +++-
 loleaflet/po/help-id.po |   77 ---
 loleaflet/po/help-nl.po |   60 ++---
 loleaflet/po/ios-nl.po  |   11 -
 loleaflet/po/ui-ast.po  |   10 
 loleaflet/po/ui-ca.po   |4 
 loleaflet/po/ui-cs.po   |4 
 loleaflet/po/ui-id.po   |   23 +-
 loleaflet/po/ui-jv.po   |   23 +-
 loleaflet/po/ui-lo.po   |8 
 loleaflet/po/ui-nl.po   |   82 +++
 loleaflet/po/ui-tr.po   |   44 ++--
 18 files changed, 362 insertions(+), 373 deletions(-)

New commits:
commit 9d03504bb48837c0ef8a1a3f71da813a3bb07866
Author: Weblate 
AuthorDate: Mon Jan 27 09:45:14 2020 +0100
Commit: Andras Timar 
CommitDate: Tue Jan 28 09:06:39 2020 +0100

update translations

LibreOffice Online/android-app (Asturian)
Currently translated at 40.4% (40 of 99 strings)

Change-Id: I9fd2ae82f6ecee154a9bc763faa19c292125b22e

update translations

LibreOffice Online/android-lib (Asturian)
Currently translated at 33.3% (2 of 6 strings)

Change-Id: I1b68ea3f3d8f6ac9cb03264163a8b37a3384e800

update translations

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

Change-Id: I5ce93c62dc9a1ed9faa6ee64a3eeb343af11a12f

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 98.2% (278 of 283 strings)

Change-Id: Ib179c425a0677bbd8a2cba730d164813a789c13f

update translations

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

Change-Id: I4d661bddc7f59531cc6a497f5b66da3fd2164deb

update translations

LibreOffice Online/loleaflet-help (Indonesian)
Currently translated at 49.8% (207 of 416 strings)

Change-Id: I79c945beb07d0fb6414a031fbe077594dd0a02ab

update translations

LibreOffice Online/loleaflet-ui (Javanese)
Currently translated at 22.6% (64 of 283 strings)

Change-Id: Ia118f54cc0bbfbbe9747c3808c16915f054f5737

update translations

LibreOffice Online/loleaflet-ui (Indonesian)
Currently translated at 82.3% (233 of 283 strings)

Change-Id: I97231b76fe918389b9e8f5faec156269f9cf4868

update translations

LibreOffice Online/loleaflet-help (Indonesian)
Currently translated at 47.8% (199 of 416 strings)

Change-Id: Ibee86ecd69f3bcf88ae0ed0dea673e565f8e8840

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I442aecd944e86e35d566292f97704ad7b172a9b3

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 83.2% (346 of 416 strings)

Change-Id: Idb9845be3dc233655077e02cde04b1c165ca81c4

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I45b4a345dc68c61e927dcd4e0b8311d85b85e8e7

update translations

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

Change-Id: Ia988ee2afa600a8e8cfa66f62c9045d896a080c4

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I61b0c62c8c9b407cc737b767df577f6ed9efab02

update translations

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

Change-Id: I33d13be5e57c9436cf43c73cefee2d6a5d9e321d

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 95.9% (399 of 416 strings)

Change-Id: I5a377ba38f4e48b8c7f6795d2efef6fd443abf4a

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 94.2% (392 of 416 strings)

Change-Id: I5090d10613bf47a88640fa97d0a28ea4d6cd0cc1

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 93.5% (389 of 416 strings)

Change-Id: I50a1eea79349ea0e450019873e0f6142d762ef75

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently 

[Libreoffice-commits] online.git: android/app loleaflet/po

2020-01-20 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ast/strings.xml |   10 
 android/app/src/main/res/values-ca/strings.xml  |1 
 loleaflet/po/help-ca.po |   36 +-
 loleaflet/po/help-es.po |   12 
 loleaflet/po/help-eu.po |   66 +--
 loleaflet/po/help-fr.po |  118 +++---
 loleaflet/po/help-it.po |  428 
 loleaflet/po/help-nl.po |   12 
 loleaflet/po/ui-ast.po  |   28 -
 loleaflet/po/ui-bg.po   |4 
 loleaflet/po/ui-ca.po   |   11 
 loleaflet/po/ui-eo.po   |4 
 loleaflet/po/ui-eu.po   |4 
 13 files changed, 370 insertions(+), 364 deletions(-)

New commits:
commit 081ce41e5042707753663a377c497d98d83f49e2
Author: Weblate 
AuthorDate: Mon Jan 20 10:13:45 2020 +0100
Commit: Andras Timar 
CommitDate: Mon Jan 20 11:55:27 2020 +0100

update translations

LibreOffice Online/android-app (Asturian)
Currently translated at 38.4% (38 of 99 strings)

Change-Id: I8e041ba673955f00b4ff5ffa6c3813b25c670cdf

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 98.0% (96 of 98 strings)

Change-Id: I33985ea09845c154626cd0cb45d78e1818ac2e9b

update translations

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

Change-Id: I4b3e98671b2ef20b0ca806d131458a004ece3a3c

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 90.1% (375 of 416 strings)

Change-Id: I2b16c6e90b2a3344bace7653614b2a7fd6e5c802

update translations

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

Change-Id: I883b9548eb1efe3af7a2e40393ebf735f33a677d

update translations

LibreOffice Online/loleaflet-ui (Esperanto)
Currently translated at 63.3% (179 of 283 strings)

Change-Id: I847eb27ce7f1971295e9ed274b5028e627b923b6

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.9% (277 of 283 strings)

Change-Id: I3be1b00a13d067390fa190da4fccc952da5076b4

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 33.9% (96 of 283 strings)

Change-Id: I8808049c8f058b62af323033725c7311bc1e2be5

update translations

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

Change-Id: I1ae5c4d3cddd11a83d9254686182fc00d1b801d9

update translations

LibreOffice Online/loleaflet-help (Italian)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I6651eb476655443b236ae8e9f934828f760a4b3e

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 71.2% (296 of 416 strings)

Change-Id: I68629ed044bd30c854d823caf70df954912fdc63

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 85.3% (355 of 416 strings)

Change-Id: I624ea006ffafe977983dc82362c903a17be2

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.8% (415 of 416 strings)

Change-Id: Ib8ba3e6397fcd396c8d01fbfba48db91bee39238

update translations

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

Change-Id: I364c39de59a4b3a4cb705a9f0eff76aa94e247e4

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.5% (276 of 283 strings)

Change-Id: Ied8ff70562b4d98e181662e1e60496ef2b5bf4c7

update translations

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

Change-Id: I0f777f6dc44538153b5b7bd5a4f731e0e5110f66

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 71.2% (296 of 416 strings)

Change-Id: I4b759612e69377768f5e165c4bc8daaf8f1e177c
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86990
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-ast/strings.xml 
b/android/app/src/main/res/values-ast/strings.xml
index ed5f15400..a3f158553 100644
--- a/android/app/src/main/res/values-ast/strings.xml
+++ b/android/app/src/main/res/values-ast/strings.xml
@@ -28,4 +28,14 @@
 Presentación nueva
 Documentu de testu nuevu
 Esti ficheru ye namái de 
llectura; nun se pue guardar.
+Sobroscribir
+Dir
+Encaboxar
+Aceutar
+Encaboxar
+Encaboxar
+   

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-01-15 Thread Weblate (via logerrit)
 android/app/src/main/res/values-it/strings.xml |  102 ++-
 android/lib/src/main/res/values-it/strings.xml |9 +
 loleaflet/po/help-eu.po|4 
 loleaflet/po/help-fr.po|   14 +-
 loleaflet/po/ui-ca.po  |4 
 loleaflet/po/ui-cs.po  |4 
 loleaflet/po/ui-cy.po  |4 
 loleaflet/po/ui-dsb.po |4 
 loleaflet/po/ui-es.po  |4 
 loleaflet/po/ui-eu.po  |4 
 loleaflet/po/ui-fr.po  |  134 +++--
 loleaflet/po/ui-hsb.po |4 
 loleaflet/po/ui-hu.po  |4 
 loleaflet/po/ui-it.po  |4 
 loleaflet/po/ui-pt_BR.po   |4 
 loleaflet/po/ui-sl.po  |4 
 16 files changed, 201 insertions(+), 106 deletions(-)

New commits:
commit a68a687f6eb1a26a2f04f092c5029a3d09be4052
Author: Weblate 
AuthorDate: Wed Jan 15 18:29:03 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Jan 16 07:43:45 2020 +0100

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 57.7% (240 of 416 strings)

Change-Id: I67fa7619e84662e0ac6f7fbbd7b48290fff308d5

update translations

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

Change-Id: I6e1be426eb75e5b87f10e2338659a9a6a7e7d93d

update translations

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

Change-Id: I8be0537b31c251b739e0444db9389ed73abd473c

update translations

LibreOffice Online/loleaflet-help (French)
Currently translated at 56.5% (235 of 416 strings)

Change-Id: Ice1a07804f9d8af9852fb518e6e5de3eb23284bb

update translations

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

Change-Id: I2d33f2166683cec9ed3d81847703c75b77673d9b

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 82.7% (344 of 416 strings)

Change-Id: Ib5bf668509f2ba46ea14ccfd068002c75398ae79

update translations

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

Change-Id: I9a1777fe5aa396461b66947477cfb9961e2a8624

update translations

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

Change-Id: Ie6276d1dcfb3fa85788fd51a92ed45d8bcb1aedc

update translations

LibreOffice Online/android-app (Italian)
Currently translated at 100.0% (99 of 99 strings)

Change-Id: Ib2b30bd6c239c20c4a863a0b396936cf5c86f750

update translations

LibreOffice Online/android-lib (Italian)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I2a57065004f3c38c63b1523be845455e9d57f974

update translations

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

Change-Id: I8576418e089bfce6568d2c1a654f66e049810156

update translations

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

Change-Id: I2cd272bccb87d1c34df38e2eb126efe1dbd0104c

update translations

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

Change-Id: Ia047bad0abb6d7d87d690f90cf81f03403ee41ee

update translations

LibreOffice Online/loleaflet-ui (Catalan)
Currently translated at 97.5% (276 of 283 strings)

Change-Id: I6750f027e5fb01dc09182b9a9a4fdf855d554d3a

update translations

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

Change-Id: I67c4efa59f061c150e7901b164bb408c29142b2d

update translations

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

Change-Id: I3da4481bdeed28e9d714ef42f3428629672d4b6b

update translations

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

Change-Id: Ifdf40e74cedcc1c1e56c4eadfc83a9e50d38b91f
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86764
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-it/strings.xml 
b/android/app/src/main/res/values-it/strings.xml
index a6b3daec9..3811229ff 100644
--- a/android/app/src/main/res/values-it/strings.xml
+++ b/android/app/src/main/res/values-it/strings.xml
@@ -1,2 +1,102 @@
 
-
\ No newline at end 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2020-01-13 Thread Weblate (via logerrit)
 android/app/src/main/res/values-an/strings.xml |5 
 android/app/src/main/res/values-ast/strings.xml|5 
 android/app/src/main/res/values-bg/strings.xml |  102 ++-
 android/app/src/main/res/values-ca/strings.xml |4 
 android/app/src/main/res/values-eo/strings.xml |8 
 android/app/src/main/res/values-es/strings.xml |   12 
 android/app/src/main/res/values-fr/strings.xml |  102 ++-
 android/app/src/main/res/values-zh-rTW/strings.xml |   10 
 android/lib/src/main/res/values-bg/strings.xml |9 
 android/lib/src/main/res/values-eo/strings.xml |4 
 android/lib/src/main/res/values-fr/strings.xml |9 
 loleaflet/po/help-bg.po|  109 +++
 loleaflet/po/help-ca.po|   10 
 loleaflet/po/help-cs.po|   28 -
 loleaflet/po/help-cy.po|   81 ++---
 loleaflet/po/help-es.po|   24 -
 loleaflet/po/help-eu.po|  304 ++---
 loleaflet/po/help-fr.po|   85 ++---
 loleaflet/po/help-hsb.po   |   34 +-
 loleaflet/po/help-hu.po|   40 +-
 loleaflet/po/help-nl.po|   11 
 loleaflet/po/help-zh_TW.po |   13 
 loleaflet/po/ios-eo.po |   17 -
 loleaflet/po/ui-an.po  |   13 
 loleaflet/po/ui-ast.po |   10 
 loleaflet/po/ui-bg.po  |  130 
 loleaflet/po/ui-ca.po  |6 
 loleaflet/po/ui-cy.po  |   51 +--
 loleaflet/po/ui-eo.po  |8 
 loleaflet/po/ui-es.po  |8 
 loleaflet/po/ui-eu.po  |6 
 loleaflet/po/ui-nb.po  |   44 +--
 loleaflet/po/ui-zh_TW.po   |  129 
 33 files changed, 797 insertions(+), 634 deletions(-)

New commits:
commit 77e0f99c07e63d699abb78615a6829e214be9895
Author: Weblate 
AuthorDate: Sun Jan 12 23:17:00 2020 +0100
Commit: Andras Timar 
CommitDate: Mon Jan 13 09:35:44 2020 +0100

update translations

LibreOffice Online/android-app (Chinese (Traditional))
Currently translated at 7.1% (7 of 99 strings)

Change-Id: I1ceaa86db8879763ae029bc4942996dfa79d0973

update translations

LibreOffice Online/loleaflet-help (Chinese (Traditional))
Currently translated at 47.6% (198 of 416 strings)

Change-Id: I1c1848e73e53d0be044505ae7a687bf28d8578ca

update translations

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

Change-Id: Ibf3561376a333bc2b7766e50c90fb32ff7eb746d

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 82.5% (343 of 416 strings)

Change-Id: Ic1bfb58a6c9ea4bbd5910314b5505336a6e91783

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 100.0% (282 of 282 strings)

Change-Id: Ib292d64b5a1acb65c3ea5edd37cafffcf34b1f2a

update translations

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

Change-Id: I1e1bad69cb9b1916d259a1ec65a512c56dd4fa3a

update translations

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

Change-Id: Iecdbfd73892365de7c650659537e99cffc431e1e

update translations

LibreOffice Online/android-app (Chinese (Traditional))
Currently translated at 7.1% (7 of 99 strings)

Change-Id: Ia75fd49836fa4ada900f9bf9961a97fb6a8def09

update translations

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

Change-Id: I812cd246853d26ed7ce0ebef58fc8e839f5300c5

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 97.2% (274 of 282 strings)

Change-Id: Iedcd80e45a7062004c4395ae35bd90917c51ae6b

update translations

LibreOffice Online/loleaflet-ui (Bulgarian)
Currently translated at 81.6% (230 of 282 strings)

Change-Id: Ib4c3221aa9a7b0c1ff7c64c323d36239cf00fd63

update translations

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

Change-Id: I20b1d3949a277712a97ceaf907db75972ea216cf

update translations

LibreOffice Online/android-lib (French)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I3794a471ab784220ed74b2500371834eb7d2dad8

update translations

LibreOffice 

[Libreoffice-commits] online.git: android/app

2020-01-02 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderSettingsActivity.java
 |8 
 android/app/src/main/res/xml/documentprovider_preferences.xml  
|4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

New commits:
commit 5d1f50c9757be8859a1282b8cd35a83dd8976cc2
Author: Jan Holesovsky 
AuthorDate: Thu Jan 2 17:59:23 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 18:10:31 2020 +0100

android: Disable OTG also in the Provider settings.

Change-Id: Ic1fa98461f27cd849afcd7d56ecd58fc1a96fb10
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86138
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderSettingsActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderSettingsActivity.java
index 243198d95..c7c1532b1 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderSettingsActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderSettingsActivity.java
@@ -68,7 +68,10 @@ public class DocumentProviderSettingsActivity extends 
AppCompatActivity {
 addPreferencesFromResource(R.xml.documentprovider_preferences);
 
 Preference extSDPreference = 
findPreference(KEY_PREF_EXTERNAL_SD_PATH_URI);
+
+/* FIXME fix or remove
 Preference otgPreference = findPreference(KEY_PREF_OTG_PATH_URI);
+*/
 
 extSDPreference.setOnPreferenceClickListener(new 
Preference.OnPreferenceClickListener() {
 @Override
@@ -78,6 +81,8 @@ public class DocumentProviderSettingsActivity extends 
AppCompatActivity {
 return true;
 }
 });
+
+/* FIXME fix or remove
 otgPreference.setOnPreferenceClickListener(new 
Preference.OnPreferenceClickListener() {
 @Override
 public boolean onPreferenceClick(Preference preference) {
@@ -86,6 +91,7 @@ public class DocumentProviderSettingsActivity extends 
AppCompatActivity {
 return true;
 }
 });
+*/
 }
 
 private void startBrowserSelectorActivity(String prefKey, String mode) 
{
@@ -97,3 +103,5 @@ public class DocumentProviderSettingsActivity extends 
AppCompatActivity {
 
 }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/android/app/src/main/res/xml/documentprovider_preferences.xml 
b/android/app/src/main/res/xml/documentprovider_preferences.xml
index 2c95da294..e4602c561 100644
--- a/android/app/src/main/res/xml/documentprovider_preferences.xml
+++ b/android/app/src/main/res/xml/documentprovider_preferences.xml
@@ -33,11 +33,11 @@
 android:key="pref_extsd_path_uri"
 android:title="@string/external_sd_path"
 app:iconSpaceReserved="false" />
-
+app:iconSpaceReserved="false" /-->
 
 
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-01-02 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
 |   12 +-
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 1da821c72a354a6a9f63bf6d6cdcf314232bd00c
Author: Jan Holesovsky 
AuthorDate: Thu Jan 2 18:04:03 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 18:09:48 2020 +0100

android: Show the External SD item when the user has set something 
explicitly.

Change-Id: I628ba55f1a7fc7115784695c065d23672cefc4a2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86139
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
index c6f481910..e19d5f67e 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
@@ -169,16 +169,16 @@ public class ExtsdDocumentsProvider implements 
IExternalDocumentProvider,
 
 @Override
 public boolean checkProviderAvailability(Context context) {
-// too many devices (or I am just unlucky) don't report the mounted 
state properly, and other
-// devices also consider dedicated part of internal storage to be 
"mounted" so cannot use
-// getExternalStorageState().equals(Environment.MEDIA_MOUNTED) && 
isExternalStorageRemovable()
-// but they refer to the primary external storage anyway, so what 
currently is covered by the
-// "LocalDocumentsProvider"
+SharedPreferences preferences = 
PreferenceManager.getDefaultSharedPreferences(context);
+String rootPathURI = 
preferences.getString(DocumentProviderSettingsActivity.KEY_PREF_EXTERNAL_SD_PATH_URI,
 "");
 
-return hasRemovableStorage && 
ContextCompat.checkSelfPermission(context, 
Manifest.permission.WRITE_EXTERNAL_STORAGE) == 
PackageManager.PERMISSION_GRANTED;
+// either we know we have the storage or the user has set something 
explicitly
+return (hasRemovableStorage || !rootPathURI.isEmpty()) && 
ContextCompat.checkSelfPermission(context, 
Manifest.permission.WRITE_EXTERNAL_STORAGE) == 
PackageManager.PERMISSION_GRANTED;
 }
 
 @Override
 public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, 
String key) {
 }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-01-02 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
 |   31 +++---
 1 file changed, 23 insertions(+), 8 deletions(-)

New commits:
commit 7aae12a0cc9a6df7da40b04d8c5d36ecf3f6c451
Author: Jan Holesovsky 
AuthorDate: Thu Jan 2 17:21:20 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 18:08:58 2020 +0100

android: Remove some sub-Android-5-specific code.

We don't target anything below Android 5 any more.

Change-Id: Ic6bb8b0fbd64af6a061dba1422cafc144509c67a
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86136
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
index e992a0860..d4c2e830c 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
@@ -1,3 +1,12 @@
+/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
 package org.libreoffice.androidapp.storage.external;
 
 import android.annotation.TargetApi;
@@ -9,6 +18,7 @@ import android.net.Uri;
 import android.os.Build;
 import android.os.Bundle;
 import android.preference.PreferenceManager;
+import android.provider.DocumentsContract;
 import android.util.Log;
 
 import org.libreoffice.androidapp.R;
@@ -55,11 +65,7 @@ public class BrowserSelectorActivity extends 
AppCompatActivity {
 }
 
 private void findSDCard() {
-if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
-useDocumentTreeBrowser();
-} else {
-useInternalBrowser(DocumentProviderFactory.EXTSD_PROVIDER_INDEX);
-}
+useDocumentTreeBrowser(DocumentProviderFactory.EXTSD_PROVIDER_INDEX);
 }
 
 private void useInternalBrowser(int providerIndex) {
@@ -67,18 +73,25 @@ public class BrowserSelectorActivity extends 
AppCompatActivity {
 (IExternalDocumentProvider) 
DocumentProviderFactory.getInstance()
 .getProvider(providerIndex);
 String previousDirectoryPath = preferences.getString(preferenceKey, 
provider.guessRootURI(this));
+
 Intent i = new Intent(this, DirectoryBrowserActivity.class);
 i.putExtra(DirectoryBrowserActivity.DIRECTORY_PATH_EXTRA, 
previousDirectoryPath);
 startActivityForResult(i, REQUEST_INTERNAL_BROWSER);
 }
 
-@TargetApi(Build.VERSION_CODES.LOLLIPOP)
-private void useDocumentTreeBrowser() {
+private void useDocumentTreeBrowser(int providerIndex) {
+IExternalDocumentProvider provider =
+(IExternalDocumentProvider) 
DocumentProviderFactory.getInstance()
+.getProvider(providerIndex);
+String previousDirectoryPath = preferences.getString(preferenceKey, 
provider.guessRootURI(this));
+
 Intent i = new Intent(Intent.ACTION_OPEN_DOCUMENT_TREE);
+i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+i.addFlags(Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
+i.putExtra(DocumentsContract.EXTRA_INITIAL_URI, previousDirectoryPath);
 startActivityForResult(i, REQUEST_DOCUMENT_TREE);
 }
 
-@TargetApi(Build.VERSION_CODES.LOLLIPOP)
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent 
data) {
 //listeners are registered here as onActivityResult is called before 
onResume
@@ -152,3 +165,5 @@ public class BrowserSelectorActivity extends 
AppCompatActivity {
 }
 }
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2020-01-02 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
  |9 -
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
 |4 
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
  |   85 +-
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   63 +--
 4 files changed, 92 insertions(+), 69 deletions(-)

New commits:
commit b0f763a88339d0e5f8dfbd1f5a5d07edfe6d1cdf
Author: Jan Holesovsky 
AuthorDate: Thu Jan 2 17:26:45 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 18:09:20 2020 +0100

android: Enable and fix the access to the external SD card (if present).

It is necessary to trigger the system dialog to get the user's consent
to access the SD card, so let's show it right away instead of forcing
the user into the general provider settings activity.

Remove various sub-Android-5 code.

Various other details here and there to make it work.

Change-Id: Ic06ce39d17778c97e8e5c8f38b8ecf34338c3c28
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86137
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
index 66627c6f0..9590ebe35 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
@@ -106,15 +106,6 @@ public final class DocumentProviderFactory {
 return providerNames;
 }
 
-/**
- * Returns the default provider.
- *
- * @return default provider.
- */
-public IDocumentProvider getDefaultProvider() {
-return providers[0];
-}
-
 public Set getChangeListeners() {
 Set listeners =
 new HashSet();
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
index d4c2e830c..eb7b49ade 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/BrowserSelectorActivity.java
@@ -124,6 +124,10 @@ public class BrowserSelectorActivity extends 
AppCompatActivity {
 unregisterListeners();
 Log.d(LOGTAG, "Preference saved: " +
 preferences.getString(preferenceKey, 
getString(R.string.directory_not_saved)));
+
+// pass the result to whoever has called us
+Intent resultIntent = new Intent();
+setResult(resultCode, resultIntent);
 finish();
 }
 
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
index 2cb8cc72e..c6f481910 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
@@ -1,3 +1,12 @@
+/* -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
 package org.libreoffice.androidapp.storage.external;
 
 import android.Manifest;
@@ -22,15 +31,15 @@ import androidx.core.content.ContextCompat;
 import androidx.documentfile.provider.DocumentFile;
 
 /**
- * Implementation of IDocumentProvider for the external file system, for 
android 4.4+
+ * Implementation of IDocumentProvider for the external file system.
  *
- * The DocumentFile class is required when accessing files in external storage
- * for Android 4.4+. The ExternalFile class is used to handle this.
+ * 
https://stackoverflow.com/questions/40068984/universal-way-to-write-to-external-sd-card-on-android
+ * https://developer.android.com/training/data-storage/shared/documents-files
  *
- * Android 4.4 & 5+ use different types of root directory paths,
- * 5 using a DirectoryTree Uri and 4.4 using a normal File path.
- * As such, different methods are required to obtain the rootDirectory IFile.
- * 4.4 has to guess the location of the rootDirectory as well.
+ * On the Android versions we target, it's not possible to access files on a
+ * SD card directly, first you need to trigger the system file picker
+ * 

[Libreoffice-commits] online.git: android/app

2020-01-02 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/java/org/libreoffice/androidapp/ui/FileUtilities.java 
 |1 +
 
android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java 
|4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 5733c3cf7816cd4d7d031fbe7bf58955a37330da
Author: Jan Holesovsky 
AuthorDate: Thu Jan 2 16:55:42 2020 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 18:08:36 2020 +0100

android: Avoid crash with unknown file types, and add .txt.

Change-Id: If5c04d5c3c6cd11c7231e59a91ac1649dbb11b88
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86135
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/FileUtilities.java 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/FileUtilities.java
index 1ca28de45..226d38baa 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/ui/FileUtilities.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/ui/FileUtilities.java
@@ -101,6 +101,7 @@ public class FileUtilities {
 
 // Other
 mExtnMap.put(".csv",  CALC);
+mExtnMap.put(".txt",  DOC);
 mExtnMap.put(".wps",  DOC);
 mExtnMap.put(".key",  IMPRESS);
 mExtnMap.put(".abw",  DOC);
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
index 6ad8aba48..a66c54b04 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/RecentFilesAdapter.java
@@ -72,7 +72,9 @@ class RecentFilesAdapter extends 
RecyclerView.Adapterhttps://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app loleaflet/po

2020-01-02 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ast/strings.xml |   23 +++-
 loleaflet/po/help-cs.po |   50 -
 loleaflet/po/ui-lo.po   |   67 
 3 files changed, 80 insertions(+), 60 deletions(-)

New commits:
commit 30e35fd7ef4e24898f16b20c7f3e969edca55d7e
Author: Weblate 
AuthorDate: Thu Jan 2 14:23:43 2020 +0100
Commit: Andras Timar 
CommitDate: Thu Jan 2 15:58:13 2020 +0100

update translations

LibreOffice Online/android-app (Asturian)
Currently translated at 20.2% (20 of 99 strings)

Change-Id: Ibaa42bad435e5f5732b3110b0a57b32a7e30f724

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 70.4% (293 of 416 strings)

Change-Id: I5751485880e2c2bd6f8ef51728e911003cd8a135

update translations

LibreOffice Online/loleaflet-ui (Lao)
Currently translated at 9.9% (28 of 282 strings)

Change-Id: I71fcedffbde7c6121a5a2a272a31a38e8b42a746
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86105
Reviewed-by: Andras Timar 
Tested-by: Andras Timar 

diff --git a/android/app/src/main/res/values-ast/strings.xml 
b/android/app/src/main/res/values-ast/strings.xml
index a6b3daec9..8f7288140 100644
--- a/android/app/src/main/res/values-ast/strings.xml
+++ b/android/app/src/main/res/values-ast/strings.xml
@@ -1,2 +1,23 @@
 
-
\ No newline at end of file
+
+Sistema de ficheros llocal
+Direutoriu de documentos
+Too
+Z-A
+A-Z
+Distribución del xestor de 
ficheros
+Peñera de ficheros predeterminada
+Ficheros/carpetes anubríos
+Axustes del xestor de 
ficheros
+Axustes
+Llista
+Ordenar por
+Peñerar por
+ensin títulu
+Axustes
+Tocante a
+Tolos ficheros
+Abrir
+Documentos
+Allugamientos de documentos
+
\ No newline at end of file
diff --git a/loleaflet/po/help-cs.po b/loleaflet/po/help-cs.po
index 20f9db08c..cbc07363d 100644
--- a/loleaflet/po/help-cs.po
+++ b/loleaflet/po/help-cs.po
@@ -3,7 +3,7 @@ msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "POT-Creation-Date: 2019-12-15 17:50+0200\n"
-"PO-Revision-Date: 2019-12-31 09:37+\n"
+"PO-Revision-Date: 2020-01-02 13:23+\n"
 "Last-Translator: Stanislav Horáček \n"
 "Language-Team: Czech 
\n"
 "Language: cs\n"
@@ -1227,97 +1227,95 @@ msgstr "Práce s obrázky"
 
 #: html/loleaflet-help.html%2Bdiv.p:320-5
 msgid "%productName inserts images in the 
text document from your local computer or from your cloud storage. Inserted 
images are always embedded in the document."
-msgstr ""
+msgstr "V %productName lze do textového 
dokumentu vkládat obrázky z počítače nebo z cloudového úložiště. Do dokumentu 
se vždy ukládá celý obrázek, ne pouze odkaz na něj."
 
 #: html/loleaflet-help.html%2Bdiv.p:321-5
 msgid "Insert image: Clicking on the Insert image icon allows you to choose an image from the 
cloud storage's folders and shares."
-msgstr ""
+msgstr "Vložit obrázek: Po klepnutí na ikonu Vložit obrázek budete moci vybrat obrázek ze složek a 
sdílených složek cloudového úložiště."
 
 #: html/loleaflet-help.html%2Bdiv.p:322-5
 msgid "Insert local image: opens the browser file 
picker to upload the image from your local computer and insert it into the 
document."
-msgstr ""
+msgstr "Vložit místní obrázek: otevře souborový 
dialog prohlížeče, v němž můžete nahrát soubor z počítače a vložit jej do 
dokumentu."
 
 #: html/loleaflet-help.html%2Bdiv.p:323-5
 msgid "Images can be resized, rotated and anchored. Text can be wrapped around 
the image. Select the image and open the context menu. Use the images handles 
to resize the image with the mouse."
-msgstr ""
+msgstr "U obrázků lze měnit velikost, otáčet je a ukotvovat. Text může okolo 
obrázku obtékat. Nastavení jsou k dispozici po výběru obrázku a otevření místní 
nabídky. Chcete-li změnit velikost obrázku myší, použijte jeho úchyty."
 
 #: html/loleaflet-help.html%2Bdiv.h4:324-5
-#, fuzzy
-#| msgid "Go to end of document"
 msgid "Comments in documents"
-msgstr "Přejít na konec dokumentu"
+msgstr "Komentáře v dokumentu"
 
 #: html/loleaflet-help.html%2Bdiv.p:325-5
 msgid "Insert comments in %productName in 
places that need special reader attention. Comments are displayed on the right 
and carry the name and date of the issuer."
-msgstr ""
+msgstr "Komentáře se v %productName 
vkládají na místa, která vyžadují od čtenáře zvláštní pozornost. Zobrazují se 
vpravo spolu se jménem autora a datem."
 
 #: html/loleaflet-help.html%2Bdiv.p.img:327-5
 msgid "Click on the submenu () icon to reply, move and delete comments."
-msgstr ""
+msgstr "Chcete-li na komentář odpovědět, přesunout jej nebo smazat, klepněte 
na ikonu podnabídky ()."
 
 #: html/loleaflet-help.html%2Bdiv.h4:328-5
 msgid "Spellchecking"
-msgstr ""
+msgstr "Kontrola pravopisu"
 
 #: 

[Libreoffice-commits] online.git: android/app android/lib

2020-01-02 Thread Yunusemre Şentürk (via logerrit)
 android/app/build.gradle |4 
 android/lib/build.gradle |4 
 2 files changed, 8 insertions(+)

New commits:
commit 710549b30a1ae6592a6a62633e57ffced6dbe2ef
Author: Yunusemre Şentürk 
AuthorDate: Thu Jan 2 17:46:05 2020 +0300
Commit: Jan Holesovsky 
CommitDate: Thu Jan 2 15:51:09 2020 +0100

android: Fix gradlew build errors caused by missing translations

Change-Id: I9d6b6090e261685ec0a7c0d62bccb3bef596aae7
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/86126
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index ae84e6495..307837015 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -12,6 +12,10 @@ android {
 targetSdkVersion 28
 }
 
+lintOptions {
+disable 'MissingTranslation'
+}
+
 buildTypes {
 debug {
 resValue "string", "app_name", "${liboAppName} Debug"
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index c9e953e0c..6523ca683 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -18,6 +18,10 @@ android {
 }
 }
 
+lintOptions {
+disable 'MissingTranslation'
+}
+
 buildTypes {
 debug {
 buildConfigField "String", "GIT_COMMIT", "\"${liboGitFullCommit}\""
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app loleaflet/po

2019-12-31 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ru/strings.xml |   39 ++
 loleaflet/po/help-cs.po|  112 +++
 loleaflet/po/help-el.po|  390 -
 loleaflet/po/help-eu.po|   64 ++--
 loleaflet/po/help-tr.po|8 
 loleaflet/po/ios-ja.po |   11 
 loleaflet/po/ui-ast.po |   26 -
 loleaflet/po/ui-ca.po  |   22 -
 loleaflet/po/ui-cs.po  |   30 -
 loleaflet/po/ui-es.po  |4 
 loleaflet/po/ui-pt_BR.po   |6 
 loleaflet/po/ui-tr.po  |   37 --
 12 files changed, 375 insertions(+), 374 deletions(-)

New commits:
commit 104d574f247cf19ef2567c0c468c34c26555c64b
Author: Weblate 
AuthorDate: Tue Dec 31 10:37:35 2019 +0100
Commit: Christian Lohmaier 
CommitDate: Tue Dec 31 10:43:53 2019 +0100

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 65.9% (274 of 416 strings)

Change-Id: I48b012237b44a58b9db99e1846ef6ada41591d30

update translations

LibreOffice Online/loleaflet-help (Greek)
Currently translated at 100.0% (416 of 416 strings)

Change-Id: I56fa496a05af7095426cf33981c7412e7b1ce884

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 64.9% (270 of 416 strings)

Change-Id: I21780e4434c97a2b1b57d6bee1395f7315401b9a

update translations

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

Change-Id: Ibaced4b2d7b9283295442ccb1bd29feb211ab9da

update translations

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

Change-Id: I1b5eb09d28c898a0017b992d38ceb8a539512435

update translations

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

Change-Id: Iecc592600d715a7e5734d0ff2137e45ec4c47fdc

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 28.3% (72 of 254 strings)

Change-Id: I90e71b72fe9f237319f816f4238ab8894e931acf

update translations

LibreOffice Online/android-app (Russian)
Currently translated at 36.4% (36 of 99 strings)

Change-Id: Icfdcbb39693f1040ac0020203d89b3d681bcc278

update translations

LibreOffice Online/ios (Japanese)
Currently translated at 25.0% (1 of 4 strings)

Change-Id: I9e517daf8c597873f13e5846ea8ae7f066180109

update translations

LibreOffice Online/loleaflet-help (Turkish)
Currently translated at 54.8% (228 of 416 strings)

Change-Id: I6fba1e15136dda371866c5466566ec0cd179bd85

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 60.1% (250 of 416 strings)

Change-Id: I5ac21e7bb84589c9b477c854aa114c53a1a8e89d

update translations

LibreOffice Online/loleaflet-help (Greek)
Currently translated at 73.1% (304 of 416 strings)

Change-Id: Ic330c9dc9c58dfd9f82202e25f34f328e1a095bd

update translations

LibreOffice Online/loleaflet-help (Czech)
Currently translated at 56.2% (234 of 416 strings)

Change-Id: I180f62f473f1b267c299c1800c3d3cebd14e77a3

update translations

LibreOffice Online/loleaflet-ui (Turkish)
Currently translated at 90.4% (255 of 282 strings)

Change-Id: Ic5d17c3cb2823c1d93ccfa50fc41a2c1278ae0ce

update translations

LibreOffice Online/loleaflet-ui (Czech)
Currently translated at 100.0% (282 of 282 strings)

Change-Id: I0e62f01cbb464302560e9a3fa594c05893528b30

update translations

LibreOffice Online/android-app (German)
Currently translated at 64.6% (64 of 99 strings)

Change-Id: I0a02762f6326c45800152c8dbe37c783cde4bfad

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 58.4% (243 of 416 strings)

Change-Id: Ie2471d9c57c5f8ad98973f76007d4f50b6074e63

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.8% (415 of 416 strings)

Change-Id: I09437d51b9aa80de90db047acdc9cc4ab45411a0

update translations

LibreOffice Online/loleaflet-help (Greek)
Currently translated at 54.3% (226 of 416 strings)

Change-Id: Ic6d62cf74743557d949b2e295b170cd9d21be160

update translations

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

Change-Id: Ibdba503dbe7c6860cd864da6e9991d56afb8d59c

update translations

LibreOffice Online/loleaflet-help (Asturian)

[Libreoffice-commits] online.git: android/app android/lib android/README configure.ac

2019-12-30 Thread Jan Holesovsky (via logerrit)
 android/README |   11 +++
 android/app/appSettings.gradle.in  |1 
 android/app/build.gradle   |7 +-
 android/lib/build.gradle   |7 +-
 android/lib/libSettings.gradle.in  |1 
 android/lib/src/main/cpp/CMakeLists.txt.in |   87 
 configure.ac   |   89 +
 7 files changed, 149 insertions(+), 54 deletions(-)

New commits:
commit d556760c2f7ca731c428c4c8fa081ed7a1dfbb4b
Author: Jan Holesovsky 
AuthorDate: Mon Nov 25 21:34:21 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Mon Dec 30 14:24:30 2019 +0100

android: Implement (optional) support for both 32bit and 64bit build.

This adds possiblity to specify additional build trees for LibreOffice
and POCO that contain the 64bit version, like:


--with-lo-builddir=/local/libreoffice/master-android-release:/local/libreoffice/master-android-release-64bit
 \

--with-poco-includes=/opt/poco-android/include:/opt/poco-android-64bit/include \
--with-poco-libs=/opt/poco-android/lib:/opt/poco-android-64bit/lib \

which triggers both 32bit and 64bit build.

It should be still possible to build just 32bit when used without the
semicolons - which is useful for the normal development.

Change-Id: I99145e57f0cc15f022c05d09f8c4ab275880d44b
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/84312
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/README b/android/README
index 4606ef3a3..339593151 100644
--- a/android/README
+++ b/android/README
@@ -82,6 +82,17 @@ build the native parts on Windows.
   + Open this 'android' subdir as a project
   + Build from Android Studio (Build -> Make Project)
 
+== Building 32bit + 64bit combined .apk ==
+
+  + you need to build both a 32bit (armeabi-v7a) and 64bit (arm64-v8a) core
+  + you need to build both a 32bit and 64bit POCO
+  + and then provide paths to both to the ./configure, separated by a colon 
':',
+like:
+
+
--with-lo-builddir=/local/libreoffice/master-android-release:/local/libreoffice/master-android-release-64bit
 \
+
--with-poco-includes=/opt/poco-android/include:/opt/poco-android-64bit/include \
+--with-poco-libs=/opt/poco-android/lib:/opt/poco-android-64bit/lib \
+
 == Debugging ==
 
 To debug the native code in Android Studio, you need the debugging symbols and
diff --git a/android/app/appSettings.gradle.in 
b/android/app/appSettings.gradle.in
index 4ce26c221..a4e89c24f 100644
--- a/android/app/appSettings.gradle.in
+++ b/android/app/appSettings.gradle.in
@@ -6,6 +6,7 @@ ext {
 liboInfoURL = '@INFO_URL@'
 liboLauncherIcon= '@mipmap/@APP_IC_LAUNCHER@'
 liboHasBranding = '@APP_HAS_BRANDING@'
+liboAndroidAbi  = '@ANDROID_ABI@'
 }
 android.defaultConfig {
 applicationId '@ANDROID_PACKAGE_NAME@'
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 2a8c7e2e1..ae84e6495 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -20,8 +20,8 @@ android {
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
-//abiFilters "x86", "armeabi-v7a", "armeabi"
-abiFilters "armeabi-v7a"
+abiFilters = []
+abiFilters.addAll("${liboAndroidAbi}".split(' ').collect{it as 
String})
 }
 applicationIdSuffix '.debug'
 versionNameSuffix '-debug'
@@ -34,7 +34,8 @@ android {
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
-abiFilters "armeabi-v7a"
+abiFilters = []
+abiFilters.addAll("${liboAndroidAbi}".split(' ').collect{it as 
String})
 }
 minifyEnabled false // FIXME disabled before we get a good 
proguardRules for callFakeWebsocketOnMessage calling from C++
 shrinkResources false // FIXME cannot be enabled when 
minifyEnabled is turned off
diff --git a/android/lib/build.gradle b/android/lib/build.gradle
index 997bdfd23..c9e953e0c 100644
--- a/android/lib/build.gradle
+++ b/android/lib/build.gradle
@@ -22,15 +22,16 @@ android {
 debug {
 buildConfigField "String", "GIT_COMMIT", "\"${liboGitFullCommit}\""
 ndk {
-//abiFilters "x86", "armeabi-v7a", "armeabi"
-abiFilters "armeabi-v7a"
+abiFilters = []
+abiFilters.addAll("${liboAndroidAbi}".split(' ').collect{it as 
String})
 }
 debuggable true
 }
 release {
 buildConfigField "String", "GIT_COMMIT", "\"${liboGitFullCommit}\""
 ndk {
-

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2019-12-24 Thread Weblate (via logerrit)
 android/app/src/main/res/values-de/strings.xml  |   67 +
 android/app/src/main/res/values-dsb/strings.xml |  102 ++
 android/app/src/main/res/values-el/strings.xml  |  102 ++
 android/app/src/main/res/values-eu/strings.xml  |  102 ++
 android/app/src/main/res/values-hsb/strings.xml |  102 ++
 android/app/src/main/res/values-pt/strings.xml  |   41 +
 android/app/src/main/res/values-tr/strings.xml  |   27 +++
 android/lib/src/main/res/values-dsb/strings.xml |9 +
 android/lib/src/main/res/values-el/strings.xml  |9 +
 android/lib/src/main/res/values-eu/strings.xml  |9 +
 android/lib/src/main/res/values-hsb/strings.xml |9 +
 android/lib/src/main/res/values-tr/strings.xml  |9 +
 loleaflet/po/help-ast.po|   20 +-
 loleaflet/po/help-ca.po |   44 ++
 loleaflet/po/help-cs.po |   51 +++
 loleaflet/po/help-dsb.po|   33 +---
 loleaflet/po/help-el.po |   69 --
 loleaflet/po/help-es.po |  118 -
 loleaflet/po/help-eu.po |  103 +++---
 loleaflet/po/help-hsb.po|  125 --
 loleaflet/po/help-it.po |   31 +---
 loleaflet/po/help-pt.po |   71 +-
 loleaflet/po/help-pt_BR.po  |   21 +--
 loleaflet/po/help-tr.po |   67 -
 loleaflet/po/ios-ast.po |8 -
 loleaflet/po/ui-ast.po  |  106 +++
 loleaflet/po/ui-ca.po   |   12 -
 loleaflet/po/ui-cs.po   |   48 +++---
 loleaflet/po/ui-cy.po   |   13 +
 loleaflet/po/ui-de.po   |8 -
 loleaflet/po/ui-dsb.po  |   96 ++---
 loleaflet/po/ui-el.po   |   96 ++---
 loleaflet/po/ui-eo.po   |   13 +
 loleaflet/po/ui-es.po   |   47 +++---
 loleaflet/po/ui-eu.po   |  100 ++
 loleaflet/po/ui-hsb.po  |   96 ++---
 loleaflet/po/ui-it.po   |   13 +
 loleaflet/po/ui-pt.po   |8 -
 loleaflet/po/ui-pt_BR.po|  165 ++--
 loleaflet/po/ui-tr.po   |   39 ++---
 loleaflet/po/ui-zh_TW.po|   13 +
 41 files changed, 1304 insertions(+), 918 deletions(-)

New commits:
commit 5687807864f9214af2355615eec2810b1d834e8d
Author: Weblate 
AuthorDate: Tue Dec 24 19:45:46 2019 +0100
Commit: Andras Timar 
CommitDate: Tue Dec 24 22:19:10 2019 +0100

update translations

LibreOffice Online/android-app (German)
Currently translated at 64.6% (64 of 99 strings)

Change-Id: I0a02762f6326c45800152c8dbe37c783cde4bfad

update translations

LibreOffice Online/loleaflet-help (Basque)
Currently translated at 58.4% (243 of 416 strings)

Change-Id: Ie2471d9c57c5f8ad98973f76007d4f50b6074e63

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.8% (415 of 416 strings)

Change-Id: I09437d51b9aa80de90db047acdc9cc4ab45411a0

update translations

LibreOffice Online/loleaflet-help (Greek)
Currently translated at 54.3% (226 of 416 strings)

Change-Id: Ic6d62cf74743557d949b2e295b170cd9d21be160

update translations

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

Change-Id: Ibdba503dbe7c6860cd864da6e9991d56afb8d59c

update translations

LibreOffice Online/loleaflet-help (Asturian)
Currently translated at 7.7% (32 of 416 strings)

Change-Id: I0444fb66c5aab27eda0062740b8ab82d8b0e7c7b

update translations

LibreOffice Online/loleaflet-ui (Chinese (Traditional))
Currently translated at 81.2% (229 of 282 strings)

Change-Id: I9bf03a8faf102bcd455019ac69b8afa1896183b5

update translations

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

Change-Id: I0d4d6d2c3dc8ee10ee5fac17c4dee57da8163ed5

update translations

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

Change-Id: Ic9007adb9918dc39c530b48674682f2b666fec1b

update translations

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

Change-Id: Iee3ee122cd8b812047150b91183ba0c48a2682f7

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 

[Libreoffice-commits] online.git: android/app

2019-12-18 Thread mert (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |6 +-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 638b2c7eda0145df45a9398a4af30716eadcc1d0
Author: mert 
AuthorDate: Tue Dec 17 11:38:28 2019 +
Commit: Michael Meeks 
CommitDate: Wed Dec 18 15:14:20 2019 +0100

Preselect the new document textbox on creation

This way it is easier to delete the text
and enter a new one

Change-Id: I98c28ed8782f8546ceca464e0dae6b8a637db198
Reviewed-on: https://gerrit.libreoffice.org/85295
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Michael Meeks 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 60273b622..2317d42ad 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -28,7 +28,6 @@ import android.net.Uri;
 import android.os.AsyncTask;
 import android.os.Build;
 import android.os.Bundle;
-import android.os.Handler;
 import android.preference.PreferenceManager;
 import android.provider.Settings;
 import android.text.Editable;
@@ -47,6 +46,7 @@ import android.view.ViewGroup;
 import android.view.animation.Animation;
 import android.view.animation.AnimationUtils;
 import android.view.animation.OvershootInterpolator;
+import android.view.inputmethod.InputMethodManager;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.ImageView;
@@ -593,6 +593,10 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 // file name input
 final EditText input = (EditText)view.findViewById(R.id.fileName);
 input.setText(defaultFileName);
+input.setSelection(0, input.getText().toString().lastIndexOf('.'));
+input.requestFocus();
+InputMethodManager imm = (InputMethodManager) 
getSystemService(Context.INPUT_METHOD_SERVICE);
+imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,0);
 
 // warning text to notify the user that such a file already exists
 final TextView warningText = 
(TextView)view.findViewById(R.id.overwriteWarning);
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2019-12-17 Thread Weblate (via logerrit)
 android/app/src/main/res/values-cs/strings.xml |  102 
 android/app/src/main/res/values-pt-rBR/strings.xml |7 
 android/lib/src/main/res/values-cs/strings.xml |5 
 loleaflet/po/help-ca.po|   89 +---
 loleaflet/po/help-es.po|   32 -
 loleaflet/po/help-pt_BR.po |  452 ++---
 loleaflet/po/ui-ca.po  |   34 -
 loleaflet/po/ui-cs.po  |8 
 8 files changed, 406 insertions(+), 323 deletions(-)

New commits:
commit 126af3ac5870edf5ebc8eb7601b85daf2acb4e46
Author: Weblate 
AuthorDate: Tue Dec 17 12:05:55 2019 +0100
Commit: Andras Timar 
CommitDate: Tue Dec 17 16:14:58 2019 +0100

update translations

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

Change-Id: I4c01047f12d91b1bd5f4ae8f744aa116f99f8e57

update translations

LibreOffice Online/android-lib (Czech)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I2669b3646c0efac7530444800cc1bb59bfa6e0fe

update translations

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

Change-Id: I1ec178ea146a08b4b17d92a51bd5b6c14da44d14

update translations

LibreOffice Online/loleaflet-help (Portuguese (Brazil))
Currently translated at 98.8% (411 of 416 strings)

Change-Id: Ida001f151b3c85dde2918db7bdc64b2f98df633b

update translations

LibreOffice Online/loleaflet-help (Portuguese (Brazil))
Currently translated at 98.8% (411 of 416 strings)

Change-Id: I1bac72559b5ae3bb3e3f4e48c0a54d01a5a7a9bc

update translations

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

Change-Id: I53abd4585c1325825dd1133937a21752e8628644

update translations

LibreOffice Online/loleaflet-ui (Czech)
Currently translated at 89.4% (252 of 282 strings)

Change-Id: Id2cd31ccd8069e291dad1903fca517dbd20c087a

update translations

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

Change-Id: I497358c0e54f0d9f3f3a51c79337eba5bc635206

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.3% (413 of 416 strings)

Change-Id: Ib0e2e2dee239c6fadd5684047d5210c9ef9ae14f

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Change-Id: Ida0d57604d7a6e22417f43b623bc2587764d0c96
Translation: LibreOffice Online/loleaflet-help
Translate-URL: 
https://vm137.documentfoundation.org/projects/libo_online/loleaflet-help/

update translations

LibreOffice Online/android-app (Dutch)
Currently translated at 100.0% (98 of 98 strings)

Change-Id: Ic6c397821e10a6690e7068ebea0509a58248d041

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 58.2% (57 of 98 strings)

Change-Id: I81f83f2625a116898c11e408caeecb2fb85c8b5d

update translations

LibreOffice Online/android-lib (Czech)
Currently translated at 16.7% (1 of 6 strings)

Change-Id: I7b1493d4a8f3ea771b984beca3d9a5d8341b04f0

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I45d23d73977e300c0b0ee6c6d889323186398933

update translations

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

Change-Id: I48682b3edb51e98a7f1e9e92a863385ff29e3483

update translations

LibreOffice Online/android-lib (Catalan)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I6f689d13e94fedfeed5afcee610543182d35f88b

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 92.9% (91 of 98 strings)

Change-Id: Id757548de7239edadeb611c21ba664797b57c021

update translations

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

Change-Id: I0b4353ac906a037425f2cc9fa0e3be4c966e467a

update translations

LibreOffice Online/android-app (Spanish)
Currently translated at 100.0% (98 of 98 strings)

Change-Id: I2811efc78217f5def537714420704cf67d61b061

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.0% (412 of 416 strings)

Change-Id: Ia7b5a6888f96ea03f7c5ada6c5033f5bdb1bde8e

update translations

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

Change-Id: 

[Libreoffice-commits] online.git: android/app android/lib loleaflet/po

2019-12-15 Thread Weblate (via logerrit)
 android/app/src/main/res/values-ca/strings.xml |2 
 android/app/src/main/res/values-es/strings.xml |   68 
 android/app/src/main/res/values-nl/strings.xml |  101 -
 android/app/src/main/res/values-pt/strings.xml |   60 ++
 android/lib/src/main/res/values-ca/strings.xml |9 +-
 android/lib/src/main/res/values-cs/strings.xml |4 
 android/lib/src/main/res/values-es/strings.xml |   10 +-
 android/lib/src/main/res/values-nl/strings.xml |9 +-
 android/lib/src/main/res/values-pt/strings.xml |9 +-
 loleaflet/po/help-es.po|   27 +++---
 loleaflet/po/ui-ast.po |   12 +-
 loleaflet/po/ui-es.po  |   26 +++---
 loleaflet/po/ui-nl.po  |   22 ++---
 loleaflet/po/ui-pt.po  |   26 +++---
 loleaflet/po/ui-pt_BR.po   |   24 ++---
 15 files changed, 295 insertions(+), 114 deletions(-)

New commits:
commit 65e95784f9d95af5bc106fa9331e652dd7108f17
Author: Weblate 
AuthorDate: Sat Dec 14 19:56:35 2019 +0100
Commit: Andras Timar 
CommitDate: Sun Dec 15 12:48:08 2019 +0100

update translations

LibreOffice Online/android-app (Dutch)
Currently translated at 100.0% (98 of 98 strings)

Change-Id: Ic6c397821e10a6690e7068ebea0509a58248d041

update translations

LibreOffice Online/android-app (Portuguese)
Currently translated at 58.2% (57 of 98 strings)

Change-Id: I81f83f2625a116898c11e408caeecb2fb85c8b5d

update translations

LibreOffice Online/android-lib (Czech)
Currently translated at 16.7% (1 of 6 strings)

Change-Id: I7b1493d4a8f3ea771b984beca3d9a5d8341b04f0

update translations

LibreOffice Online/android-lib (Dutch)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I45d23d73977e300c0b0ee6c6d889323186398933

update translations

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

Change-Id: I48682b3edb51e98a7f1e9e92a863385ff29e3483

update translations

LibreOffice Online/android-lib (Catalan)
Currently translated at 100.0% (6 of 6 strings)

Change-Id: I6f689d13e94fedfeed5afcee610543182d35f88b

update translations

LibreOffice Online/android-app (Catalan)
Currently translated at 92.9% (91 of 98 strings)

Change-Id: Id757548de7239edadeb611c21ba664797b57c021

update translations

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

Change-Id: I0b4353ac906a037425f2cc9fa0e3be4c966e467a

update translations

LibreOffice Online/android-app (Spanish)
Currently translated at 100.0% (98 of 98 strings)

Change-Id: I2811efc78217f5def537714420704cf67d61b061

update translations

LibreOffice Online/loleaflet-help (Spanish)
Currently translated at 99.0% (412 of 416 strings)

Change-Id: Ia7b5a6888f96ea03f7c5ada6c5033f5bdb1bde8e

update translations

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

Change-Id: I6c5d7f72d034578cadc9645249ec0e05bd860200

update translations

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

Change-Id: Ia49e5271bbfe67a0cec3398bf2216bbd680852c1

update translations

LibreOffice Online/loleaflet-ui (Dutch)
Currently translated at 100.0% (254 of 254 strings)

Change-Id: If431df6f75eb5d26190083da9e0784d7d2f679c4

update translations

LibreOffice Online/loleaflet-ui (Spanish)
Currently translated at 99.3% (271 of 273 strings)

Change-Id: Ic083bb1e169316801963080f808d22c54a04a85b

update translations

LibreOffice Online/loleaflet-ui (Asturian)
Currently translated at 3.5% (9 of 254 strings)

Change-Id: Ia5d1d69ee97c4f3cbe5872a8b0ece2e16410a318
Reviewed-on: https://gerrit.libreoffice.org/85146
Tested-by: Jenkins CollaboraOffice 
Reviewed-by: Andras Timar 

diff --git a/android/app/src/main/res/values-ca/strings.xml 
b/android/app/src/main/res/values-ca/strings.xml
index 343166815..1fa1a3280 100644
--- a/android/app/src/main/res/values-ca/strings.xml
+++ b/android/app/src/main/res/values-ca/strings.xml
@@ -84,7 +84,7 @@
 Cal el permís 
d\'emmagatzematge
 Ha fallat la creació del 
fitxer
 Ja existeix un fitxer amb el mateix 
nom; se sobreescriurà.
-Aquest document és només de 
lectura; els desaments estan desactivats.
+Aquest fitxer és només de 
lectura; els desaments estan desactivats.
 No hi ha cap element
 No hi ha cap element recent
 $VENDOR us forneix aquesta versió.
diff --git a/android/app/src/main/res/values-es/strings.xml 

[Libreoffice-commits] online.git: android/app

2019-12-13 Thread Jan Holesovsky (via logerrit)
 android/app/build.gradle   
|1 
 android/app/src/main/AndroidManifest.xml   
|   10 +
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   18 +-
 android/app/src/main/res/values/strings.xml
|2 +
 android/app/src/main/res/xml/provider_paths.xml
|5 ++
 5 files changed, 27 insertions(+), 9 deletions(-)

New commits:
commit 468595e949118cb894d12cc3c210ff70f3d970db
Author: Jan Holesovsky 
AuthorDate: Fri Dec 13 15:47:37 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Fri Dec 13 15:53:04 2019 +0100

tdf#129192: Implement sharing from the shell.

The old code cannot work on newer Android.

Partially based on work by Kaishu Sahu, thank you!

Change-Id: I15e3f583572285642bc47595c21f4469f5a544a1
Reviewed-on: https://gerrit.libreoffice.org/85121
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 
(cherry picked from commit 6e8ebc5f87e62a391cfca0429c6c4bea7f6ccbfb)
Reviewed-on: https://gerrit.libreoffice.org/85122

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 158ea2ddf..2a8c7e2e1 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -58,6 +58,7 @@ repositories {
 dependencies {
 implementation fileTree(dir: 'libs', include: ['*.jar'])
 implementation 'androidx.appcompat:appcompat:1.0.2'
+implementation 'androidx.core:core:1.0.2'
 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
 implementation 'com.google.android.material:material:1.1.0-alpha04'
diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index fb584befd..8a501c8a0 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -126,6 +126,16 @@
 android:name=".SettingsActivity"
 android:label="@string/app_name_settings"
 android:theme="@style/Theme.AppCompat.Light" />
+
+
+
+
 
 
 
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 167ae17c1..60273b622 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -92,6 +92,7 @@ import androidx.appcompat.app.AppCompatActivity;
 import androidx.appcompat.widget.Toolbar;
 import androidx.core.app.ActivityCompat;
 import androidx.core.content.ContextCompat;
+import androidx.core.content.FileProvider;
 import androidx.core.view.ViewCompat;
 import androidx.drawerlayout.widget.DrawerLayout;
 import androidx.localbroadcastmanager.content.LocalBroadcastManager;
@@ -730,7 +731,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 }
 
 private void share(int position) {
-
 new AsyncTask() {
 @Override
 protected File doInBackground(IFile... document) {
@@ -755,14 +755,14 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 @Override
 protected void onPostExecute(File file) {
 if (file != null) {
-Intent sharingIntent = new 
Intent(android.content.Intent.ACTION_SEND);
-Uri uri = Uri.fromFile(file);
-
sharingIntent.setType(FileUtilities.getMimeType(file.getName()));
-
sharingIntent.putExtra(android.content.Intent.EXTRA_STREAM, uri);
-
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,
-file.getName());
-startActivity(Intent.createChooser(sharingIntent,
-getString(R.string.share_via)));
+Intent intentShareFile = new Intent(Intent.ACTION_SEND);
+Uri finalDocUri = 
FileProvider.getUriForFile(LibreOfficeUIActivity.this,
+
LibreOfficeUIActivity.this.getApplicationContext().getPackageName() + 
".fileprovider",
+file);
+intentShareFile.putExtra(Intent.EXTRA_STREAM, finalDocUri);
+
intentShareFile.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
+intentShareFile.setDataAndType(finalDocUri, 
LibreOfficeUIActivity.this.getContentResolver().getType(finalDocUri));
+
LibreOfficeUIActivity.this.startActivity(Intent.createChooser(intentShareFile, 
LibreOfficeUIActivity.this.getString(R.string.share_document)));
 }
 }
 }.execute(filePaths.get(position));
diff 

[Libreoffice-commits] online.git: android/app

2019-12-13 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/res/values/strings.xml |8 
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 513c6ec8c566de690a86a11393f6a52ca3020e4b
Author: Jan Holesovsky 
AuthorDate: Fri Dec 13 10:21:56 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Fri Dec 13 10:24:14 2019 +0100

android: Kill unnecessary capitalization.

Thanks to Adolfo Jayme Barrientos for spotting this.

Change-Id: I1104db134e60081cc1fac19b7e43997ea1738041
Reviewed-on: https://gerrit.libreoffice.org/85095
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 
(cherry picked from commit 1c43e7fd68e9000f332800dba4df61adcef9a870)
Reviewed-on: https://gerrit.libreoffice.org/85096

diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 082374b38..033ae98c2 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -74,9 +74,9 @@
 Remote server
 USB connected, configure your 
device.
 
-Cannot connect to the Cloud 
server. Check your configuration.
-Cannot log into the Cloud server. 
Check your configuration.
-Unspecified error connecting to 
the Cloud server. Check your configuration and/or try later.
+Cannot connect to the cloud 
server. Check your configuration.
+Cannot log in to the cloud server. 
Check your configuration.
+Unspecified error connecting to 
the cloud server. Check your configuration and/or try later.
 
 Invalid root file. Check your 
sd card configuration.
 Invalid root file. Check your OTG device 
and/or configuration.
@@ -93,7 +93,7 @@
 OTG device path
 Experimental Feature: Use only if OTG device is 
writable.
 Server URL
-URL and port of the Cloud 
server.
+URL and port of the cloud 
server.
 User name
 Password
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-12 Thread Pedro Pinto Silva (via logerrit)
 android/app/src/main/res/values-pt-rBR/strings.xml |4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a002f5ee86b173cdd1a570fca0c338f4561191e9
Author: Pedro Pinto Silva 
AuthorDate: Thu Dec 12 15:04:56 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Thu Dec 12 15:21:37 2019 +0100

* Change menu item text so it fits in the sidepane
* Fix diretorias to diretotios

Change-Id: I11152a1c0a3deb536930260007682e444ace74f9
Reviewed-on: https://gerrit.libreoffice.org/85058
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values-pt-rBR/strings.xml 
b/android/app/src/main/res/values-pt-rBR/strings.xml
index 2f2635506..d8d25 100644
--- a/android/app/src/main/res/values-pt-rBR/strings.xml
+++ b/android/app/src/main/res/values-pt-rBR/strings.xml
@@ -67,7 +67,7 @@
 
 Locais de arquivos
 Fechar Locais de arquivos
-Diretorias de documentos
+Diretórios de documentos
 Sistema local de arquivos
 SD externo
 Dispositivo OTG (experimental)
@@ -86,7 +86,7 @@
 
 
 
-Configurações do provedor de 
armazenamento
+Configurações de servidor
 Configurações do servidor na 
nuvem
 Configurações de armazenamento 
físico
 Caminho SD externo
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-12 Thread Andras Timar (via logerrit)
 android/app/src/main/locale/template.pot |  444 ---
 1 file changed, 444 deletions(-)

New commits:
commit 859c75037ea9534dd525476615ffbf737df82bea
Author: Andras Timar 
AuthorDate: Thu Dec 12 12:49:08 2019 +0100
Commit: Andras Timar 
CommitDate: Thu Dec 12 12:49:54 2019 +0100

Revert "android: add pot file for localization"

We'll use Weblate and it handles strings.xml directly

This reverts commit d6e55afc4b1238a8f2baf0f80c6d827ffccfe634.

Change-Id: I44ced10d7da37feffdd222a9a63a33545362b306

diff --git a/android/app/src/main/locale/template.pot 
b/android/app/src/main/locale/template.pot
deleted file mode 100644
index 336305881..0
--- a/android/app/src/main/locale/template.pot
+++ /dev/null
@@ -1,444 +0,0 @@
-# Translations template for PROJECT.
-# Copyright (C) 2019 ORGANIZATION
-# This file is distributed under the same license as the PROJECT project.
-# FIRST AUTHOR , 2019.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PROJECT VERSION\n"
-"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
-"POT-Creation-Date: 2019-12-11 11:07+\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME \n"
-"Language-Team: LANGUAGE \n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=utf-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Generated-By: Babel 2.7.0\n"
-
-#. string name="app_name" definition is deliberately missing here, it is filled
-#. in in build.gradle.
-msgctxt "app_name_settings"
-msgid "Settings"
-msgstr ""
-
-#, c-format
-msgctxt "app_version"
-msgid "Version: %1$s, Build ID: %2$s"
-msgstr ""
-
-msgctxt "app_description"
-msgid ""
-"$APP_NAME is a modern, easy-to-use, open source productivity suite for "
-"word processing, spreadsheets, presentations and more."
-msgstr ""
-
-msgctxt "app_vendor"
-msgid "This release was supplied by $VENDOR."
-msgstr ""
-
-msgctxt "no_recent_items"
-msgid "No recent items"
-msgstr ""
-
-msgctxt "no_items"
-msgid "No items"
-msgstr ""
-
-msgctxt "temp_file_saving_disabled"
-msgid "This file is read-only, saving is disabled."
-msgstr ""
-
-msgctxt "file_exists_warning"
-msgid "A file with this name already exists, and will be overwritten."
-msgstr ""
-
-msgctxt "file_creation_failed"
-msgid "File creation failed"
-msgstr ""
-
-msgctxt "storage_permission_required"
-msgid "Storage permission is required"
-msgstr ""
-
-msgctxt "failed_to_load_file"
-msgid "Failed to determine the file to load"
-msgstr ""
-
-msgctxt "list_view"
-msgid "List"
-msgstr ""
-
-msgctxt "grid_view"
-msgid "Grid"
-msgstr ""
-
-msgctxt "pref_category_explorer"
-msgid "File Explorer Settings"
-msgstr ""
-
-msgctxt "pref_show_hidden_files"
-msgid "Hidden Files/Folders"
-msgstr ""
-
-msgctxt "pref_show_hidden_files_summary"
-msgid "Enable to show hidden files/folders"
-msgstr ""
-
-msgctxt "pref_sort_summary"
-msgid "Select how to order files: A-Z, by size or by date."
-msgstr ""
-
-msgctxt "pref_viewmode_summary"
-msgid "View files as a grid or in a list."
-msgstr ""
-
-msgctxt "pref_file_explorer_title"
-msgid "File explorer layout"
-msgstr ""
-
-msgctxt "pref_sort_title"
-msgid "File Order"
-msgstr ""
-
-msgctxt "pref_filter_title"
-msgid "Default File Filter"
-msgstr ""
-
-msgctxt "pref_filter_summary"
-msgid "Set which file filter should be used by default."
-msgstr ""
-
-msgctxt "display_language"
-msgid "Display Language"
-msgstr ""
-
-msgctxt "display_language_summary"
-msgid "Set the default display language"
-msgstr ""
-
-msgctxt "pref_show_debug_info"
-msgid "Show Debug Info"
-msgstr ""
-
-msgctxt "pref_show_debug_info_summary"
-msgid "Enable to show debug information in document viewer"
-msgstr ""
-
-msgctxt "about_license"
-msgid "Show License"
-msgstr ""
-
-msgctxt "about_notice"
-msgid "Show Notice"
-msgstr ""
-
-msgctxt "about_moreinfo"
-msgid "More Info"
-msgstr ""
-
-msgctxt "new_textdocument"
-msgid "New Text Document"
-msgstr ""
-
-msgctxt "new_presentation"
-msgid "New Presentation"
-msgstr ""
-
-msgctxt "new_spreadsheet"
-msgid "New Spreadsheet"
-msgstr ""
-
-msgctxt "new_drawing"
-msgid "New Drawing"
-msgstr ""
-
-msgctxt "default_document_name"
-msgid "untitled"
-msgstr ""
-
-msgctxt "filter"
-msgid "Filter by"
-msgstr ""
-
-msgctxt "sort"
-msgid "Sort by"
-msgstr ""
-
-msgctxt "sort_smallest"
-msgid "Smallest first"
-msgstr ""
-
-msgctxt "sort_largest"
-msgid "Largest first"
-msgstr ""
-
-msgctxt "sort_az"
-msgid "A-Z"
-msgstr ""
-
-msgctxt "sort_za"
-msgid "Z-A"
-msgstr ""
-
-msgctxt "sort_oldest"
-msgid "Oldest first"
-msgstr ""
-
-msgctxt "sort_newest"
-msgid "Newest first"
-msgstr ""
-
-msgctxt "file_icon_desc"
-msgid "fileicon"
-msgstr ""
-
-msgctxt "title_recents"
-msgid "Recent files"
-msgstr ""
-
-msgctxt "title_browser"
-msgid "All files"
-msgstr ""
-
-#. Pref keys as resources ; Not currently used
-msgctxt "action_about"
-msgid "About"
-msgstr ""
-
-msgctxt "action_settings"
-msgid "Settings"
-msgstr ""
-
-msgctxt "open"
-msgid "Open"
-msgstr ""
-
-msgctxt "share"

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/res/values-tr/strings.xml |  138 +
 1 file changed, 7 insertions(+), 131 deletions(-)

New commits:
commit 8002f9f38ae2a9528bec7c4f59d33416a9901c82
Author: Jan Holesovsky 
AuthorDate: Wed Dec 11 20:32:56 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:45:14 2019 +0100

android: Removed unused resources.

Change-Id: If6175b4703db3d476acc781b9d02c84ca79f7c12
Reviewed-on: https://gerrit.libreoffice.org/84984
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values-tr/strings.xml 
b/android/app/src/main/res/values-tr/strings.xml
index 583fa5313..b50ce64d5 100644
--- a/android/app/src/main/res/values-tr/strings.xml
+++ b/android/app/src/main/res/values-tr/strings.xml
@@ -1,20 +1,16 @@
 
 
 
-LibreOffice Görüntüleyici
-LibreOffice Görüntüleyici 
Ayarları
+Ayarları
 
-LibreOffice Görüntüleyici 
\'Beta\'
 Versiyon: %1$s\nBuild ID: %2$s
-LibreOffice Görüntüleyici LibreOffice 
tabanlı bir belge görüntüleyicisidir.
-https://www.libreoffice.org
+$APP_NAME LibreOffice tabanlı bir belge 
görüntüleyicisidir.
 Bu sürüm $VENDOR tarafından 
derlenmiştir.
 Bu dosya salt okunabilir 
haldedir. Kaydetme devredışı.
 
 Lisansı Görüntüle
 Bildiriyi Görüntüle
 Daha Fazla Bilgi
-Çıkış için geri tuşuna tekrar 
basınız.
 
 Yeni Kelime İşlemci
 Yeni Sunum
@@ -22,12 +18,9 @@
 Yeni Çizim
 adsız
 
-LibreOffice Tarayıcı
-Ara
 Liste
 Grid
 Şununla filtrele:
-Söz dizimi bulunamadı.
 Şununla sırala:
 Küçükten büyüğe
 Büyükten küçüğe
@@ -35,27 +28,15 @@
 Z-A
 Eskiden yeniye
 Yeniden eskiye
-Boyuta Göre Sırala
-Alfabetik Sırala
-Tarihe Göre Sırala
-Seçenekler
 dosya_simgesi
 Son açılan dosyalar
 Tüm dosyalar
 
-EXPLORER_VIEW_TYPE
-CURRENT_DIRECTORY
 Dosya Gezgini Ayarları
-Genel
-Deneysel Mod
-Deneysel düzenleme modunu 
etkinleştirin. Kullanım riski size aittir.
 Gizli Dosyalar ve Dizinler
 Gizli dosyalar ve dizinleri 
göstermeyi etkinleştir.
-Geliştirici Modu
-Geliştirici modunu 
etkinleştirerek UNO komutları gönderin. Kullanım riski size aittir.
 
 Hakkında
-Bölümler
 Ayarlar
 Aç
 Paylaş
@@ -75,48 +56,30 @@
 Yerel dosya sistemi
 Harici SD
 OTG cihazı (deneysel)
-Uzak sunucu
 USB bağlantısı yapıldı, cihazınızın 
ayarlarını yapınız.
 
-ownCloud sunucusuna 
bağlanılamadı. Ayarlarınızı kontrol ediniz.
-ownCloud sunucusuna giriş yapılamadı. 
Ayarlarınızı kontrol ediniz.
-ownCloud sunucusuna bağlanırken 
belirtilmemiş bir hata oluştu. Lütfen daha sonra tekrar deneyiniz veya 
ayarlarınızı kontrol ediniz.
+Cloud sunucusuna bağlanılamadı. 
Ayarlarınızı kontrol ediniz.
+Cloud sunucusuna giriş yapılamadı. 
Ayarlarınızı kontrol ediniz.
+Cloud sunucusuna bağlanırken 
belirtilmemiş bir hata oluştu. Lütfen daha sonra tekrar deneyiniz veya 
ayarlarınızı kontrol ediniz.
 
 Geçersiz dizin. SD kart 
ayarlarınızı kontrol ediniz.
-Geçersiz dizin. SD kartınızı 
veya SD kart ayarlarınızı kontrol ediniz.
 Geçersiz dizin. OTG cihazınızı veya OTG 
cihazı ayarlarınızı kontrol ediniz.
 
 
-Kalın
-Altı çizgili
-Yana yatık
-Üzeri çizgili
-Klaveyi göster
-Kaydet
-Biçimlendirmeyi etkinleştir.
-Ara
-UNO komutu yolla
 
 
-Kaydetme tamamlandı.
-Belge kaydediliyor…
-Kayıt tamamlanmadı. Değişiklik 
yapıldı mı?
-"Yeni dosya oluşturuldu - "
-Yeni dosya oluşturma başarısız. 
Lütfen dosya ismini kontrol ediniz.
 
 
 Depolama sağlayıcısı 
ayarları
-ownCloud ayarları
+Cloud ayarları
 Fiziksel depolama 
ayarları
 Harici SD yolu
 OTG cihazı yolu
 Deneysel özellik: OTG cihazı yazılabilir ise 
kullanın
 Sunucu URL
-ownCloud sunucusu URL ve port
+Cloud sunucusu URL ve port
 Kullanıcı Adı
 Parola
-Geri Al
-Yinele
 
 
 Üst dizin
@@ -128,117 +91,30 @@
 Şuan ki dizin: %1$s
 
 
-Değişiklikleri kaydetmek istiyor 
musunuz?
-Kaydet
 İptal
-Hayır
 
 
 Dosya ismi girin
 OLUŞTUR
 
 
-Slayt Gösterisi
-Slayt Ekle
-Cihazınız uygulama 
içi slayt gösterisini desteklemiyor. Sunumu panoya kopyaladık. Lütfen ev tuşuna 
basıp modern bir tarayıcı açıp arama çubuğuna yapıştırın ve sunumu 
görüntüleyin.
-Tamam
-Geri
 
 
-Ekle
-Sil
-Gizle
-Göster
-En iyi uzunluk
-Uzunluğu ayarla
-Yüksekliği ayarla
-Genişliği ayarla
-En iyi yükseklikt
-En iyi genişlik
-Tamam
-Extra uzunluk giriniz: 
100th/mm
-İpucu: Başlığa çift 
dokunuş en iyi uzunluk ve genişliği ayarlar.
-Hesap Tablosu Ekle
 
 
-Tamam
-İptal
-Lütfen parola giriniz.
 
 
-Fotoğraf Çek
-Fotoğraf Seç
-Resim Seç
-Kamera bulunamadı.
-Düşük Kalite
-Orta Kalite
-Maksimum Kalite

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/res/values-tr/strings.xml |  244 +
 1 file changed, 244 insertions(+)

New commits:
commit b648eceecb0a5641da2686c3a234e1daab2f024e
Author: Jan Holesovsky 
AuthorDate: Wed Dec 11 20:25:22 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:44:22 2019 +0100

android: Turkish shell translations copied over from core.git.

Change-Id: If74644bdf2460f2fd2a8346b8440d4acc7c9
Reviewed-on: https://gerrit.libreoffice.org/84983
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values-tr/strings.xml 
b/android/app/src/main/res/values-tr/strings.xml
new file mode 100644
index 0..583fa5313
--- /dev/null
+++ b/android/app/src/main/res/values-tr/strings.xml
@@ -0,0 +1,244 @@
+
+
+
+LibreOffice Görüntüleyici
+LibreOffice Görüntüleyici 
Ayarları
+
+LibreOffice Görüntüleyici 
\'Beta\'
+Versiyon: %1$s\nBuild ID: %2$s
+LibreOffice Görüntüleyici LibreOffice 
tabanlı bir belge görüntüleyicisidir.
+https://www.libreoffice.org
+Bu sürüm $VENDOR tarafından 
derlenmiştir.
+Bu dosya salt okunabilir 
haldedir. Kaydetme devredışı.
+
+Lisansı Görüntüle
+Bildiriyi Görüntüle
+Daha Fazla Bilgi
+Çıkış için geri tuşuna tekrar 
basınız.
+
+Yeni Kelime İşlemci
+Yeni Sunum
+Yeni Hesap Tablosu
+Yeni Çizim
+adsız
+
+LibreOffice Tarayıcı
+Ara
+Liste
+Grid
+Şununla filtrele:
+Söz dizimi bulunamadı.
+Şununla sırala:
+Küçükten büyüğe
+Büyükten küçüğe
+A-Z
+Z-A
+Eskiden yeniye
+Yeniden eskiye
+Boyuta Göre Sırala
+Alfabetik Sırala
+Tarihe Göre Sırala
+Seçenekler
+dosya_simgesi
+Son açılan dosyalar
+Tüm dosyalar
+
+EXPLORER_VIEW_TYPE
+CURRENT_DIRECTORY
+Dosya Gezgini Ayarları
+Genel
+Deneysel Mod
+Deneysel düzenleme modunu 
etkinleştirin. Kullanım riski size aittir.
+Gizli Dosyalar ve Dizinler
+Gizli dosyalar ve dizinleri 
göstermeyi etkinleştir.
+Geliştirici Modu
+Geliştirici modunu 
etkinleştirerek UNO komutları gönderin. Kullanım riski size aittir.
+
+Hakkında
+Bölümler
+Ayarlar
+Aç
+Paylaş
+Şununla paylaş
+
+
+Hepsi
+Kelime İşlemci
+Hesap Tablosu
+Sunum
+Çizimler
+
+
+Belge dizinleri
+Belge dizinlerini kapat
+Belgeler
+Yerel dosya sistemi
+Harici SD
+OTG cihazı (deneysel)
+Uzak sunucu
+USB bağlantısı yapıldı, cihazınızın 
ayarlarını yapınız.
+
+ownCloud sunucusuna 
bağlanılamadı. Ayarlarınızı kontrol ediniz.
+ownCloud sunucusuna giriş yapılamadı. 
Ayarlarınızı kontrol ediniz.
+ownCloud sunucusuna bağlanırken 
belirtilmemiş bir hata oluştu. Lütfen daha sonra tekrar deneyiniz veya 
ayarlarınızı kontrol ediniz.
+
+Geçersiz dizin. SD kart 
ayarlarınızı kontrol ediniz.
+Geçersiz dizin. SD kartınızı 
veya SD kart ayarlarınızı kontrol ediniz.
+Geçersiz dizin. OTG cihazınızı veya OTG 
cihazı ayarlarınızı kontrol ediniz.
+
+
+Kalın
+Altı çizgili
+Yana yatık
+Üzeri çizgili
+Klaveyi göster
+Kaydet
+Biçimlendirmeyi etkinleştir.
+Ara
+UNO komutu yolla
+
+
+Kaydetme tamamlandı.
+Belge kaydediliyor…
+Kayıt tamamlanmadı. Değişiklik 
yapıldı mı?
+"Yeni dosya oluşturuldu - "
+Yeni dosya oluşturma başarısız. 
Lütfen dosya ismini kontrol ediniz.
+
+
+Depolama sağlayıcısı 
ayarları
+ownCloud ayarları
+Fiziksel depolama 
ayarları
+Harici SD yolu
+OTG cihazı yolu
+Deneysel özellik: OTG cihazı yazılabilir ise 
kullanın
+Sunucu URL
+ownCloud sunucusu URL ve port
+Kullanıcı Adı
+Parola
+Geri Al
+Yinele
+
+
+Üst dizin
+Onayla
+İptal
+Git
+Dizin Seç
+Geçersiz dizin
+Şuan ki dizin: %1$s
+
+
+Değişiklikleri kaydetmek istiyor 
musunuz?
+Kaydet
+İptal
+Hayır
+
+
+Dosya ismi girin
+OLUŞTUR
+
+
+Slayt Gösterisi
+Slayt Ekle
+Cihazınız uygulama 
içi slayt gösterisini desteklemiyor. Sunumu panoya kopyaladık. Lütfen ev tuşuna 
basıp modern bir tarayıcı açıp arama çubuğuna yapıştırın ve sunumu 
görüntüleyin.
+Tamam
+Geri
+
+
+Ekle
+Sil
+Gizle
+Göster
+En iyi uzunluk
+Uzunluğu ayarla
+Yüksekliği ayarla
+Genişliği ayarla
+En iyi yükseklikt
+En iyi genişlik
+Tamam
+Extra uzunluk giriniz: 
100th/mm
+İpucu: Başlığa çift 
dokunuş en iyi uzunluk ve genişliği ayarlar.
+Hesap Tablosu Ekle
+
+
+Tamam
+İptal
+Lütfen parola giriniz.
+
+
+Fotoğraf Çek
+Fotoğraf Seç
+Resim Seç
+Kamera bulunamadı.
+Düşük Kalite
+Orta Kalite
+Maksimum Kalite
+Sıkıştırma yapma
+Fotoğrafı sıkıştırmak ister 
misiniz?
+
+
+Kopyala
+Yapıştır
+Kes
+Geri
+Yazı panoya kopyalandı.
+Tablo Ekle
+Ekleme seçenekleri:
+Silme seçenekleri:
+Hesap 

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
   |5 
 android/app/src/main/java/org/libreoffice/androidapp/LocaleHelper.java 
|   67 --
 android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 
|3 
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   11 -
 android/app/src/main/res/values-es/strings.xml 
|2 
 android/app/src/main/res/values-pt-rBR/strings.xml 
|4 
 android/app/src/main/res/values/arrays.xml 
|8 -
 android/app/src/main/res/values/strings.xml
|2 
 android/app/src/main/res/xml/libreoffice_preferences.xml   
|9 -
 9 files changed, 1 insertion(+), 110 deletions(-)

New commits:
commit 1cb4cfe2b1f69d593177aed46eb47e8dceac7b95
Author: Jan Holesovsky 
AuthorDate: Wed Dec 11 20:13:49 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:42:53 2019 +0100

android: Honor the languge setting from the system.

Makes no sense to have an own language switching mechanism in the app...

Change-Id: Ic19bf36e35d1d011a1cd96c17b713e41577c512e
Reviewed-on: https://gerrit.libreoffice.org/84980
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
index 22594f665..382943ea4 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/LibreOfficeApplication.java
@@ -26,11 +26,6 @@ public class LibreOfficeApplication extends Application {
 
 return mainHandler;
 }
-
-@Override
-protected void attachBaseContext(Context base) {
-super.attachBaseContext(LocaleHelper.onAttach(base, "en"));
-}
 }
 
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/LocaleHelper.java 
b/android/app/src/main/java/org/libreoffice/androidapp/LocaleHelper.java
deleted file mode 100644
index 308f3b8fc..0
--- a/android/app/src/main/java/org/libreoffice/androidapp/LocaleHelper.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/* -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- 
*/
-/*
- * This file is part of the LibreOffice project.
- *
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/.
- */
-
-package org.libreoffice.androidapp;
-
-import android.content.Context;
-import android.content.SharedPreferences;
-import android.content.res.Configuration;
-import android.content.res.Resources;
-import android.os.Build;
-import android.preference.PreferenceManager;
-
-import java.util.Locale;
-
-public class LocaleHelper {
-
-private static final String SELECTED_LANG = 
"org.libreoffice.selected.lang";
-
-public static Context onAttach(Context context){
-String lang = getPersistedData(context, 
Locale.getDefault().getLanguage());
-return setLocale(context, lang);
-}
-
-public static Context onAttach(Context context, String defLang){
-String lang = getPersistedData(context, defLang);
-return setLocale(context, lang);
-}
-
-public static Context setLocale(Context context, String lang) {
-persist(context, lang);
-return updateResources(context, lang);
-}
-
-@SuppressWarnings("deprecation")
-private static Context updateResources(Context context, String lang) {
-Locale locale = new Locale(lang);
-Locale.setDefault(locale);
-
-Resources res = context.getResources();
-Configuration cfg = res.getConfiguration();
-cfg.locale = locale;
-if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1)
-cfg.setLayoutDirection(locale);
-
-res.updateConfiguration(cfg, res.getDisplayMetrics());
-return context;
-}
-
-private static void persist(Context context, String lang) {
-SharedPreferences preferences = 
PreferenceManager.getDefaultSharedPreferences(context);
-preferences.edit().putString(SELECTED_LANG, lang);
-preferences.edit().apply();
-}
-
-private static String getPersistedData(Context context, String lang) {
-SharedPreferences preferences = 
PreferenceManager.getDefaultSharedPreferences(context);
-return preferences.getString(SELECTED_LANG, lang);
-}
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/SettingsActivity.java 

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Jan Holesovsky (via logerrit)
 android/app/build.gradle |9 +
 1 file changed, 9 insertions(+)

New commits:
commit b9df7da0fffc49de72dd4da9a4ea5f4e9f4db968
Author: Jan Holesovsky 
AuthorDate: Wed Dec 11 20:12:45 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:41:46 2019 +0100

android: Fix build after the recent Nextcloud's android-library update.

Thanks Tobi for the hint!

Change-Id: I00b7ef4aaef7ced1d26d3d5636189e239897ecea
Reviewed-on: https://gerrit.libreoffice.org/84979
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 84f5ef91c..158ea2ddf 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -5,11 +5,13 @@ apply from: 'appSettings.gradle'
 
 android {
 compileSdkVersion 28
+
 defaultConfig {
 // applicationId, versionCode and versionName are defined in 
appSettings.gradle
 minSdkVersion 21
 targetSdkVersion 28
 }
+
 buildTypes {
 debug {
 resValue "string", "app_name", "${liboAppName} Debug"
@@ -40,6 +42,11 @@ android {
 'proguard-rules.pro'
 }
 }
+
+compileOptions {
+sourceCompatibility JavaVersion.VERSION_1_8
+targetCompatibility JavaVersion.VERSION_1_8
+}
 }
 
 repositories {
@@ -54,7 +61,9 @@ dependencies {
 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
 implementation 'com.google.android.material:material:1.1.0-alpha04'
+
 implementation 'com.github.nextcloud:android-library:-SNAPSHOT'
+implementation "commons-httpclient:commons-httpclient:3.1@jar" // remove 
after entire switch to lib v2
 
 //before changing the version please see 
https://issuetracker.google.com/issues/111662669
 implementation 'androidx.preference:preference:1.1.0-alpha01'
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Pedro Pinto Silva (via logerrit)
 android/app/src/main/res/values-pt-rBR/strings.xml |  145 +
 android/app/src/main/res/values/strings.xml|   12 -
 2 files changed, 151 insertions(+), 6 deletions(-)

New commits:
commit 7e1a6bdbecc794f6e552d14a558e13b2c8b100d1
Author: Pedro Pinto Silva 
AuthorDate: Wed Dec 11 14:53:09 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:40:03 2019 +0100

android: Brazilian Portuguese translations of the shell.

Change-Id: Ib71ccb7281e3e27c3184d3487b56253c61f2bc2a
Reviewed-on: https://gerrit.libreoffice.org/84978
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values-pt-rBR/strings.xml 
b/android/app/src/main/res/values-pt-rBR/strings.xml
new file mode 100644
index 0..d0add44cc
--- /dev/null
+++ b/android/app/src/main/res/values-pt-rBR/strings.xml
@@ -0,0 +1,145 @@
+
+
+
+Configurações
+Version: %1$s, Build ID: %2$s
+$APP_NAME é uma moderna suíte de 
produtividade para processamento de texto, folhas de cálculo e apresentações, 
de fácil utilização, e open source.
+Esta versão foi fornecida por $VENDOR.
+
+Nenhum item recente
+Nenhum item
+Este documento é apenas de 
leitura, salvaguardar está desabilitado.
+Um ficheiro com o mesmo nome já existe, 
e será substituído.
+Falha na criação do documento
+Permissão de armazenamento é 
requirida
+Falha no carregamento do 
documento
+
+Lista
+Grelha
+Configurações do gestor de 
arquivos
+Arquivos/pastas ocultas
+Mostrar arquivos/pastas 
ocultas
+Ordenar arquivos por: A-Z, Tamanho ou por 
data.
+Ver arquivos em grelha ou em 
list.
+Layout do gestor de 
arquivos
+Ordem padrão
+Filtro padrão
+Defina qual o filtro de arquivo que 
deve ser usado por padrão.
+Mostrar idioma
+Defina qual o idioma que deve ser 
usado por padrão
+Mostrar info de depuração 
+Habilitar info de depuração no 
document viewer
+
+Mostrar Licença
+Mostar aviso
+Mais informação
+
+Novo documento de texto
+Nova apresentação 
+Nova folha de cálculo
+Novo desenho
+Sem nome
+
+Filtrado por
+Ordenado por
+Mais pequeno primeiro
+Maior em primeiro lugar
+A-Z
+Z-A
+Mais antigo em primeiro
+Recentes em primeiro
+Ícone de arquivo
+Arquivos recentes
+Todos os arquivos
+
+
+Sobre
+Configurações
+Abir
+Partilhar
+Partilhar via
+
+
+Tudo
+Documentos
+Folhas de cálculo
+Apresentações
+Desehnhos
+
+
+Locais de arquivos
+Fechar Locais de arquivos
+Diretorias de documentos
+Sistema local de arquivos
+SD externo
+Dispositivo OTG (experimental)
+Servidor remoto
+USB conetado, configure o seu 
dispositivo.
+
+Falha na conexão com o seu 
servidor na nuvem. Verifique as suas configurações.
+Falha na autenticação com o seu 
servidor na nuvem. Verifique as suas configurações.
+Erro ao conetar com o seu 
servidor na nuvem. Verifique as suas configurações.
+
+Arquivo raiz inválido. 
Verifique a configuração do seu cartão SD.
+Arquivo raiz inválido. Verifique seu 
dispositivo OTG e/ou configuração.
+
+
+
+
+
+
+Configurações do provedor de 
armazenamento
+Configurações do servidor na 
nuvem
+Configurações de armazenamento 
físico
+Caminho SD externo
+Caminho do dispositivo OTG
+Recurso experimental: use somente se o 
dispositivo OTG for gravável.
+URL de servidor
+URL e porta do servidor na 
nuvem.
+Usuário
+Senha
+
+
+Ir para um diretório acima
+Confirmar
+Cancelar
+Ir
+Escolha Diretório
+Caminho de diretório inválido
+Diretório atual: %1$s
+
+
+Permissão necessária
+É necessária permissão de 
armazenamento para ler seus documentos.
+OK
+Tenho a certeza
+Cancelar
+
+
+Cancelar
+
+
+Criar novo documento
+Introduza o nome do arquivo:
+Criar
+Substituir
+
+
+Carregando...
+
+
+
+
+
+
+
+
+
+
+
+
+Não foi possível ir mais 
longe.
+Bmp é nulo!
+Diretório não salvo.
+sobre
+
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 8a2aa4d7b..bf434e74d 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -16,12 +16,12 @@
 
 List
 Grid
-File Explorer Settings
+File Manager Settings
 Hidden Files/Folders
 Enable to show hidden 
files/folders
 Select how to order files: A-Z, by size 
or by date.
 View files as a grid or in a 
list.
-File explorer layout
+File manager layout
 File Order
 Default File Filter
 Set which file filter should be used by 
default.
@@ -48,7 +48,7 @@
 Z-A
 Oldest first
 Newest first
-fileicon
+File icon
 Recent files
 All files
 
@@ 

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Eloy Crespo (via logerrit)
 android/app/src/main/res/values-es/strings.xml |  145 +
 1 file changed, 145 insertions(+)

New commits:
commit 7bb78ae23f512d1f6690e2e9ff6008e916243b8e
Author: Eloy Crespo 
AuthorDate: Wed Dec 11 14:43:10 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 20:39:42 2019 +0100

android: Spanish translations of the shell.

Change-Id: I5c0d0034085f6b03f7541f259048ab0774f92081
Reviewed-on: https://gerrit.libreoffice.org/84977
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values-es/strings.xml 
b/android/app/src/main/res/values-es/strings.xml
new file mode 100644
index 0..65d991201
--- /dev/null
+++ b/android/app/src/main/res/values-es/strings.xml
@@ -0,0 +1,145 @@
+
+
+
+Ajustes
+Version: %1$s, Build ID: %2$s
+$APP_NAME es un conjunto de productividad 
de código abierto moderno y fácil de usar, para procesamiento de textos, hojas 
de cálculo, presentaciones y más.
+Esta versión fue suministrada por 
$VENDOR.
+
+No hay elementos recientes
+No hay elementos
+Este archivo es de solo lectura, 
el guardado está deshabilitado.
+Ya existe un archivo con este nombre y 
se sobreescribirá
+La creación del archivo falló
+Se require permiso de 
almacenamiento
+Error al determinar el archivo a 
cargar
+
+Lista
+Cuadrícula
+Configuración del explorador de 
archivos
+Archivos/Carpetas Ocultas
+Habilitar para mostrar 
archivos/carpetas ocultas
+Seleccione cómo ordenar los archivos: 
A-Z, por tamaño o por fecha.
+Ver archivos como una cuadrícula o en 
una lista.
+Diseño del explorador de 
archivos
+Orden de Archivos
+Filtro de Archivos Predeterminado
+Establezca quçe filstro de archivo debe 
usarse de manera predeterminada.
+Idioma de visualización
+Establecer el idioma de 
visualización predeterminado
+Mostrar información de 
depuración
+Habilite para mostrar 
información de depuración en el visor de documentos
+
+Mostrar Licencia
+Mostrar Aviso
+Más Información
+
+Nuevo Documento de Texto
+Nueva Presentación
+Nueva Hoja de Cálculo
+Nuevo Dibujo
+sin título
+
+Filtrar por
+Ordenar por
+Más pequeño primero
+Más grande primero
+A-Z
+Z-A
+Más antiguo primero
+Más reciente primero
+icono de archivo
+Archivos recientes
+Todos los archivos
+
+
+Acerca de
+Ajustes
+Abrir
+Compartir
+Compartir vía
+
+
+Todo
+Documentos
+Hojas de cálculo
+Presentaciones
+Dibujos
+
+
+Ubicaciones de documentos
+Cerrar ubicaciones de 
documentos
+Directorio de documentos
+Systema de Arhivo local
+SD Externa
+Dispositivo OTB (experimental)
+Servidor remoto
+USB conectado, configure su 
dispositivo
+
+Imposible conectar con el 
servidor en la nube. Revise su configuración.
+Imposible iniciar sesión en el 
servidor en la nube. Revise su configuración.
+Error no especificado al 
conectarse al servidor en la nube. Revise su configuración y/o intente más 
tarde.
+
+Archivo raíz no válido. 
Verifique la configuración de su tarjeta sd.
+Archivo raíz no válido. Verifique su 
dispositivo OTG y/o la configuración.
+
+
+
+
+
+
+Configuración del proveedor de 
almacenamiento
+Configuración del servidor en la 
nube
+Configuraciones de almacenamiento 
físico
+Ruta SD externa
+Ruta del dispositivo OTG
+Característica experimental: Úselo solo si el 
dispositivo OTG es grabable
+URL del servidor
+URL y puerto del servidor en la 
nube
+Nombre de usuario
+Contraseña
+
+
+Al directorio principal
+Confirmar
+Cancelar
+Ir
+Elegir Directorio
+Ruta de directorio inválida
+Directorio Actual: %1$s
+
+
+Permiso Requerido
+Se requiere permiso de 
almacenamiento para leer sus documentos.
+OK
+Estoy seguro
+Cancelar
+
+
+Cancelar
+
+
+Crear Nuevo Documento
+Por favor ingrese el nombre del 
archivo:
+Crear
+Sobreescribir
+
+
+Cargando...
+
+
+
+
+
+
+
+
+
+
+
+
+Imposible ir más allá.
+Bmp es nulo!
+Directorio no guardado.
+Sobre
+
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Andras Timar (via logerrit)
 android/app/src/main/locale/template.pot |  444 +++
 1 file changed, 444 insertions(+)

New commits:
commit d6e55afc4b1238a8f2baf0f80c6d827ffccfe634
Author: Andras Timar 
AuthorDate: Wed Dec 11 11:24:03 2019 +
Commit: Andras Timar 
CommitDate: Wed Dec 11 11:24:03 2019 +

android: add pot file for localization

diff --git a/android/app/src/main/locale/template.pot 
b/android/app/src/main/locale/template.pot
new file mode 100644
index 0..336305881
--- /dev/null
+++ b/android/app/src/main/locale/template.pot
@@ -0,0 +1,444 @@
+# Translations template for PROJECT.
+# Copyright (C) 2019 ORGANIZATION
+# This file is distributed under the same license as the PROJECT project.
+# FIRST AUTHOR , 2019.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PROJECT VERSION\n"
+"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
+"POT-Creation-Date: 2019-12-11 11:07+\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME \n"
+"Language-Team: LANGUAGE \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Generated-By: Babel 2.7.0\n"
+
+#. string name="app_name" definition is deliberately missing here, it is filled
+#. in in build.gradle.
+msgctxt "app_name_settings"
+msgid "Settings"
+msgstr ""
+
+#, c-format
+msgctxt "app_version"
+msgid "Version: %1$s, Build ID: %2$s"
+msgstr ""
+
+msgctxt "app_description"
+msgid ""
+"$APP_NAME is a modern, easy-to-use, open source productivity suite for "
+"word processing, spreadsheets, presentations and more."
+msgstr ""
+
+msgctxt "app_vendor"
+msgid "This release was supplied by $VENDOR."
+msgstr ""
+
+msgctxt "no_recent_items"
+msgid "No recent items"
+msgstr ""
+
+msgctxt "no_items"
+msgid "No items"
+msgstr ""
+
+msgctxt "temp_file_saving_disabled"
+msgid "This file is read-only, saving is disabled."
+msgstr ""
+
+msgctxt "file_exists_warning"
+msgid "A file with this name already exists, and will be overwritten."
+msgstr ""
+
+msgctxt "file_creation_failed"
+msgid "File creation failed"
+msgstr ""
+
+msgctxt "storage_permission_required"
+msgid "Storage permission is required"
+msgstr ""
+
+msgctxt "failed_to_load_file"
+msgid "Failed to determine the file to load"
+msgstr ""
+
+msgctxt "list_view"
+msgid "List"
+msgstr ""
+
+msgctxt "grid_view"
+msgid "Grid"
+msgstr ""
+
+msgctxt "pref_category_explorer"
+msgid "File Explorer Settings"
+msgstr ""
+
+msgctxt "pref_show_hidden_files"
+msgid "Hidden Files/Folders"
+msgstr ""
+
+msgctxt "pref_show_hidden_files_summary"
+msgid "Enable to show hidden files/folders"
+msgstr ""
+
+msgctxt "pref_sort_summary"
+msgid "Select how to order files: A-Z, by size or by date."
+msgstr ""
+
+msgctxt "pref_viewmode_summary"
+msgid "View files as a grid or in a list."
+msgstr ""
+
+msgctxt "pref_file_explorer_title"
+msgid "File explorer layout"
+msgstr ""
+
+msgctxt "pref_sort_title"
+msgid "File Order"
+msgstr ""
+
+msgctxt "pref_filter_title"
+msgid "Default File Filter"
+msgstr ""
+
+msgctxt "pref_filter_summary"
+msgid "Set which file filter should be used by default."
+msgstr ""
+
+msgctxt "display_language"
+msgid "Display Language"
+msgstr ""
+
+msgctxt "display_language_summary"
+msgid "Set the default display language"
+msgstr ""
+
+msgctxt "pref_show_debug_info"
+msgid "Show Debug Info"
+msgstr ""
+
+msgctxt "pref_show_debug_info_summary"
+msgid "Enable to show debug information in document viewer"
+msgstr ""
+
+msgctxt "about_license"
+msgid "Show License"
+msgstr ""
+
+msgctxt "about_notice"
+msgid "Show Notice"
+msgstr ""
+
+msgctxt "about_moreinfo"
+msgid "More Info"
+msgstr ""
+
+msgctxt "new_textdocument"
+msgid "New Text Document"
+msgstr ""
+
+msgctxt "new_presentation"
+msgid "New Presentation"
+msgstr ""
+
+msgctxt "new_spreadsheet"
+msgid "New Spreadsheet"
+msgstr ""
+
+msgctxt "new_drawing"
+msgid "New Drawing"
+msgstr ""
+
+msgctxt "default_document_name"
+msgid "untitled"
+msgstr ""
+
+msgctxt "filter"
+msgid "Filter by"
+msgstr ""
+
+msgctxt "sort"
+msgid "Sort by"
+msgstr ""
+
+msgctxt "sort_smallest"
+msgid "Smallest first"
+msgstr ""
+
+msgctxt "sort_largest"
+msgid "Largest first"
+msgstr ""
+
+msgctxt "sort_az"
+msgid "A-Z"
+msgstr ""
+
+msgctxt "sort_za"
+msgid "Z-A"
+msgstr ""
+
+msgctxt "sort_oldest"
+msgid "Oldest first"
+msgstr ""
+
+msgctxt "sort_newest"
+msgid "Newest first"
+msgstr ""
+
+msgctxt "file_icon_desc"
+msgid "fileicon"
+msgstr ""
+
+msgctxt "title_recents"
+msgid "Recent files"
+msgstr ""
+
+msgctxt "title_browser"
+msgid "All files"
+msgstr ""
+
+#. Pref keys as resources ; Not currently used
+msgctxt "action_about"
+msgid "About"
+msgstr ""
+
+msgctxt "action_settings"
+msgid "Settings"
+msgstr ""
+
+msgctxt "open"
+msgid "Open"
+msgstr ""
+
+msgctxt "share"
+msgid "Share"
+msgstr ""
+
+msgctxt "share_via"
+msgid "Share via"
+msgstr ""
+
+#. Document browser filters
+msgctxt "filter_everything"
+msgid "Everything"
+msgstr ""
+
+msgctxt "filter_documents"
+msgid 

[Libreoffice-commits] online.git: android/app

2019-12-11 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit e628f26e87632c18f13937ba27bdb8f37c2b0d45
Author: Jan Holesovsky 
AuthorDate: Wed Dec 11 11:34:47 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Wed Dec 11 11:48:47 2019 +0100

android: Unregister the receiver from the right place.

Change-Id: Ifef497deb362ca23e16fb9ccd88c14b87770d963
Reviewed-on: https://gerrit.libreoffice.org/84930
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 306b167e3..e0c056862 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -1132,7 +1132,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 protected void onDestroy() {
 super.onDestroy();
 unregisterReceiver(mUSBReceiver);
-unregisterReceiver(mLOActivityReceiver);
+
LocalBroadcastManager.getInstance(this).unregisterReceiver(mLOActivityReceiver);
 Log.d(LOGTAG, "onDestroy");
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 437074a853c1fa454611a745beccfee9f0e35d8c
Author: Jan Holesovsky 
AuthorDate: Tue Dec 10 22:19:01 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 22:20:49 2019 +0100

android: Iterate according to the provider names again.

After commit 3dce52c307b203a1a255d4e986a62735543e644c, this is the right
thing to do again.

Change-Id: I3c34ee258677af59bfc7a55abcb09c4b7f3611a2
Reviewed-on: https://gerrit.libreoffice.org/84903
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 4d6512ab7..306b167e3 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -270,7 +270,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 );
 
 // Loop through the document providers menu items and check if they 
are available or not
-for (int index = 0; index < navigationDrawer.getMenu().size(); 
++index) {
+for (int index = 0; index < providerNames.size(); ++index) {
 MenuItem item = navigationDrawer.getMenu().getItem(index);
 
item.setVisible(documentProviderFactory.getProvider(index).checkProviderAvailability(this));
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
 |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 86350c62fe0beb6059bdc276cf9e43bf8c078c5f
Author: Jan Holesovsky 
AuthorDate: Tue Dec 10 17:12:33 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:26:45 2019 +0100

android: Cosmetics.

Change-Id: I9bdb97b6620dcecc5fb55a07c30309ceab6a4cc2
Reviewed-on: https://gerrit.libreoffice.org/84875
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
index 4683f81f9..338597615 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
@@ -172,7 +172,7 @@ public class OwnCloudFile implements IFile {
 @Override
 public void saveDocument() {
 if (mCachedFile == null) {
-Log.e(LOGTAG, "Trying to save document that was not created via 
getDocument()(");
+Log.e(LOGTAG, "Trying to save document that was not created via 
getDocument()");
 return;
 }
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/res/values/strings.xml |   10 +-
 1 file changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 2a1d62c6a76377e893a184bde6ff74808ff8ad69
Author: Jan Holesovsky 
AuthorDate: Tue Dec 10 16:57:10 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:25:27 2019 +0100

android: Ultimately we want to have this working for both.

Currently it can open files both from the ownCloud and Nextcloud
storage, but so far it seems that it cannot save back to ownCloud.

Unfortunately both the libraries have the same namespace, so to have
both the ownCloud's and Nextcloud's library in the same .apk, we'll need
to use some additional tricks.

Change-Id: I7fd647a42d3bd90b6268017ae392d61f67f548c0
Reviewed-on: https://gerrit.libreoffice.org/84874
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index 786b3b59a..8a2aa4d7b 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -76,9 +76,9 @@
 Remote server
 USB connected, configure your 
device.
 
-Cannot connect to ownCloud 
server. Check your configuration.
-Cannot log into ownCloud server. 
Check your configuration.
-Unspecified error connecting to 
ownCloud server. Check your configuration and/or try later.
+Cannot connect to the Cloud 
server. Check your configuration.
+Cannot log into the Cloud server. 
Check your configuration.
+Unspecified error connecting to 
the Cloud server. Check your configuration and/or try later.
 
 Invalid root file. Check your 
sd card configuration.
 Invalid root file. Check your OTG device 
and/or configuration.
@@ -89,13 +89,13 @@
 
 
 Storage provider settings
-ownCloud settings
+Cloud server settings
 Physical storage settings
 External SD path
 OTG device path
 Experimental Feature: Use only if OTG device is 
writable.
 Server URL
-URL and port of the ownCloud 
server.
+URL and port of the Cloud 
server.
 User name
 Password
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
 |3 +--
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
 |5 -
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/OTGDocumentsProvider.java
   |5 -
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
|2 +-
 4 files changed, 10 insertions(+), 5 deletions(-)

New commits:
commit 3dce52c307b203a1a255d4e986a62735543e644c
Author: Jan Holesovsky 
AuthorDate: Tue Dec 10 16:43:05 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:14:43 2019 +0100

android: Completely hide the External SD and OTG.

Many reports said it was broken, so let's disable before anybody
actually tests it & fixes.

Change-Id: I179de3774c0fb4be018e59cd629936a9d565dc15
Reviewed-on: https://gerrit.libreoffice.org/84873
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
index eb4a0ac91..66627c6f0 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/DocumentProviderFactory.java
@@ -62,11 +62,10 @@ public final class DocumentProviderFactory {
 instance.providers = new IDocumentProvider[5];
 instance.providers[0] = new LocalDocumentsDirectoryProvider(0);
 instance.providers[1] = new LocalDocumentsProvider(1);
+instance.providers[EXTSD_PROVIDER_INDEX] = new 
ExtsdDocumentsProvider(EXTSD_PROVIDER_INDEX, context);
 instance.providers[OTG_PROVIDER_INDEX] = new 
OTGDocumentsProvider(OTG_PROVIDER_INDEX, context);
 instance.providers[4] = new OwnCloudProvider(4, context);
 
-instance.providers[EXTSD_PROVIDER_INDEX] = new 
ExtsdDocumentsProvider(EXTSD_PROVIDER_INDEX, context);
-
 // initialize document provider names list
 instance.providerNames = new String[instance.providers.length];
 for (int i = 0; i < instance.providers.length; i++) {
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
index 46dec56f7..2cb8cc72e 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExtsdDocumentsProvider.java
@@ -163,7 +163,10 @@ public class ExtsdDocumentsProvider implements 
IExternalDocumentProvider,
 // getExternalStorageState().equals(Environment.MEDIA_MOUNTED) && 
isExternalStorageRemovable()
 // but they refer to the primary external storage anyway, so what 
currently is covered by the
 // "LocalDocumentsProvider"
-return rootPathURI!=null && ContextCompat.checkSelfPermission(context, 
Manifest.permission.WRITE_EXTERNAL_STORAGE) == 
PackageManager.PERMISSION_GRANTED;
+
+// FIXME temporarily disabled for good
+return false;
+//return rootPathURI!=null && 
ContextCompat.checkSelfPermission(context, 
Manifest.permission.WRITE_EXTERNAL_STORAGE) == 
PackageManager.PERMISSION_GRANTED;
 }
 
 @Override
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/OTGDocumentsProvider.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/OTGDocumentsProvider.java
index 899486c51..5add700b5 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/OTGDocumentsProvider.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/OTGDocumentsProvider.java
@@ -85,6 +85,9 @@ public class OTGDocumentsProvider implements 
IExternalDocumentProvider,
 @Override
 public boolean checkProviderAvailability(Context context) {
 // check if system supports USB Host
-return rootPathURI.length()>0 && 
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST);
+
+// FIXME temporarily disabled for good
+return false;
+//return rootPathURI.length()>0 && 
context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_USB_HOST);
 }
 }
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index c21e884f5..4d6512ab7 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -272,7 +272,7 

[Libreoffice-commits] online.git: android/app android/lib

2019-12-10 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/storage/IDocumentProvider.java
 |2 
 android/app/src/main/java/org/libreoffice/androidapp/storage/IFile.java
 |4 
 
android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExternalFile.java
 |   28 ++-
 
android/app/src/main/java/org/libreoffice/androidapp/storage/local/LocalFile.java
   |2 
 
android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
 |   33 +++
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
  |   83 +-
 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java   
 |   19 ++
 7 files changed, 145 insertions(+), 26 deletions(-)

New commits:
commit 07c3a7bdbbec886dd0d2635090e5bd483286853f
Author: Jan Holesovsky 
AuthorDate: Tue Dec 10 16:12:52 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:14:03 2019 +0100

android: Implement uploading back to the cloud storage.

All these cases should be covered:

* user's explicit save via File -> Save
* autosave
* autosave on exit

Implemented via IntentFilter magic, we can call back from one activity
to the other to perform the actual saving in the shell.

Change-Id: I97d6e94028a9600a71f030af7146ee01163d09b8
Reviewed-on: https://gerrit.libreoffice.org/84872
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/IDocumentProvider.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/IDocumentProvider.java
index 474610ab1..a16fb07c7 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/IDocumentProvider.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/IDocumentProvider.java
@@ -68,3 +68,5 @@ public interface IDocumentProvider {
  */
 boolean checkProviderAvailability(Context context);
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/IFile.java 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/IFile.java
index da8067bd0..5817f40b2 100644
--- a/android/app/src/main/java/org/libreoffice/androidapp/storage/IFile.java
+++ b/android/app/src/main/java/org/libreoffice/androidapp/storage/IFile.java
@@ -112,5 +112,7 @@ public interface IFile {
  * @param file
  *A local file pointing to the new version of the document.
  */
-void saveDocument(File file);
+void saveDocument();
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExternalFile.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExternalFile.java
index 6a78f983c..557e7580e 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExternalFile.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/external/ExternalFile.java
@@ -34,7 +34,10 @@ public class ExternalFile implements IFile{
 
 private ExtsdDocumentsProvider provider;
 private DocumentFile docFile;
-private File duplicateFile;
+
+/** We create the document just once, cache it for further returning. */
+private File mCachedFile;
+
 private Context context;
 
 public ExternalFile(ExtsdDocumentsProvider provider, DocumentFile docFile, 
Context context) {
@@ -112,12 +115,14 @@ public class ExternalFile implements IFile{
 
 @Override
 public File getDocument() {
-if(isDirectory()) {
+if (mCachedFile != null)
+return mCachedFile;
+
+if (isDirectory())
 return null;
-} else {
-duplicateFile = duplicateInCache();
-return duplicateFile;
-}
+
+mCachedFile = duplicateInCache();
+return mCachedFile;
 }
 
 private File duplicateInCache() {
@@ -138,11 +143,16 @@ public class ExternalFile implements IFile{
 }
 
 @Override
-public void saveDocument(File file) {
+public void saveDocument() {
+if (mCachedFile == null) {
+Log.e(LOGTAG, "Trying to save document that was not created via 
getDocument()(");
+return;
+}
+
 try{
 OutputStream ostream = context.getContentResolver().
 openOutputStream(docFile.getUri());
-InputStream istream = new FileInputStream(file);
+InputStream istream = new FileInputStream(mCachedFile);
 
 IOUtils.copy(istream, ostream);
 
@@ -162,3 +172,5 @@ public class ExternalFile implements IFile{
 }
 
 }
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s 
cinkeys+=0=break: */
diff --git 

[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 android/app/build.gradle   
 |6 +-
 
android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
 |   29 +-
 
android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudProvider.java
 |8 +-
 android/app/src/main/res/values/strings.xml
 |2 
 4 files changed, 23 insertions(+), 22 deletions(-)

New commits:
commit 9a6c6f767dc1fdbb2a00f37288a1a1bc5b6d7997
Author: Jan Holesovsky 
AuthorDate: Mon Dec 9 19:32:07 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:08:56 2019 +0100

android: Update the library for remote files to nextcloud/android-library.

The library bundled in the LibreOffice sources didn't work for me
neither with ownCloud nor with Nextcloud.

Change-Id: I88ee06bdffeed3229643575ffb274432582eaab8
Reviewed-on: https://gerrit.libreoffice.org/84869
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/build.gradle b/android/app/build.gradle
index 98ace7fb8..84f5ef91c 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -43,8 +43,8 @@ android {
 }
 
 repositories {
-flatDir {
-dirs 
"${liboWorkdir}/UnpackedTarball/owncloud_android_lib/build/outputs/aar"
+maven {
+url "https://jitpack.io;
 }
 }
 
@@ -54,7 +54,7 @@ dependencies {
 implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'
 implementation 'com.google.android.material:material:1.1.0-alpha04'
-implementation(name: 'owncloud_android_lib', ext: 'aar')
+implementation 'com.github.nextcloud:android-library:-SNAPSHOT'
 
 //before changing the version please see 
https://issuetracker.google.com/issues/111662669
 implementation 'androidx.preference:preference:1.1.0-alpha01'
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
index 21d800234..cc7589fae 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/storage/owncloud/OwnCloudFile.java
@@ -14,11 +14,12 @@ import java.util.List;
 import org.libreoffice.androidapp.storage.IFile;
 
 import com.owncloud.android.lib.common.operations.RemoteOperationResult;
-import 
com.owncloud.android.lib.resources.files.ChunkedUploadRemoteFileOperation;
-import com.owncloud.android.lib.resources.files.DownloadRemoteFileOperation;
-import com.owncloud.android.lib.resources.files.ReadRemoteFolderOperation;
-import com.owncloud.android.lib.resources.files.RemoteFile;
-import com.owncloud.android.lib.resources.files.UploadRemoteFileOperation;
+import 
com.owncloud.android.lib.resources.files.ChunkedFileUploadRemoteOperation;
+import com.owncloud.android.lib.resources.files.DownloadFileRemoteOperation;
+import com.owncloud.android.lib.resources.files.ReadFolderRemoteOperation;
+import com.owncloud.android.lib.resources.files.model.RemoteFile;
+import com.owncloud.android.lib.resources.files.UploadFileRemoteOperation;
+import com.owncloud.android.lib.resources.files.model.RemoteFile;
 
 /**
  * Implementation of IFile for ownCloud servers.
@@ -77,7 +78,7 @@ public class OwnCloudFile implements IFile {
 public List listFiles() {
 List children = new ArrayList();
 if (isDirectory()) {
-ReadRemoteFolderOperation refreshOperation = new 
ReadRemoteFolderOperation(
+ReadFolderRemoteOperation refreshOperation = new 
ReadFolderRemoteOperation(
 file.getRemotePath());
 RemoteOperationResult result = refreshOperation.execute(provider
 .getClient());
@@ -97,7 +98,7 @@ public class OwnCloudFile implements IFile {
 public List listFiles(FileFilter filter) {
 List children = new ArrayList();
 if (isDirectory()) {
-ReadRemoteFolderOperation refreshOperation = new 
ReadRemoteFolderOperation(
+ReadFolderRemoteOperation refreshOperation = new 
ReadFolderRemoteOperation(
 file.getRemotePath());
 RemoteOperationResult result = refreshOperation.execute(provider
 .getClient());
@@ -139,7 +140,7 @@ public class OwnCloudFile implements IFile {
 return null;
 }
 File downFolder = provider.getCacheDir();
-DownloadRemoteFileOperation operation = new 
DownloadRemoteFileOperation(
+DownloadFileRemoteOperation operation = new 
DownloadFileRemoteOperation(
 file.getRemotePath(), downFolder.getAbsolutePath());
 RemoteOperationResult result = operation.execute(provider.getClient());
 if (!result.isSuccess()) {
@@ -160,13 +161,13 @@ public 

[Libreoffice-commits] online.git: android/app

2019-12-10 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |4 
 android/app/src/main/res/menu/navigation_menu.xml  
|6 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

New commits:
commit 38b4af6eb524754b4f89c4244ffc5540763ba4d4
Author: Jan Holesovsky 
AuthorDate: Mon Dec 9 19:34:21 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 10 17:09:31 2019 +0100

android: Enable the Remote server again.

Change-Id: I321a7d7fa03eeb498acd4cf33ceba601f9ad0426
Reviewed-on: https://gerrit.libreoffice.org/84870
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 7d1983207..037de08ad 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -270,12 +270,10 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 public boolean onNavigationItemSelected(@NonNull MenuItem item) {
 
 switch (item.getItemId()) {
-/* FIXME disabled for the moment, enable when 
menu_provider_owncloud is enabled
 case R.id.menu_storage_preferences: {
 startActivity(new Intent(LibreOfficeUIActivity.this, 
DocumentProviderSettingsActivity.class));
 return true;
 }
-*/
 
 case R.id.menu_provider_documents: {
 
switchToDocumentProvider(documentProviderFactory.getProvider(0));
@@ -292,7 +290,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 return true;
 }
 
-/* FIXME disabled for the moment, it's totally untested
 case R.id.menu_provider_otg: {
 
switchToDocumentProvider(documentProviderFactory.getProvider(3));
 return true;
@@ -302,7 +299,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
switchToDocumentProvider(documentProviderFactory.getProvider(4));
 return true;
 }
-*/
 
 default:
 return false;
diff --git a/android/app/src/main/res/menu/navigation_menu.xml 
b/android/app/src/main/res/menu/navigation_menu.xml
index e96c3374d..5d78aaf11 100644
--- a/android/app/src/main/res/menu/navigation_menu.xml
+++ b/android/app/src/main/res/menu/navigation_menu.xml
@@ -16,24 +16,20 @@
 android:title="@string/external_sd_file_system"
 android:icon="@drawable/ic_sd_card_black_24dp"/>
 
-
 
 
 
 
-
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits


[Libreoffice-commits] online.git: android/app

2019-12-06 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |6 +-
 android/app/src/main/res/menu/navigation_menu.xml  
|4 
 2 files changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 6f49366f3cc071995140bf66ee4d53df0b2595e2
Author: Jan Holesovsky 
AuthorDate: Fri Dec 6 15:41:07 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Fri Dec 6 15:49:38 2019 +0100

android: Disable OTG and Remote server for the moment, it's totally 
untested.

Change-Id: I64b7a5ded00fc9dd481972a13a4c3b169802498a
Reviewed-on: https://gerrit.libreoffice.org/84640
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 0e2696190..7d1983207 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -260,7 +260,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 );
 
 // Loop through the document providers menu items and check if they 
are available or not
-for (int index = 0; index < providerNames.size(); index++) {
+for (int index = 0; index < navigationDrawer.getMenu().size(); 
++index) {
 MenuItem item = navigationDrawer.getMenu().getItem(index);
 
item.setEnabled(documentProviderFactory.getProvider(index).checkProviderAvailability(this));
 }
@@ -270,10 +270,12 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 public boolean onNavigationItemSelected(@NonNull MenuItem item) {
 
 switch (item.getItemId()) {
+/* FIXME disabled for the moment, enable when 
menu_provider_owncloud is enabled
 case R.id.menu_storage_preferences: {
 startActivity(new Intent(LibreOfficeUIActivity.this, 
DocumentProviderSettingsActivity.class));
 return true;
 }
+*/
 
 case R.id.menu_provider_documents: {
 
switchToDocumentProvider(documentProviderFactory.getProvider(0));
@@ -290,6 +292,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 return true;
 }
 
+/* FIXME disabled for the moment, it's totally untested
 case R.id.menu_provider_otg: {
 
switchToDocumentProvider(documentProviderFactory.getProvider(3));
 return true;
@@ -299,6 +302,7 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 
switchToDocumentProvider(documentProviderFactory.getProvider(4));
 return true;
 }
+*/
 
 default:
 return false;
diff --git a/android/app/src/main/res/menu/navigation_menu.xml 
b/android/app/src/main/res/menu/navigation_menu.xml
index db680a9a1..e96c3374d 100644
--- a/android/app/src/main/res/menu/navigation_menu.xml
+++ b/android/app/src/main/res/menu/navigation_menu.xml
@@ -16,6 +16,7 @@
 android:title="@string/external_sd_file_system"
 android:icon="@drawable/ic_sd_card_black_24dp"/>
 
+
 
 
 
 
+
 
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] online.git: android/app configure.ac loleaflet/Makefile.am

2019-12-06 Thread Jan Holesovsky (via logerrit)
 android/app/appSettings.gradle.in 
|1 +
 android/app/build.gradle  
|2 ++
 android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
|2 +-
 configure.ac  
|3 +++
 loleaflet/Makefile.am 
|1 +
 5 files changed, 8 insertions(+), 1 deletion(-)

New commits:
commit 1c8a31b33ed5813f99a86c2671a4cb04a9a099b9
Author: Jan Holesovsky 
AuthorDate: Fri Dec 6 14:49:44 2019 +0100
Commit: Andras Timar 
CommitDate: Fri Dec 6 15:46:04 2019 +0100

android: Brand also the shell's About dialog.

Change-Id: I63b668ad92c688ec69818c058a787dbd94b5cc8b
Reviewed-on: https://gerrit.libreoffice.org/84630
Reviewed-by: Jan Holesovsky 
Tested-by: Jenkins CollaboraOffice 

diff --git a/android/app/appSettings.gradle.in 
b/android/app/appSettings.gradle.in
index e1f9662bc..4ce26c221 100644
--- a/android/app/appSettings.gradle.in
+++ b/android/app/appSettings.gradle.in
@@ -5,6 +5,7 @@ ext {
 liboVendor  = '@VENDOR@'
 liboInfoURL = '@INFO_URL@'
 liboLauncherIcon= '@mipmap/@APP_IC_LAUNCHER@'
+liboHasBranding = '@APP_HAS_BRANDING@'
 }
 android.defaultConfig {
 applicationId '@ANDROID_PACKAGE_NAME@'
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 80fe4a55a..98ace7fb8 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -16,6 +16,7 @@ android {
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
+buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
 //abiFilters "x86", "armeabi-v7a", "armeabi"
 abiFilters "armeabi-v7a"
@@ -29,6 +30,7 @@ android {
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
 manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
+buildConfigField "boolean", "APP_HAS_BRANDING", 
"${liboHasBranding}"
 ndk {
 abiFilters "armeabi-v7a"
 }
diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
index 3875674cf..89fd32e74 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
@@ -82,7 +82,7 @@ public class AboutDialogFragment extends DialogFragment {
 vendorView.setText(vendor);
 
 AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
-builder .setIcon(R.drawable.lo_icon)
+builder .setIcon(BuildConfig.APP_HAS_BRANDING? 
R.drawable.ic_launcher_brand: R.drawable.lo_icon)
 .setTitle(R.string.app_name)
 .setView(messageView)
 .setNegativeButton(R.string.about_license, new 
DialogInterface.OnClickListener() {
diff --git a/configure.ac b/configure.ac
index 04c2e1816..4109b14fc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -849,12 +849,15 @@ AC_LINK_FILES([loleaflet/archived-packages], 
[loleaflet/archived-packages])
 
 APP_BRANDING_DIR=
 APP_IC_LAUNCHER="ic_launcher"
+APP_HAS_BRANDING="false"
 if test "$with_app_branding" != no -a -d "$with_app_branding"; then
 APP_BRANDING_DIR="$with_app_branding"
 APP_IC_LAUNCHER="ic_launcher_brand"
+APP_HAS_BRANDING="true"
 fi
 AC_SUBST(APP_BRANDING_DIR)
 AC_SUBST(APP_IC_LAUNCHER)
+AC_SUBST(APP_HAS_BRANDING)
 
 AS_IF([test "$ENABLE_IOSAPP" = "true"],
   [
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index e903d59fd..e829b9956 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -168,6 +168,7 @@ if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
@if test -d "$(APP_BRANDING_DIR)/android" ; then for I in `cd 
"$(APP_BRANDING_DIR)/android" && find . -type f` ; do mkdir -p 
$(abs_top_srcdir)/android/lib/src/main/res/`dirname $$I` ; cp -a 
"$(APP_BRANDING_DIR)/android/$$I" 
"$(abs_top_srcdir)/android/app/src/main/res/$$I" ; done ; fi
+   @touch 
"$(abs_top_srcdir)/android/app/src/main/res/drawable/ic_launcher_brand.xml" # 
to avoid problems with a missing resource in the non-branded builds
@echo
@echo "Copied JS, HTML and CSS to the Android project 
(android/lib/src/main/assets/dist)."

[Libreoffice-commits] online.git: android/app

2019-12-03 Thread Jan Holesovsky (via logerrit)
 android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
|3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d7fb42008ce48c73210b6b91c4c05d8008689926
Author: Jan Holesovsky 
AuthorDate: Tue Dec 3 12:51:35 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 3 14:52:49 2019 +0100

android: Don't crash in the shell's About dialog.

Change-Id: I12a7fcc789299f9b4efa035bb665afc6c89c04cc
Reviewed-on: https://gerrit.libreoffice.org/84353
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
index d101c2914..3875674cf 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/AboutDialogFragment.java
@@ -102,6 +102,7 @@ public class AboutDialogFragment extends DialogFragment {
 dialog.dismiss();
 }
 })
+/* FIXME Fix lauching the example document, this currently 
crashes.
 .setNeutralButton(R.string.about_moreinfo, new 
DialogInterface.OnClickListener() {
 @Override
 public void onClick(DialogInterface dialog, int id) {
@@ -110,7 +111,7 @@ public class AboutDialogFragment extends DialogFragment {
 startActivity(intent);
 dialog.dismiss();
 }
-});
+})*/;
 
 return builder.create();
 }
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] online.git: android/app

2019-12-03 Thread Jan Holesovsky (via logerrit)
 
android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 |   20 +-
 android/app/src/main/res/values/strings.xml
|1 
 2 files changed, 2 insertions(+), 19 deletions(-)

New commits:
commit 799cb25c06d123b23a6a2419dcbbdf93e95f6976
Author: Jan Holesovsky 
AuthorDate: Tue Dec 3 12:55:56 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 3 14:53:35 2019 +0100

android: When I want to quit, I mean it.

I hate when apps make it hard to exit them.

Change-Id: I31c73a70fff6a87512debc95cbd31ef0ba8c1f62
Reviewed-on: https://gerrit.libreoffice.org/84354
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
index 7dfc677a8..0e2696190 100644
--- 
a/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
+++ 
b/android/app/src/main/java/org/libreoffice/androidapp/ui/LibreOfficeUIActivity.java
@@ -151,8 +151,6 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 TextView noRecentItemsTextView;
 TextView noItemsTextView;
 
-private boolean canQuit = false;
-
 private Animation fabOpenAnimation;
 private Animation fabCloseAnimation;
 private boolean isFabMenuOpen = false;
@@ -398,22 +396,8 @@ public class LibreOfficeUIActivity extends 
AppCompatActivity implements Settings
 } else if (isFabMenuOpen) {
 collapseFabMenu();
 } else {
-// only exit if warning has been shown
-if (canQuit) {
-super.onBackPressed();
-return;
-}
-
-// show warning about leaving the app and set a timer
-Toast.makeText(this, R.string.back_again_to_quit,
-Toast.LENGTH_SHORT).show();
-canQuit = true;
-new Handler().postDelayed(new Runnable() {
-@Override
-public void run() {
-canQuit = false;
-}
-}, 3000);
+// exit the app
+super.onBackPressed();
 }
 }
 
diff --git a/android/app/src/main/res/values/strings.xml 
b/android/app/src/main/res/values/strings.xml
index aa73bec01..f93c59b61 100644
--- a/android/app/src/main/res/values/strings.xml
+++ b/android/app/src/main/res/values/strings.xml
@@ -33,7 +33,6 @@
 Show License
 Show Notice
 More Info
-Press back again to quit
 
 New Text Document
 New Presentation
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

[Libreoffice-commits] online.git: android/app configure.ac loleaflet/Makefile.am

2019-12-03 Thread Jan Holesovsky (via logerrit)
 android/app/.gitignore   |7 +++
 android/app/appSettings.gradle.in|1 +
 android/app/build.gradle |2 ++
 android/app/src/main/AndroidManifest.xml |2 +-
 configure.ac |3 +++
 loleaflet/Makefile.am|1 +
 6 files changed, 15 insertions(+), 1 deletion(-)

New commits:
commit d87f06adef2de107ed83dcfd28c152d3297ca8b5
Author: Jan Holesovsky 
AuthorDate: Tue Dec 3 11:56:10 2019 +0100
Commit: Jan Holesovsky 
CommitDate: Tue Dec 3 14:34:47 2019 +0100

android: Add possibility to brand the launcher icon.

Change-Id: I6cd531aab698236287eb7c20146caa61e34e8450
Reviewed-on: https://gerrit.libreoffice.org/84328
Reviewed-by: Jan Holesovsky 
Tested-by: Jan Holesovsky 

diff --git a/android/app/.gitignore b/android/app/.gitignore
index 0e5159da5..827faa729 100644
--- a/android/app/.gitignore
+++ b/android/app/.gitignore
@@ -2,3 +2,10 @@
 /app.iml
 /build
 /appSettings.gradle
+/src/main/res/drawable/ic_launcher_brand.xml
+/src/main/res/mipmap-anydpi-v26/ic_launcher_brand.xml
+/src/main/res/mipmap-hdpi/ic_launcher_brand.png
+/src/main/res/mipmap-mdpi/ic_launcher_brand.png
+/src/main/res/mipmap-xhdpi/ic_launcher_brand.png
+/src/main/res/mipmap-xxhdpi/ic_launcher_brand.png
+/src/main/res/mipmap-xxxhdpi/ic_launcher_brand.png
diff --git a/android/app/appSettings.gradle.in 
b/android/app/appSettings.gradle.in
index 960ceee9e..e1f9662bc 100644
--- a/android/app/appSettings.gradle.in
+++ b/android/app/appSettings.gradle.in
@@ -4,6 +4,7 @@ ext {
 liboAppName = '@APP_NAME@'
 liboVendor  = '@VENDOR@'
 liboInfoURL = '@INFO_URL@'
+liboLauncherIcon= '@mipmap/@APP_IC_LAUNCHER@'
 }
 android.defaultConfig {
 applicationId '@ANDROID_PACKAGE_NAME@'
diff --git a/android/app/build.gradle b/android/app/build.gradle
index aae9c4bc0..80fe4a55a 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -15,6 +15,7 @@ android {
 resValue "string", "app_name", "${liboAppName} Debug"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 ndk {
 //abiFilters "x86", "armeabi-v7a", "armeabi"
 abiFilters "armeabi-v7a"
@@ -27,6 +28,7 @@ android {
 resValue "string", "app_name", "${liboAppName}"
 resValue "string", "vendor", "${liboVendor}"
 resValue "string", "info_url", "${liboInfoURL}"
+manifestPlaceholders = [ appIcon: "${liboLauncherIcon}" ]
 ndk {
 abiFilters "armeabi-v7a"
 }
diff --git a/android/app/src/main/AndroidManifest.xml 
b/android/app/src/main/AndroidManifest.xml
index ae17c0878..fb584befd 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -18,7 +18,7 @@
 
diff --git a/configure.ac b/configure.ac
index 9f4ca7af1..2aaf5c96f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -841,10 +841,13 @@ 
AC_CONFIG_LINKS([loleaflet/package.json:loleaflet/package.json])
 AC_LINK_FILES([loleaflet/archived-packages], [loleaflet/archived-packages])
 
 APP_BRANDING_DIR=
+APP_IC_LAUNCHER="ic_launcher"
 if test "$with_app_branding" != no -a -d "$with_app_branding"; then
 APP_BRANDING_DIR="$with_app_branding"
+APP_IC_LAUNCHER="ic_launcher_brand"
 fi
 AC_SUBST(APP_BRANDING_DIR)
+AC_SUBST(APP_IC_LAUNCHER)
 
 AS_IF([test "$ENABLE_IOSAPP" = "true"],
   [
diff --git a/loleaflet/Makefile.am b/loleaflet/Makefile.am
index c412f71a3..e903d59fd 100644
--- a/loleaflet/Makefile.am
+++ b/loleaflet/Makefile.am
@@ -167,6 +167,7 @@ if ENABLE_ANDROIDAPP
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/branding.css" "$(APP_BRANDING_DIR)/branding.js" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/ ; else touch 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/branding.css ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)"/images/*.svg 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/ ; fi
@if test -d "$(APP_BRANDING_DIR)" ; then cp -a 
"$(APP_BRANDING_DIR)/images/toolbar-bg-logo.svg" 
$(abs_top_srcdir)/android/lib/src/main/assets/dist/images/toolbar-bg.svg ; fi
+   @if test -d "$(APP_BRANDING_DIR)/android" ; then for I in `cd 
"$(APP_BRANDING_DIR)/android" && find . -type f` ; do mkdir -p 
$(abs_top_srcdir)/android/lib/src/main/res/`dirname $$I` ; cp -a 
"$(APP_BRANDING_DIR)/android/$$I" 
"$(abs_top_srcdir)/android/app/src/main/res/$$I" ; done ; fi
@echo
@echo "Copied JS, HTML and CSS to the Android project 
(android/lib/src/main/assets/dist)."
@echo
___
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org

  1   2   >