Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/sdk 30 deprecation #2

Merged
merged 2 commits into from
Oct 28, 2021
Merged

Fix/sdk 30 deprecation #2

merged 2 commits into from
Oct 28, 2021

Conversation

ath0mas
Copy link
Member

@ath0mas ath0mas commented Oct 28, 2021

To resolve EddyVerbruggen#136.

because Toast.getView() returns null on Android 11 (API 30)

public View getView ()
This method was deprecated in API level 30.
Custom toast views are deprecated. Apps can create a standard text toast with the makeText(android.content.Context, java.lang.CharSequence, int) method, or use a Snackbar when in the foreground. Starting from Android Build.VERSION_CODES#R, apps targeting API level Build.VERSION_CODES#R or higher that are in the background will not have custom toast views displayed.

(see other previously opened PRs EddyVerbruggen#139, EddyVerbruggen#140, and forks trying to fix it too)

@ath0mas ath0mas force-pushed the fix/sdk-30-deprecation branch from f1ecd45 to a4aca43 Compare October 28, 2021 13:13
@ath0mas ath0mas merged commit 1eb0aae into master Oct 28, 2021
@ath0mas ath0mas deleted the fix/sdk-30-deprecation branch October 28, 2021 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

null pointer exceptions in android 11
1 participant