|
|
@ -16,11 +16,10 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package org.transdroid.core.gui.lists; |
|
|
|
package org.transdroid.core.gui.lists; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context; |
|
|
|
import org.transdroid.R; |
|
|
|
import org.transdroid.R; |
|
|
|
import org.transdroid.daemon.TorrentsSortBy; |
|
|
|
import org.transdroid.daemon.TorrentsSortBy; |
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Represents a way in which a torrents list can be sorted. |
|
|
|
* Represents a way in which a torrents list can be sorted. |
|
|
|
* @author Eric Kok |
|
|
|
* @author Eric Kok |
|
|
@ -48,6 +47,15 @@ public class SortByListItem implements SimpleListItem { |
|
|
|
case UploadSpeed: |
|
|
|
case UploadSpeed: |
|
|
|
this.name = context.getString(R.string.action_sort_upspeed); |
|
|
|
this.name = context.getString(R.string.action_sort_upspeed); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case DownloadSpeed: |
|
|
|
|
|
|
|
this.name = context.getString(R.string.action_sort_downspeed); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case Percent: |
|
|
|
|
|
|
|
this.name = context.getString(R.string.action_sort_percent); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case Size: |
|
|
|
|
|
|
|
this.name = context.getString(R.string.action_sort_size); |
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
this.name = context.getString(R.string.action_sort_alpha); |
|
|
|
this.name = context.getString(R.string.action_sort_alpha); |
|
|
|
break; |
|
|
|
break; |
|
|
|