aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2021-10-08 12:24:31 +0000
committerGitHub <noreply@github.com>2021-10-08 12:24:31 +0000
commit7feb78f133961a589b5ceefc9864b5e11c8d5b90 (patch)
tree82f3f41ae571d3e09b613a986e324804a6669433 /app
parent723f1c0713c9c79ac005992dfcf32a52d858dee3 (diff)
parent2f842889aee385ce2c5bb4d3feb46ad46bf9ec25 (diff)
downloadinfinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar.gz
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar.bz2
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar.lz
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar.xz
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.tar.zst
infinity-for-reddit-7feb78f133961a589b5ceefc9864b5e11c8d5b90.zip
Merge pull request #480 from Blatzar/master
Fixed visual swiping bug
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewImageOrGifActivity.java6
1 files changed, 6 insertions, 0 deletions
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() {