From 2e7672cef12dddfa3c2511904b58d86baf52f6b8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 22 Oct 2026 11:25:54 +0200 Subject: Fix viewer review findings - Reels paging: drop page callbacks after destroy or a replaced playlist - Scope Glide loads to views and clear them in onDestroy (no deprecated Glide.with(Activity)) - Stop the player in onStop, re-prepare in onStart - Photo timer uses real elapsed time and starts when the photo is on screen - Reels: continue past the old last post when a new page arrives; "No reels" when empty - Likes: ordered single-thread executor, newer toggle wins on error, no "null" in toast - Note the unbounded frame grab limitation Co-Authored-By: Claude Opus 5.5 --- app/src/main/java/mygram/droid/MainActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/mygram/droid/MainActivity.java') diff --git a/app/src/main/java/mygram/droid/MainActivity.java b/app/src/main/java/mygram/droid/MainActivity.java index 7578f05..3292f90 100644 --- a/app/src/main/java/mygram/droid/MainActivity.java +++ b/app/src/main/java/mygram/droid/MainActivity.java @@ -124,7 +124,7 @@ public final class MainActivity extends Activity { return; ready = true; // Foldergram's logo is AGPLv3: loaded from the instance after login, never bundled. - Glide.with(this).load(Api.resolve(Prefs.server(), "/icon-192.png")).error(R.drawable.ic_home).into(logo); + Glide.with(logo).load(Api.resolve(Prefs.server(), "/icon-192.png")).error(R.drawable.ic_home).into(logo); backgrounds = posts; handler.removeCallbacks(rotate); rotateBackground(); @@ -235,7 +235,7 @@ public final class MainActivity extends Activity { back.animate().cancel(); back.setAlpha(0f); back.bringToFront(); - Glide.with(this).load(p.media.get(0).thumbnailUrl).listener(new RequestListener() { + Glide.with(back).load(p.media.get(0).thumbnailUrl).listener(new RequestListener() { @Override public boolean onLoadFailed(GlideException e, Object model, Target target, boolean first) { return false; -- cgit v1.2.3