Skip to content
This repository has been archived by the owner on May 1, 2023. It is now read-only.

getContext function is not compatible with Android API 21 or 22 #1

Open
HazAnwar opened this issue Apr 19, 2022 · 0 comments
Open

getContext function is not compatible with Android API 21 or 22 #1

HazAnwar opened this issue Apr 19, 2022 · 0 comments
Assignees

Comments

@HazAnwar
Copy link

The use of getContext in the MainFragment.java doesn't work on older Fire TV devices such as Fire Stick 2nd Gen as it runs on API 22. getContext requires a minimum of API 23 to work, despite the minimum targeted API of this project being 21.

I would recommend replacing it with getActivity().getApplicationContext() instead as that works on my Fire Stick 2nd Gen running Fire OS 5.2.8.7 and essentially does the same thing.

I attempted to raise the PR myself but didn't have the correct rights to do so 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants