bumptech / bumptech/glide

Glide not working with AppCompatActivity?

Open
#4,617 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
35k
Forks
6.2k
Avg merge
1d 11h
Merged PRs (30d)
8

Description

Hi, I am trying to use glide with an AppCompatActivity. It works well if I use an Activity. But if I am extending from an AppCompatActivity, the image is not loaded (there is only a completely transparent imageview).

Any idea how to fix it? I am using Glide 4.12.0 and this code for loading the image:
```
Glide.with(activity)
.load(DOMAIN+this.url)
.placeholder(placeholder)
.diskCacheStrategy(DiskCacheStrategy.DATA)
.into(this.view);

}
```

Activity is of type AppCompatActivity (extending from it).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.