From 7459f1c6b504d936d41aa30bb25dc4ec585acd50 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Tue, 15 May 2012 11:26:28 -0400 Subject: [PATCH 01/12] Issue 1911: Permit folder names to wrap on multiple lines in folder list view so users can see the entire name. Reduce the default font size used in folder list view to a reasonable size so that long folder paths wrap to fewer lines. --- res/layout/folder_list_item.xml | 2 -- src/com/fsck/k9/FontSizes.java | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml index 1050de2a9..8cd6d580d 100644 --- a/res/layout/folder_list_item.xml +++ b/res/layout/folder_list_item.xml @@ -33,8 +33,6 @@ android:id="@+id/folder_name" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:singleLine="true" - android:ellipsize="start" android:textColor="?android:attr/textColorPrimary" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/src/com/fsck/k9/FontSizes.java b/src/com/fsck/k9/FontSizes.java index 5a1ae2a41..b48474d5c 100644 --- a/src/com/fsck/k9/FontSizes.java +++ b/src/com/fsck/k9/FontSizes.java @@ -136,7 +136,7 @@ public class FontSizes { accountName = MEDIUM; accountDescription = SMALL; - folderName = LARGE; + folderName = FONT_16SP; folderStatus = SMALL; messageListSubject = FONT_16SP; From 26fe9b7757880e190fc0639f921abde4ccd0d984 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Mon, 26 Nov 2012 17:50:43 -0500 Subject: [PATCH 02/12] Create new preference option for wrapping folder names in folder list view. Revert to using an ellipsized folder name as the default. --- res/layout/folder_list_item.xml | 2 ++ res/values/strings.xml | 3 +++ res/xml/global_preferences.xml | 12 ++++++++++++ src/com/fsck/k9/K9.java | 10 ++++++++++ src/com/fsck/k9/activity/FolderList.java | 4 ++++ src/com/fsck/k9/activity/setup/Prefs.java | 6 ++++++ src/com/fsck/k9/preferences/GlobalSettings.java | 3 +++ 7 files changed, 40 insertions(+) diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml index 8cd6d580d..1050de2a9 100644 --- a/res/layout/folder_list_item.xml +++ b/res/layout/folder_list_item.xml @@ -33,6 +33,8 @@ android:id="@+id/folder_name" android:layout_width="fill_parent" android:layout_height="wrap_content" + android:singleLine="true" + android:ellipsize="start" android:textColor="?android:attr/textColorPrimary" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/res/values/strings.xml b/res/values/strings.xml index 44e80e7ad..5339db35f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -322,6 +322,8 @@ Please submit bug reports, contribute new features and ask questions at Colorize contacts Don\'t colorize names in your contact list Colorize names in your contact list + Wrap folder names + Show complete folder name wrapped on multiple lines rather than a partial name on a single line Fixed-width fonts Use a fixed-width font when showing plain-text messages @@ -812,6 +814,7 @@ Please submit bug reports, contribute new features and ask questions at Account list Message lists Messages + Folder lists Theme Language diff --git a/res/xml/global_preferences.xml b/res/xml/global_preferences.xml index 75efa5598..cb90924ea 100644 --- a/res/xml/global_preferences.xml +++ b/res/xml/global_preferences.xml @@ -176,6 +176,18 @@ + + + + + + Date: Sun, 30 Sep 2012 23:05:32 -0400 Subject: [PATCH 03/12] Permit the folder list item to expand vertically. Prior to this, in cases where the folder name wraps to mulitiple lines, it could overflow its box and the overflow was hidden. --- res/layout/folder_list_item.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml index 1050de2a9..89f7f769d 100644 --- a/res/layout/folder_list_item.xml +++ b/res/layout/folder_list_item.xml @@ -23,7 +23,7 @@ Date: Tue, 2 Oct 2012 16:03:59 -0400 Subject: [PATCH 04/12] Control wrapping of folder names programmatically only This removes the default settings (ellipsized, single line) from the layout xml file and implements them programmatically. This fixes the problem where: You are viewing a folder list while wrapping is currently on, then you go into settings and turn wrapping off, after which you are back at the folder list, but the list is still wrapped. --- res/layout/folder_list_item.xml | 2 -- src/com/fsck/k9/activity/FolderList.java | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/res/layout/folder_list_item.xml b/res/layout/folder_list_item.xml index 89f7f769d..bbc885428 100644 --- a/res/layout/folder_list_item.xml +++ b/res/layout/folder_list_item.xml @@ -33,8 +33,6 @@ android:id="@+id/folder_name" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:singleLine="true" - android:ellipsize="start" android:textColor="?android:attr/textColorPrimary" android:textAppearance="?android:attr/textAppearanceLarge" /> diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 7e11be28f..e0192c62a 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -16,6 +16,7 @@ import android.os.Bundle; import android.os.Handler; import android.os.PowerManager; import android.text.Editable; +import android.text.TextUtils.TruncateAt; import android.text.TextWatcher; import android.util.Log; import android.util.TypedValue; @@ -1164,6 +1165,10 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { holder.folderName.setEllipsize(null); holder.folderName.setSingleLine(false); } + else { + holder.folderName.setEllipsize(TruncateAt.START); + holder.folderName.setSingleLine(true); + } holder.folderStatus.setTextSize(TypedValue.COMPLEX_UNIT_SP, mFontSizes.getFolderStatus()); From 9b851f20e3e93f557c60bf8d03399928ec60a8c3 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Sat, 22 Dec 2012 23:31:23 -0500 Subject: [PATCH 05/12] Readjust settings version number based on current master --- src/com/fsck/k9/preferences/GlobalSettings.java | 2 +- src/com/fsck/k9/preferences/Settings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/fsck/k9/preferences/GlobalSettings.java b/src/com/fsck/k9/preferences/GlobalSettings.java index fd3b7f00b..8fb83f3bf 100644 --- a/src/com/fsck/k9/preferences/GlobalSettings.java +++ b/src/com/fsck/k9/preferences/GlobalSettings.java @@ -198,7 +198,7 @@ public class GlobalSettings { new V(1, new BooleanSetting(false)) )); s.put("wrapFolderNames", Settings.versions( - new V(21, new BooleanSetting(false)) + new V(22, new BooleanSetting(false)) )); s.put("batchButtonsMarkRead", Settings.versions( new V(8, new BooleanSetting(true)) diff --git a/src/com/fsck/k9/preferences/Settings.java b/src/com/fsck/k9/preferences/Settings.java index d7f521d4b..39431cb28 100644 --- a/src/com/fsck/k9/preferences/Settings.java +++ b/src/com/fsck/k9/preferences/Settings.java @@ -35,7 +35,7 @@ public class Settings { * * @see SettingsExporter */ - public static final int VERSION = 21; + public static final int VERSION = 22; public static Map validate(int version, Map> settings, From 11ce4fc6eae832e40c1138320d8d8d743f35147e Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Tue, 23 Oct 2012 17:58:48 -0400 Subject: [PATCH 06/12] Create action buttons to search for folders. --- res/menu/folder_list_option.xml | 11 ++++++----- res/menu/folder_select_option.xml | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/res/menu/folder_list_option.xml b/res/menu/folder_list_option.xml index 6926a93ec..f5d63b8d7 100644 --- a/res/menu/folder_list_option.xml +++ b/res/menu/folder_list_option.xml @@ -1,6 +1,10 @@ - + - - \ No newline at end of file + diff --git a/res/menu/folder_select_option.xml b/res/menu/folder_select_option.xml index adfb7a913..0275629c5 100644 --- a/res/menu/folder_select_option.xml +++ b/res/menu/folder_select_option.xml @@ -6,6 +6,12 @@ android:icon="@drawable/ic_show_folders" > --> + - From 1ea95028443967799f973e3c1ec72a33cffee63a Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Mon, 26 Nov 2012 12:57:37 -0500 Subject: [PATCH 07/12] Provide new action bar "find folder" icons --- res/drawable-hdpi/action_search_folder_dark.png | Bin 0 -> 1228 bytes res/drawable-hdpi/action_search_folder_light.png | Bin 0 -> 1749 bytes res/drawable-ldpi/action_search_folder_dark.png | Bin 0 -> 626 bytes res/drawable-ldpi/action_search_folder_light.png | Bin 0 -> 829 bytes res/drawable-mdpi/action_search_folder_dark.png | Bin 0 -> 823 bytes res/drawable-mdpi/action_search_folder_light.png | Bin 0 -> 1184 bytes res/drawable-xhdpi/action_search_folder_dark.png | Bin 0 -> 1673 bytes .../action_search_folder_light.png | Bin 0 -> 2390 bytes res/menu/folder_list_option.xml | 2 +- res/menu/folder_select_option.xml | 2 +- res/values/attrs.xml | 1 + res/values/themes.xml | 2 ++ 12 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 res/drawable-hdpi/action_search_folder_dark.png create mode 100644 res/drawable-hdpi/action_search_folder_light.png create mode 100644 res/drawable-ldpi/action_search_folder_dark.png create mode 100644 res/drawable-ldpi/action_search_folder_light.png create mode 100644 res/drawable-mdpi/action_search_folder_dark.png create mode 100644 res/drawable-mdpi/action_search_folder_light.png create mode 100644 res/drawable-xhdpi/action_search_folder_dark.png create mode 100644 res/drawable-xhdpi/action_search_folder_light.png diff --git a/res/drawable-hdpi/action_search_folder_dark.png b/res/drawable-hdpi/action_search_folder_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..34d2d79123c34c313e5e49fa6e522041f7fb8a2e GIT binary patch literal 1228 zcmV;-1T*`IP)6j72{P9H{!JxEZ**as0& z1U*CrWl$PD^iW1qA%@gTMxUS{Jrop45D|S)LzEOHl|D$$gk@rkN@W%~Oq0&^u+H_K zx!!xux%Uj-3FZ%%v-jD1uf6{JthM&q`*w_tjrl*Lv)u}m#T0>dV~Rk#F|EYdx#&)Q z3zFX<^kX1-?!bYPI%cAyg)q7VE3vRZ-%)&s^%!h+q9SO9z)bYw`Z{exV%1N=JapBx z|BL6asWmklqbPyX69q0vz1xmAgsJR7MbHeKC%({f%t?)T2TzMHGa)EKU?w)IDnEh^ zc&&gUr(hMXNxgd>uQ#n}0~8_fl&ab6!lU@9$$5IPS}ev0?nq>nMqU_QqN@Ce)|7`n zyp)t@V2yGS@F?;KtW1?RXifPF-onJX+$U2HF0&`VE<#u87WiTepaX6_jD=81z z1iDk@H%(0B*n`bUc|K;B6_{m*X#zi_%J<@mg7Uu-n^+qCA}V#_GF3t?A&bC*71okKO2Wt9%W&#NGr^**AM}TnTU8;M_7=F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y-iW9aYzrgeNJNZ8L{EdWzi4rzGav44a`03{3`azJGk_w=eYq@m znk0S+Q>ZqpP?6*gJVam+TMG6G9KQc0;C#Wyje3A02Q_Jkj^Zm$NW9G86|P_>_F!BZ%ISiS;rd0RNrs*r^_0{tHL2!Z zIr4FA!+l)EYMhZsui{5D06Fri)QW8qq0jPn61#FXB#zGJ04}$Z0W6W~`A+JP<=BB` zQdy2ke9X!O`thRPN!e`*8?zQ=DOTjjSLVGoX*m1wvXu-fSXTo6MY>rB%^kSc*gLx@ z%OIrkl*yzN@t`#M@L{f(7OvbDbZbQ1j))5pv9{h;R-(Tm|No=^6LIECm?w%7YybcN M07*qoM6N<$f+02*>;M1& literal 0 HcmV?d00001 diff --git a/res/drawable-ldpi/action_search_folder_light.png b/res/drawable-ldpi/action_search_folder_light.png new file mode 100644 index 0000000000000000000000000000000000000000..bbedbe1470cb364d49c30d48faaf4f6c45c3d40e GIT binary patch literal 829 zcmV-D1H$}?P)(^b8FWQhbW?9;ba!ELWdL_~cP?peYja~^ zaAhuUa%Y?FJQ@H10=h{=K~zYI)m2SPRZ$dO>)b3vZBR^ zo1dRQOR^upl%!WA8vqIZUaddhT$N9Gm`Ga zar|sEf;BZL7K{5y_Di~(B+0neu}iXAt@e=Q7|Ee1iaNJM;G8=JV5(lPZy1@R`vAU@ zEN@1zrpP3_B~40Fxm+HWw0E67rW7s;mphB8p|-aj_82!NL~ z8wA1SmGeOmK++h1+7A^ZNz#yX55O4!%Rvy_0MJR&NX`HlanALUJWldM5CqQ5mh%`v z5WL9Gzk6r^5QgDNl0yK#0(e8RA*qn1#gqI1;E<#`fDw{AC7mbPUaQrvNU{wH03eE@ zPLk#9Dz*Wb1Mr^YXOfF%RwY@?>a^&byJ=g#cu5-cn%kmMecM*y54Sthw71KbXv&CC|_Bx#xs_xASg z%i}an5lL1mm0isO@ZK*u=XQJVhn;h)56;YH;yAv#GH==svXAa#Gk<1Zs@3ZCG);#| zwr7FOC5x|z*Ldg;Bto%c6Q(Vw#azv+JiuqI~fgfJau00000NkvXX Hu0mjfUNdpG literal 0 HcmV?d00001 diff --git a/res/drawable-mdpi/action_search_folder_dark.png b/res/drawable-mdpi/action_search_folder_dark.png new file mode 100644 index 0000000000000000000000000000000000000000..b192e496c24bee262f4a064252c3dd80a1d14a53 GIT binary patch literal 823 zcmV-71IYY|P)$&5( zlQtV4cscjH@AIDL|2|*m+^&c)kuqsQt=|X0lo~pdu?ox3iyjQ&JkH`EZj2Y8>kdh{ z6z>$na0@@?pm#?pxRCL#tR zVnrLB#&|p;4n)L>8oIZQs>#U_v9H4i_D00F5pgIY=5_*5RRybL%m;9+rX$Z`FCM~% zP9jiM1RU&iwP3eYRF{X)5a8+~o|U&Go0a!r=!W0;1UbpWbD z&?8H2q{jX^*xGdeeKGz(9pmi)hGd=BX;QEW^ULoAxGo#hGfkr{P!+&=*<=>i1elJm zBySDo@KR?8;ye$)J4GSjQ%S3D&TbR3W3a?|=N<$9^WjtOuOTV#hj zB16)LllTrVwdh~O8GK$Kzr;RSlC5%Er>p|FA$xm2cH>PMmJvLU6-DpwV(1Xw!wh^O zPhVx6ioP<|yWn-aSPbozb-qaE#vpzyFx!f8xLWo-i$}`(?6Nk9b)5hx57^Okq9Ivo z3uMAgl5YQ6cF?&6;zP`nA>4r{@fkko6hL|C2HD{nP3F4H_T$nsy)qH^6#a$_Vmsc# z$2dJ609c7x_#Id91D4vdsZo&8cbCZ*kH=Zg$ zKA%4%sYudu&RNg%E<5MuthKdbvFOdt&JLz&`U-#}06_Ahwf5Vm0#GOvcGc_kj{#Ji zbLXa}rmnBIKpe*}kvs`tN1CQzY^2*xT9S~YNz?Rr!}AS|1Aw*mH%VVga>kfr+VqNM0b>Q>j!AZ3dv_6r^do#~1_8^DYBGHk;iUMN!mlGRc+6 z$;m|kkaUUUQIdO~2mruPBirWyAP9nElG-jRX(f*1)7IJ*Ywb!tpTA3T_u<2b{fUW* zdM5zwa$rExqP4cx!TfGXZ?0VzHpW)%*a5Dh6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-O0?4ddUpOb=_hBBh*2CX>Ge04SA8Zy;iKBinuw zW@ct)DlsAmnnpl6ogS1@z5)POq?82!xYFL0~CexI+S z?stY^{7ndPGzb9z|05x+-%b5S2oY5PNGXbv0swFv2NH?IQoHNApeT*6`V>XE(%s#i z*tl`yGeK=DijvVZ4Z@P}uzn>LFBA%8M7$lQlSjgVFnu0M0vyMA9st09TO1T&Nq8s; zK*VndAvT+)Ip(@@6+gB*s%fR|HM z^<NLKwAz7IW1WCjJJ4$U7o3=l}o! literal 0 HcmV?d00001 diff --git a/res/menu/folder_list_option.xml b/res/menu/folder_list_option.xml index f5d63b8d7..f850a99c6 100644 --- a/res/menu/folder_list_option.xml +++ b/res/menu/folder_list_option.xml @@ -2,7 +2,7 @@ --> diff --git a/res/values/attrs.xml b/res/values/attrs.xml index 745643fdd..7fa1032e9 100644 --- a/res/values/attrs.xml +++ b/res/values/attrs.xml @@ -16,6 +16,7 @@ + diff --git a/res/values/themes.xml b/res/values/themes.xml index f92c80518..7e10e1f56 100644 --- a/res/values/themes.xml +++ b/res/values/themes.xml @@ -16,6 +16,7 @@ @drawable/ic_action_previous_message_light @drawable/ic_action_refresh_light @drawable/ic_action_search_light + @drawable/action_search_folder_light @drawable/ic_action_send_light @drawable/ic_action_settings_light @drawable/ic_action_single_message_options_light @@ -64,6 +65,7 @@ @drawable/ic_action_previous_message_dark @drawable/ic_action_refresh_dark @drawable/ic_action_search_dark + @drawable/action_search_folder_dark @drawable/ic_action_send_dark @drawable/ic_action_settings_dark @drawable/ic_action_single_message_options_dark From d7cb89880af9c61d4e757410d89713349a72af5a Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Tue, 27 Nov 2012 22:43:14 -0500 Subject: [PATCH 08/12] Switch to using the action bar for folder searches. Eliminate the old-style search dialog box. --- res/menu/folder_list_option.xml | 5 +- src/com/fsck/k9/activity/FolderList.java | 122 ++++------------------- 2 files changed, 25 insertions(+), 102 deletions(-) diff --git a/res/menu/folder_list_option.xml b/res/menu/folder_list_option.xml index f850a99c6..65dd07c4f 100644 --- a/res/menu/folder_list_option.xml +++ b/res/menu/folder_list_option.xml @@ -3,8 +3,9 @@ + android:showAsAction="always|collapseActionView" + android:title="@string/filter_folders_action" + android:actionViewClass="com.actionbarsherlock.widget.SearchView"/> Date: Sat, 22 Dec 2012 19:05:29 -0500 Subject: [PATCH 09/12] Use a more appropriate title when diplaying folder search results. --- src/com/fsck/k9/activity/FolderList.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 3184be593..5c170ef45 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -632,6 +632,7 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { @Override public boolean onQueryTextSubmit(String query) { folderMenuItem.collapseActionView(); + mActionBarTitle.setText(getString(R.string.filter_folders_action)); return true; } @@ -641,6 +642,15 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { return true; } }); + + folderSearchView.setOnCloseListener(new SearchView.OnCloseListener() { + + @Override + public boolean onClose() { + mActionBarTitle.setText(getString(R.string.folders_title)); + return false; + } + }); } @Override public boolean onContextItemSelected(android.view.MenuItem item) { From fa857f7d09671d79efa683696d1e6e3373b17ece Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Tue, 25 Dec 2012 22:39:18 -0500 Subject: [PATCH 10/12] Switch to using the action bar for folder searches. Eliminate the old-style search dialog box. A similar change was previously made when searching from the folder list. This change is applicable when searching while choosing a folder (e.g. a destination folder for a copy operation). --- res/menu/folder_select_option.xml | 3 +- src/com/fsck/k9/activity/ChooseFolder.java | 75 +++++++--------------- 2 files changed, 24 insertions(+), 54 deletions(-) diff --git a/res/menu/folder_select_option.xml b/res/menu/folder_select_option.xml index d3723fde3..15ff36535 100644 --- a/res/menu/folder_select_option.xml +++ b/res/menu/folder_select_option.xml @@ -9,8 +9,9 @@ Date: Fri, 11 Jan 2013 17:42:38 -0500 Subject: [PATCH 11/12] Eliminate unused code. --- src/com/fsck/k9/activity/FolderList.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/com/fsck/k9/activity/FolderList.java b/src/com/fsck/k9/activity/FolderList.java index 5c170ef45..76ae65c8a 100644 --- a/src/com/fsck/k9/activity/FolderList.java +++ b/src/com/fsck/k9/activity/FolderList.java @@ -35,7 +35,6 @@ import android.widget.Toast; import com.actionbarsherlock.app.ActionBar; import com.actionbarsherlock.app.ActionBar.OnNavigationListener; -import com.actionbarsherlock.view.ActionMode; import com.actionbarsherlock.view.Menu; import com.actionbarsherlock.view.MenuItem; import com.actionbarsherlock.widget.SearchView; @@ -500,11 +499,6 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { MessagingController.getInstance(getApplication()).emptyTrash(account, null); } - private void onExpunge(final Account account, String folderName) { - MessagingController.getInstance(getApplication()).expunge(account, folderName, null); - } - - private void onClearFolder(Account account, String folderName) { // There has to be a cheaper way to get at the localFolder object than this LocalFolder localFolder = null; @@ -672,8 +666,6 @@ public class FolderList extends K9ListActivity implements OnNavigationListener { return super.onContextItemSelected(item); } - private FolderInfoHolder mSelectedContextFolder = null; - @Override public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) { super.onCreateContextMenu(menu, v, menuInfo); AdapterContextMenuInfo info = (AdapterContextMenuInfo) menuInfo; From ad16bf94cdb751788845ecd5529395796d52fcd2 Mon Sep 17 00:00:00 2001 From: Joe Steele Date: Sun, 13 Jan 2013 22:35:59 -0500 Subject: [PATCH 12/12] Provide message search capability from the folder list. The search is performed in all folders for the account to which the folders belong. --- res/menu/folder_list_option.xml | 5 +++++ src/com/fsck/k9/activity/FolderList.java | 13 +++++++++++++ src/com/fsck/k9/activity/MessageList.java | 7 +++++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/res/menu/folder_list_option.xml b/res/menu/folder_list_option.xml index 65dd07c4f..3f700bcf5 100644 --- a/res/menu/folder_list_option.xml +++ b/res/menu/folder_list_option.xml @@ -1,5 +1,10 @@ +