From 9fba091bb394e8e4c7e8ccd0702081bd1a939047 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Thu, 22 Oct 2026 17:52:22 +0200 Subject: Folder pictures, photo/video tile marks, folder in the viewer Home rows and the folder header show the folder's round picture next to its name. Post tiles carry a photo or video mark in the top left, on a dark dot so it reads on bright thumbnails. The viewer shows the current post's folder picture and name in the top left; pictures come from the last loaded folder list, so before one loads only the name shows. Co-Authored-By: Claude Opus 5.5 --- app/src/main/java/mygram/droid/FolderActivity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/main/java/mygram/droid/FolderActivity.java') diff --git a/app/src/main/java/mygram/droid/FolderActivity.java b/app/src/main/java/mygram/droid/FolderActivity.java index 65ac596..84e7125 100644 --- a/app/src/main/java/mygram/droid/FolderActivity.java +++ b/app/src/main/java/mygram/droid/FolderActivity.java @@ -42,7 +42,7 @@ public final class FolderActivity extends Activity { static void open(Context c, Api.Folder f) { c.startActivity(new Intent(c, FolderActivity.class).putExtra("slug", f.slug).putExtra("name", f.name) - .putExtra("count", f.count)); + .putExtra("count", f.count).putExtra("avatar", f.avatarUrl)); } @Override @@ -50,7 +50,7 @@ public final class FolderActivity extends Activity { super.onCreate(state); LinearLayout column = new LinearLayout(this); column.setOrientation(LinearLayout.VERTICAL); - column.addView(Ui.header(this, getIntent().getStringExtra("name"))); + column.addView(Ui.header(this, getIntent().getStringExtra("name"), getIntent().getStringExtra("avatar"))); content = new FrameLayout(this); column.addView(content, new LinearLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, 0, 1)); setContentView(column); -- cgit v1.2.3