Skip to content

Commit 2193306

Browse files
author
mumu
authored
Fix a wrong process
It has been determined that activity belongs to FragmentActivity , so should use the get() method of FragmentActivity
1 parent 525e7ba commit 2193306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/bumptech/glide/manager/RequestManagerRetriever.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public RequestManager get(@NonNull View view) {
178178
// prefer to just fall back to the Activity directly.
179179
if (activity instanceof FragmentActivity) {
180180
Fragment fragment = findSupportFragment(view, (FragmentActivity) activity);
181-
return fragment != null ? get(fragment) : get(activity);
181+
return fragment != null ? get(fragment) : get((FragmentActivity) activity);
182182
}
183183

184184
// Standard Fragments.

0 commit comments

Comments
 (0)