Skip to content
This repository was archived by the owner on Sep 10, 2020. It is now read-only.

Fix issue #166 Crash on start on device below Android Api 24.#171

Closed
TonyTangAndroid wants to merge 1 commit intoJakeWharton:masterfrom
TonyTangAndroid:master
Closed

Fix issue #166 Crash on start on device below Android Api 24.#171
TonyTangAndroid wants to merge 1 commit intoJakeWharton:masterfrom
TonyTangAndroid:master

Conversation

@TonyTangAndroid
Copy link

Fix issue #166

Copy link
Contributor

@NightlyNexus NightlyNexus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for following this and posting here.


@Override public void onCreate() {
AndroidInjection.inject(this);
((TelecineApplication) getApplication()).telecineComponent().api24OrGreaterServiceComponent().injector().inject(this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is unfortunate. mind if i try something to see if we can avoid the Service knowing about its injector?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opened #172 to keep the usefulness of the Android injection pieces.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool. I got you the point. And your solution is much cleaner. I have also changed the implementation in my own project. Thank you for the help.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for looking into it! This was a fun problem.

@TonyTangAndroid
Copy link
Author

This pull request is closed in honor of a better implementation #172.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants