Zhuinden / flowless

[DEPRECATED] Based on Flow 1.0-alpha. To keep your life simple, use zhuinden/simple-stack instead.
Apache License 2.0
141 stars 7 forks source link

add ServiceProvider.get(Context) #22

Closed Zhuinden closed 7 years ago

Zhuinden commented 7 years ago

To fix https://github.com/Zhuinden/ExampleGithubClient/issues/1 , if ServiceProvider.get(Context) is added, then InternalContextWrapper can return it via context.getSystemService().

That way, Flow.get() is not necessary for obtaining instance of ServiceProvider.

Zhuinden commented 7 years ago

Fixed by https://github.com/Zhuinden/flowless/commit/718de58e42e977ec9a1a54d8ed5b72d4f0ca2330