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 9bf4de43ca
commit 2def965f65
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;
}