diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-22 17:52:22 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-22 17:52:22 +0200 |
| commit | 9fba091bb394e8e4c7e8ccd0702081bd1a939047 (patch) | |
| tree | d21c451a94452d2b36dfccca35b1b45adfc2bc59 /app/src/main/java/mygram/droid/FolderActivity.java | |
| parent | 899b1d9812c61a33554b67e3026850684e686ce1 (diff) | |
| download | mygram-droid-9fba091bb394e8e4c7e8ccd0702081bd1a939047.tar.gz mygram-droid-9fba091bb394e8e4c7e8ccd0702081bd1a939047.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'app/src/main/java/mygram/droid/FolderActivity.java')
| -rw-r--r-- | app/src/main/java/mygram/droid/FolderActivity.java | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
