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

Jan Holesovsky (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 25 15:20:05 UTC 2020


 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 <kendy at collabora.com>
AuthorDate: Fri Sep 25 17:13:32 2020 +0200
Commit:     Jan Holesovsky <kendy at collabora.com>
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 <kendy at collabora.com>
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>

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..a36aaaa6c 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));
     }


More information about the Libreoffice-commits mailing list