mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-01-31 10:54:50 +01:00
parent
e05b8e2c45
commit
7ebaa9f619
@ -31,6 +31,7 @@ import de.danoeh.antennapod.core.dialog.ConfirmationDialog;
|
||||
import de.danoeh.antennapod.core.event.FeedListUpdateEvent;
|
||||
import de.danoeh.antennapod.core.event.QueueEvent;
|
||||
import de.danoeh.antennapod.core.event.UnreadItemsUpdateEvent;
|
||||
import de.danoeh.antennapod.dialog.TagSettingsDialog;
|
||||
import de.danoeh.antennapod.model.feed.Feed;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
import de.danoeh.antennapod.core.storage.DBReader;
|
||||
@ -156,18 +157,8 @@ public class NavDrawerFragment extends Fragment implements SharedPreferences.OnS
|
||||
};
|
||||
removeAllNewFlagsConfirmationDialog.createNewDialog().show();
|
||||
return true;
|
||||
} else if (itemId == R.id.mark_all_read_item) {
|
||||
ConfirmationDialog markAllReadConfirmationDialog = new ConfirmationDialog(getContext(),
|
||||
R.string.mark_all_read_label,
|
||||
R.string.mark_all_read_confirmation_msg) {
|
||||
|
||||
@Override
|
||||
public void onConfirmButtonPressed(DialogInterface dialog) {
|
||||
dialog.dismiss();
|
||||
DBWriter.markFeedRead(feed.getId());
|
||||
}
|
||||
};
|
||||
markAllReadConfirmationDialog.createNewDialog().show();
|
||||
} else if (itemId == R.id.add_to_folder) {
|
||||
TagSettingsDialog.newInstance(feed.getPreferences()).show(getChildFragmentManager(), TagSettingsDialog.TAG);
|
||||
return true;
|
||||
} else if (itemId == R.id.rename_item) {
|
||||
new RenameFeedDialog(getActivity(), feed).show();
|
||||
|
@ -40,6 +40,7 @@ import de.danoeh.antennapod.core.event.DownloadEvent;
|
||||
import de.danoeh.antennapod.core.event.FeedListUpdateEvent;
|
||||
import de.danoeh.antennapod.core.event.UnreadItemsUpdateEvent;
|
||||
import de.danoeh.antennapod.core.menuhandler.MenuItemUtils;
|
||||
import de.danoeh.antennapod.dialog.TagSettingsDialog;
|
||||
import de.danoeh.antennapod.model.feed.Feed;
|
||||
import de.danoeh.antennapod.core.preferences.UserPreferences;
|
||||
import de.danoeh.antennapod.core.service.download.DownloadService;
|
||||
@ -325,11 +326,8 @@ public class SubscriptionFragment extends Fragment implements Toolbar.OnMenuItem
|
||||
R.string.remove_all_new_flags_confirmation_msg,
|
||||
() -> DBWriter.removeFeedNewFlag(feed.getId()));
|
||||
return true;
|
||||
} else if (itemId == R.id.mark_all_read_item) {
|
||||
displayConfirmationDialog(
|
||||
R.string.mark_all_read_label,
|
||||
R.string.mark_all_read_confirmation_msg,
|
||||
() -> DBWriter.markFeedRead(feed.getId()));
|
||||
} else if (itemId == R.id.add_to_folder) {
|
||||
TagSettingsDialog.newInstance(feed.getPreferences()).show(getChildFragmentManager(), TagSettingsDialog.TAG);
|
||||
return true;
|
||||
} else if (itemId == R.id.rename_item) {
|
||||
new RenameFeedDialog(getActivity(), feed).show();
|
||||
|
@ -7,9 +7,9 @@
|
||||
android:title="@string/remove_all_new_flags_label" />
|
||||
|
||||
<item
|
||||
android:id="@+id/mark_all_read_item"
|
||||
android:id="@+id/add_to_folder"
|
||||
android:menuCategory="container"
|
||||
android:title="@string/mark_all_read_label" />
|
||||
android:title="@string/add_to_folder" />
|
||||
|
||||
<item
|
||||
android:id="@+id/rename_item"
|
||||
|
@ -182,6 +182,7 @@
|
||||
<string name="open_podcast">Open Podcast</string>
|
||||
<string name="please_wait_for_data">Please wait until the data is loaded</string>
|
||||
<string name="updates_disabled_label">Updates disabled</string>
|
||||
<string name="add_to_folder">Add to folder</string>
|
||||
|
||||
<!-- actions on feeditems -->
|
||||
<string name="download_label">Download</string>
|
||||
|
Loading…
x
Reference in New Issue
Block a user