1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-23 00:20:32 +00:00

Remove playlist details toasts

This commit is contained in:
Stypox 2022-12-31 23:30:12 +01:00
parent c537776826
commit d21fac658b
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
2 changed files with 2 additions and 12 deletions

View File

@ -13,7 +13,6 @@ import android.view.MenuInflater;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.Toast;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
@ -231,13 +230,8 @@ public class PlaylistFragment extends BaseListInfoFragment<StreamInfoItem, Playl
ShareUtils.openUrlInBrowser(requireContext(), url); ShareUtils.openUrlInBrowser(requireContext(), url);
break; break;
case R.id.menu_item_share: case R.id.menu_item_share:
if (currentInfo != null) { ShareUtils.shareText(requireContext(), name, url,
ShareUtils.shareText(requireContext(), name, url, currentInfo == null ? null : currentInfo.getThumbnailUrl());
currentInfo.getThumbnailUrl());
} else {
Toast.makeText(getContext(), getString(R.string.playlist_loading_message),
Toast.LENGTH_SHORT).show();
}
break; break;
case R.id.menu_item_bookmark: case R.id.menu_item_bookmark:
onBookmarkClicked(); onBookmarkClicked();
@ -253,9 +247,6 @@ public class PlaylistFragment extends BaseListInfoFragment<StreamInfoItem, Playl
.collect(Collectors.toList()), .collect(Collectors.toList()),
dialog -> dialog.show(getFM(), TAG) dialog -> dialog.show(getFM(), TAG)
)); ));
} else {
Toast.makeText(getContext(), getString(R.string.playlist_loading_message),
Toast.LENGTH_SHORT).show();
} }
break; break;
default: default:

View File

@ -241,7 +241,6 @@
<string name="restore_defaults">Restore defaults</string> <string name="restore_defaults">Restore defaults</string>
<string name="restore_defaults_confirmation">Do you want to restore defaults?</string> <string name="restore_defaults_confirmation">Do you want to restore defaults?</string>
<string name="permission_display_over_apps">Give permission to display over other apps</string> <string name="permission_display_over_apps">Give permission to display over other apps</string>
<string name="playlist_loading_message">Playlist loading…</string>
<!-- error activity --> <!-- error activity -->
<string name="error_report_notification_title">NewPipe encountered an error, tap to report</string> <string name="error_report_notification_title">NewPipe encountered an error, tap to report</string>
<string name="error_report_notification_toast">An error occurred, see the notification</string> <string name="error_report_notification_toast">An error occurred, see the notification</string>