facebook / facebook/fresco

Issue with status bar transparent

Open
#2,254 3 comments 0 reactions 0 assignees View on GitHub
good first issue help wanted starter-task
Dominant language
Kotlin
Stars
17.2k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

### Description

When the status bar is transparent, Fresco doesn't draw the image underneath it

### Reproduction

Just run: https://github.com/omainegra/furry-octo-potato
As an extra, you can toggle the commented code and see how it works with a regular `ImageView`

#### Issue
![device-2018-12-10-101329](https://user-images.githubusercontent.com/7846263/49745648-10e2de00-fc65-11e8-8592-543e9a999bae.jpg)

#### Expected
![device-2018-12-10-101359](https://user-images.githubusercontent.com/7846263/49745650-150efb80-fc65-11e8-8ed5-5ee9b48e6cf4.jpg)

**Update**

After playing with it I found that redrawing after `ViewCompat.setOnApplyWindowInsetsListener` fixes the problem.

```kotlin
ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.draweeView)) { view, insetsCompat ->
view.requestLayout()
insetsCompat
}
```

### Additional Information

* Fresco version: 1.11.0
* Platform version: [{ Nexus 6P, Android 8.1 }, { Pixel 3, Android 9 }]

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.