Update ViewImageOrGifActivity.java

This commit is contained in:
LagradOst 2021-09-28 16:10:19 +02:00 committed by GitHub
parent f5f6213733
commit 2f842889ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,7 @@ import android.text.Spanned;
import android.view.Menu; import android.view.Menu;
import android.view.MenuItem; import android.view.MenuItem;
import android.view.View; import android.view.View;
import android.widget.FrameLayout;
import android.widget.ImageView; import android.widget.ImageView;
import android.widget.LinearLayout; import android.widget.LinearLayout;
import android.widget.ProgressBar; import android.widget.ProgressBar;
@ -287,6 +288,11 @@ public class ViewImageOrGifActivity extends AppCompatActivity implements SetAsWa
}); });
loadImage(); 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() { private void loadImage() {