Make subscription long-press menu consistant in local sub list
Inverted unsubscribe with share, since share has always been put after content-specific actions.
This commit is contained in:
parent
bdb1be9967
commit
8695466690
|
@ -391,17 +391,17 @@ public class SubscriptionFragment extends BaseStateFragment<List<SubscriptionEnt
|
||||||
if (context == null || context.getResources() == null || getActivity() == null) return;
|
if (context == null || context.getResources() == null || getActivity() == null) return;
|
||||||
|
|
||||||
final String[] commands = new String[]{
|
final String[] commands = new String[]{
|
||||||
context.getResources().getString(R.string.share),
|
context.getResources().getString(R.string.unsubscribe),
|
||||||
context.getResources().getString(R.string.unsubscribe)
|
context.getResources().getString(R.string.share)
|
||||||
};
|
};
|
||||||
|
|
||||||
final DialogInterface.OnClickListener actions = (dialogInterface, i) -> {
|
final DialogInterface.OnClickListener actions = (dialogInterface, i) -> {
|
||||||
switch (i) {
|
switch (i) {
|
||||||
case 0:
|
case 0:
|
||||||
shareChannel(selectedItem);
|
deleteChannel(selectedItem);
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
deleteChannel(selectedItem);
|
shareChannel(selectedItem);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue