mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-04-26 16:51:23 +00:00
Fix toast crash on API 33
You shouldn't call getView() on toasts. Also simplified some duplicate code.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user