File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/com/owncloud/android/ui/activity Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 3232 <item >@string/menu_item_sort_by_date</item >
3333 <item >@string/menu_item_sort_by_size</item >
3434 </string-array >
35+
36+ <string-array name =" menu_items_sort_by_options_local" translatable =" false" >
37+ <item >@string/menu_item_sort_by_name</item >
38+ <item >@string/menu_item_sort_by_date</item >
39+ </string-array >
3540</resources >
Original file line number Diff line number Diff line change 3030import android .os .Environment ;
3131import android .support .v4 .app .DialogFragment ;
3232import android .support .v4 .app .Fragment ;
33- import android .support .v4 .content .ContextCompat ;
3433import android .support .v7 .app .ActionBar ;
3534import android .view .Menu ;
3635import android .view .MenuItem ;
@@ -210,7 +209,7 @@ public boolean onOptionsItemSelected(MenuItem item) {
210209
211210 AlertDialog .Builder builder = new AlertDialog .Builder (this );
212211 builder .setTitle (R .string .actionbar_sort_title )
213- .setSingleChoiceItems (R .array .actionbar_sortby , sortOrder ,
212+ .setSingleChoiceItems (R .array .menu_items_sort_by_options_local , sortOrder ,
214213 new DialogInterface .OnClickListener () {
215214 public void onClick (DialogInterface dialog , int which ) {
216215 switch (which ){
You can’t perform that action at this time.
0 commit comments