Use correct array of options

Resolves: #336
This commit is contained in:
AndyScherzinger 2016-10-17 18:55:33 +02:00
parent 10c1f0ff3b
commit eeff36b6a1
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B
2 changed files with 6 additions and 2 deletions

View file

@ -32,4 +32,9 @@
<item>@string/menu_item_sort_by_date</item>
<item>@string/menu_item_sort_by_size</item>
</string-array>
<string-array name="menu_items_sort_by_options_local" translatable="false">
<item>@string/menu_item_sort_by_name</item>
<item>@string/menu_item_sort_by_date</item>
</string-array>
</resources>

View file

@ -30,7 +30,6 @@ import android.os.Bundle;
import android.os.Environment;
import android.support.v4.app.DialogFragment;
import android.support.v4.app.Fragment;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.ActionBar;
import android.view.Menu;
import android.view.MenuItem;
@ -210,7 +209,7 @@ public class UploadFilesActivity extends FileActivity implements
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setTitle(R.string.actionbar_sort_title)
.setSingleChoiceItems(R.array.actionbar_sortby, sortOrder ,
.setSingleChoiceItems(R.array.menu_items_sort_by_options_local, sortOrder,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
switch (which){