Merge pull request #2140 from mfietz/2094-mark-seen-confirmation-dialog
Show "mark all as seen" confirmation dialog
This commit is contained in:
commit
6ff24f99b5
|
@ -227,22 +227,32 @@ public class AllEpisodesFragment extends Fragment {
|
|||
}
|
||||
return true;
|
||||
case R.id.mark_all_read_item:
|
||||
ConfirmationDialog conDialog = new ConfirmationDialog(getActivity(),
|
||||
ConfirmationDialog markAllReadConfirmationDialog = new ConfirmationDialog(getActivity(),
|
||||
R.string.mark_all_read_label,
|
||||
R.string.mark_all_read_confirmation_msg) {
|
||||
|
||||
@Override
|
||||
public void onConfirmButtonPressed(
|
||||
DialogInterface dialog) {
|
||||
public void onConfirmButtonPressed(DialogInterface dialog) {
|
||||
dialog.dismiss();
|
||||
DBWriter.markAllItemsRead();
|
||||
Toast.makeText(getActivity(), R.string.mark_all_read_msg, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
};
|
||||
conDialog.createNewDialog().show();
|
||||
markAllReadConfirmationDialog.createNewDialog().show();
|
||||
return true;
|
||||
case R.id.mark_all_seen_item:
|
||||
ConfirmationDialog markAllSeenConfirmationDialog = new ConfirmationDialog(getActivity(),
|
||||
R.string.mark_all_seen_label,
|
||||
R.string.mark_all_seen_confirmation_msg) {
|
||||
|
||||
@Override
|
||||
public void onConfirmButtonPressed(DialogInterface dialog) {
|
||||
dialog.dismiss();
|
||||
DBWriter.markNewItemsSeen();
|
||||
Toast.makeText(getActivity(), R.string.mark_all_seen_msg, Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
};
|
||||
markAllSeenConfirmationDialog.createNewDialog().show();
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
|
|
|
@ -111,6 +111,8 @@
|
|||
<string name="mark_all_read_confirmation_msg">Please confirm that you want to mark all episodes as being played.</string>
|
||||
<string name="mark_all_read_feed_confirmation_msg">Please confirm that you want to mark all episodes in this feed as being played.</string>
|
||||
<string name="mark_all_seen_label">Mark all as seen</string>
|
||||
<string name="mark_all_seen_msg">Marked all Episodes as seen</string>
|
||||
<string name="mark_all_seen_confirmation_msg">Please confirm that you want to mark all episodes as seen.</string>
|
||||
<string name="show_info_label">Show information</string>
|
||||
<string name="remove_feed_label">Remove Podcast</string>
|
||||
<string name="share_label">Share…</string>
|
||||
|
|
Loading…
Reference in New Issue