Search in sources :

Example 11 with Glide

use of com.bumptech.glide.Glide in project glide by bumptech.

the class RequestManagerRetriever method supportFragmentGet.

@NonNull
private RequestManager supportFragmentGet(@NonNull Context context, @NonNull FragmentManager fm, @Nullable Fragment parentHint, boolean isParentVisible) {
    SupportRequestManagerFragment current = getSupportRequestManagerFragment(fm, parentHint, isParentVisible);
    RequestManager requestManager = current.getRequestManager();
    if (requestManager == null) {
        // TODO(b/27524013): Factor out this Glide.get() call.
        Glide glide = Glide.get(context);
        requestManager = factory.build(glide, current.getGlideLifecycle(), current.getRequestManagerTreeNode(), context);
        current.setRequestManager(requestManager);
    }
    return requestManager;
}
Also used : RequestManager(com.bumptech.glide.RequestManager) Glide(com.bumptech.glide.Glide) NonNull(android.support.annotation.NonNull)

Aggregations

Glide (com.bumptech.glide.Glide)11 NonNull (android.support.annotation.NonNull)6 RequestManager (com.bumptech.glide.RequestManager)6 Context (android.content.Context)2 Intent (android.content.Intent)2 Bundle (android.os.Bundle)2 Toast (android.widget.Toast)2 App (com.fastaccess.App)2 R (com.fastaccess.R)2 InputHelper (com.fastaccess.helper.InputHelper)2 Manifest (android.Manifest)1 TargetApi (android.annotation.TargetApi)1 RESULT_OK (android.app.Activity.RESULT_OK)1 ActivityManager (android.app.ActivityManager)1 PackageManager (android.content.pm.PackageManager)1 RingtoneManager (android.media.RingtoneManager)1 Uri (android.net.Uri)1 Environment (android.os.Environment)1 DrawableRes (android.support.annotation.DrawableRes)1 IdRes (android.support.annotation.IdRes)1