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 <[email protected]> AuthorDate: Fri Sep 25 17:13:32 2020 +0200 Commit: Jan Holesovsky <[email protected]> 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 <[email protected]> Reviewed-by: Jan Holesovsky <[email protected]> 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)); } _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
