diff options
author | brainbreaker <gautamprajapati06@gmail.com> | 2017-02-06 12:00:08 +0530 |
---|---|---|
committer | Aleksandar Stefanović <theonewithideas@gmail.com> | 2017-02-06 11:42:18 +0000 |
commit | 3f19e2763803898a8ea9e788c300378a447507e6 (patch) | |
tree | 111a0378be311a15cf44d3ba864da61e668e53bc /android | |
parent | loplugin:unusedenumconstants in oox (diff) | |
download | core-3f19e2763803898a8ea9e788c300378a447507e6.tar.gz core-3f19e2763803898a8ea9e788c300378a447507e6.zip |
Retaining the default file explorer view
Change-Id: I273ee17fc94e9d6e3b73ca0b9a4853a632123bd0
Reviewed-on: https://gerrit.libreoffice.org/33946
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Aleksandar Stefanović <theonewithideas@gmail.com>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java b/android/source/src/java/org/libreoffice/ui/LibreOfficeUIActivity.java index efec500e4c57..5b79495b0cf1 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; |