From 2f842889aee385ce2c5bb4d3feb46ad46bf9ec25 Mon Sep 17 00:00:00 2001 From: LagradOst <46196380+Blatzar@users.noreply.github.com> Date: Tue, 28 Sep 2021 16:10:19 +0200 Subject: Update ViewImageOrGifActivity.java --- .../infinityforreddit/activities/ViewImageOrGifActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/src') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java index e2d10e55..984dd133 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java @@ -16,6 +16,7 @@ import android.text.Spanned; import android.view.Menu; import android.view.MenuItem; import android.view.View; +import android.widget.FrameLayout; import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; @@ -287,6 +288,11 @@ public class ViewImageOrGifActivity extends AppCompatActivity implements SetAsWa }); loadImage(); + + // Fixes #383 + // Not having a background will cause visual glitches on some devices. + FrameLayout slidablePanel = findViewById(R.id.slidable_panel); + slidablePanel.setBackgroundColor(getResources().getColor(android.R.color.black)); } private void loadImage() { -- cgit v1.2.3