[Libreoffice-commits] core.git: android/source
brainbreaker
gautamprajapati06 at gmail.com
Mon Feb 6 11:42:38 UTC 2017
android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 3f19e2763803898a8ea9e788c300378a447507e6
Author: brainbreaker <gautamprajapati06 at gmail.com>
Date: Mon Feb 6 12:00:08 2017 +0530
Retaining the default file explorer view
Change-Id: I273ee17fc94e9d6e3b73ca0b9a4853a632123bd0
Reviewed-on: https://gerrit.libreoffice.org/33946
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Aleksandar Stefanović <theonewithideas at gmail.com>
diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
index efec500..5b79495 100644
--- a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
+++ b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java
@@ -537,10 +537,12 @@ public class LibreOfficeUIActivity extends AppCompatActivity {
viewMode = LIST_VIEW;
item.setTitle(R.string.grid_view); // Button points to next view.
item.setIcon(R.drawable.light_view_as_grid);
+ prefs.edit().putInt(EXPLORER_VIEW_TYPE_KEY, LIST_VIEW).apply();
} else {
viewMode = GRID_VIEW;
item.setTitle(R.string.list_view); // Button points to next view.
item.setIcon(R.drawable.light_view_as_list);
+ prefs.edit().putInt(EXPLORER_VIEW_TYPE_KEY, GRID_VIEW).apply();
}
createUI();
break;
More information about the Libreoffice-commits
mailing list