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

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Wed Jul 29 08:41:47 UTC 2020


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

New commits:
commit f869b84f4b6ad86a9ce478272f2a13c3580e1970
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: Wed Jul 29 10:41:28 2020 +0200

    android: Log when we disable editing for easier debugging.
    
    Change-Id: I358b1a50be7f9f377e9376f8b1772ad92fd059ae
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98960
    Tested-by: Jenkins
    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