Remove playlist details toasts

pull/9521/head
Stypox 2022-12-31 23:30:12 +01:00
rodzic c537776826
commit d21fac658b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4BDF1B40A49FDD23
2 zmienionych plików z 2 dodań i 12 usunięć

Wyświetl plik

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

Wyświetl plik

@ -241,7 +241,6 @@
<string name="restore_defaults">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="playlist_loading_message">Playlist loading…</string>
<!-- error activity -->
<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>