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:
parent
48ae830262
commit
b6e6d39985
5 changed files with 20 additions and 25 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue