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

Michael Meeks (via logerrit) logerrit at kemper.freedesktop.org
Wed Dec 11 12:23:08 UTC 2019


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

New commits:
commit e12de33ecf76b8f2828edf8d163d23fb5a435137
Author:     Michael Meeks <michael.meeks at collabora.com>
AuthorDate: Wed Dec 11 11:19:28 2019 +0000
Commit:     Michael Meeks <michael.meeks at collabora.com>
CommitDate: Wed Dec 11 13:22:49 2019 +0100

    android: encode SCHEME_FILE paths as URIs not paths.
    
    Fixes encoding problems particularly with eg.
    SCHEME_FILE: getPath(): /storage/emulated/0/Android/media/com.nextcloud.client/nextcloud/user at demoserver.com%2Fnextcloud/test.docx
    
    Change-Id: I0f2a84ff29fffd87ef059727bfb530bb54ab2ab9
    Reviewed-on: https://gerrit.libreoffice.org/84936
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    Tested-by: Michael Meeks <michael.meeks 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 a8a9b80ad..bae078ab9 100644
--- a/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
+++ b/android/lib/src/main/java/org/libreoffice/androidlib/LOActivity.java
@@ -248,7 +248,7 @@ public class LOActivity extends AppCompatActivity {
                 }
             } else if (getIntent().getData().getScheme().equals(ContentResolver.SCHEME_FILE)) {
                 isDocEditable = true;
-                urlToLoad = getIntent().getData().getPath();
+                urlToLoad = getIntent().getData().toString();
                 Log.d(TAG, "SCHEME_FILE: getPath(): " + getIntent().getData().getPath());
                 // Gather data to rebuild IFile object later
                 providerId = getIntent().getIntExtra(


More information about the Libreoffice-commits mailing list