[Libreoffice-commits] online.git: Branch 'distro/collabora/co-4-2-5' - android/lib
Jan Holesovsky (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jul 17 14:12:21 UTC 2020
android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit edd1b83345169c75bbedb022567f4e2cacd64e5d
Author: Jan Holesovsky <kendy at collabora.com>
AuthorDate: Fri Jul 17 16:02:46 2020 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Fri Jul 17 16:12:02 2020 +0200
android: Log when we disable editing for easier debugging.
Change-Id: I358b1a50be7f9f377e9376f8b1772ad92fd059ae
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98976
Tested-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-by: Jan Holesovsky <kendy 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