close
The Wayback Machine - https://web.archive.org/web/20211022033428/https://github.com/square/leakcanary/issues/2185
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

Build custom Toast view for Android TV #2185

Open
Armaxis opened this issue Oct 1, 2021 · 0 comments
Open

Build custom Toast view for Android TV #2185

Armaxis opened this issue Oct 1, 2021 · 0 comments

Comments

@Armaxis
Copy link
Member

@Armaxis Armaxis commented Oct 1, 2021

Problem description

TvToast displays a custom Toast on Android TV devices. It does so by modifying the Toast.getView()'s message TextView.

On Android 30+ it is no longer allowed to access toast's view via getView() and it led to crashes (see #2161). Custom toasts were disabled for devices running API 30+

We should try to build custom toasts on API 30+ devices as well, probably by doing the same thing we do for mobile LeakCanary custom toast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant