1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-05 02:39:29 +02:00

Fix toast crash on API 33

You shouldn't call getView() on toasts.
Also simplified some duplicate code.
This commit is contained in:
Stypox 2023-01-12 11:39:25 +01:00
parent 48ae830262
commit b6e6d39985
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23
5 changed files with 20 additions and 25 deletions

View file

@ -631,8 +631,7 @@ public class RouterActivity extends AppCompatActivity {
}
if (selectedChoiceKey.equals(getString(R.string.popup_player_key))
&& !PermissionHelper.isPopupEnabled(this)) {
PermissionHelper.showPopupEnablementToast(this);
&& !PermissionHelper.isPopupEnabledElseAsk(this)) {
finish();
return;
}