toothpick.smoothie.provider.SupportLoaderManagerProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of smoothie Show documentation
Show all versions of smoothie Show documentation
'Toothpick package providing Android providers'
package toothpick.smoothie.provider;
import android.app.Activity;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.LoaderManager;
import javax.inject.Inject;
import javax.inject.Provider;
public class SupportLoaderManagerProvider implements Provider {
Activity activity;
@Inject
public SupportLoaderManagerProvider(Activity activity) {
this.activity = activity;
}
@Override
public LoaderManager get() {
return ((FragmentActivity) activity).getSupportLoaderManager();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy