All Downloads are FREE. Search and download functionalities are using the official Maven repository.

roboguice.inject.FragmentManagerProvider Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
package roboguice.inject;

import com.google.inject.Inject;
import com.google.inject.Provider;

import android.app.Activity;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentManager;

@ContextSingleton
public class FragmentManagerProvider implements Provider {
    @Inject protected Activity activity;

    @Override
    public FragmentManager get() {
        // BUG only supports compat library at the moment.  Does not support honeycomb directly yet
        return ((FragmentActivity)activity).getSupportFragmentManager();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy