[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2' - android/lib

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Tue Jul 21 18:48:37 UTC 2020


 android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 44c16220d9ef4e252a7133fee91645b1d6f1b8b2
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Jul 17 16:02:46 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Jul 21 20:48:19 2020 +0200

    android: Log when we disable editing for easier debugging.
    
    Change-Id: I358b1a50be7f9f377e9376f8b1772ad92fd059ae
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98959
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

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 221c83174..24319e215 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -272,6 +272,7 @@ public class LOActivity extends AppCompatActivity {
                 // is it read-only?
                 if ((getIntent().getFlags() & Intent.FLAG_GRANT_WRITE_URI_PERMISSION) == 0) {
                     isDocEditable = false;
+                    Log.d(TAG, "Disabled editing: Read-only");
                     Toast.makeText(this, getResources().getString(R.string.temp_file_saving_disabled), Toast.LENGTH_SHORT).show();
                 }
 
@@ -282,6 +283,7 @@ public class LOActivity extends AppCompatActivity {
                 if (isDocEditable && (getIntent().getData().toString().startsWith("content://org.chromium.arc.chromecontentprovider/externalfile") ||
                                       getIntent().getData().toString().startsWith("content://org.chromium.arc.volumeprovider/"))) {
                     isDocEditable = false;
+                    Log.d(TAG, "Disabled editing: Chrome OS unsupported content providers");
                     Toast.makeText(this, getResources().getString(R.string.file_chromeos_read_only), Toast.LENGTH_LONG).show();
                 }
 


More information about the Libreoffice-commits mailing list