Skip to content

Commit 2d333db

Browse files
committed
When "post title opens comments" is enabled, clicking the inline image preview now opens the post rather than the comments
1 parent 7c6eebf commit 2d333db

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/assets/changelog-alpha.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/Alpha 346 (2023-12-18)
2+
When "post title opens comments" is enabled, clicking the inline image preview now opens the post rather than the comments
3+
14
/Alpha 345 (2023-12-17)
25
When "post title opens comments" is enabled, the thumbnail now opens the post rather than the comments
36

src/main/java/org/quantumbadger/redreader/views/RedditPostView.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ public void handleMessage(@NonNull final Message msg) {
244244
if(postTitleOpensPost) {
245245
mOuterView.setOnClickListener(v -> fragmentParent.onPostCommentsSelected(mPost));
246246
mThumbnailView.setOnClickListener(v -> fragmentParent.onPostSelected(mPost));
247+
mImagePreviewOuter.setOnClickListener(v -> fragmentParent.onPostSelected(mPost));
247248

248249
} else {
249250
mOuterView.setOnClickListener(v -> fragmentParent.onPostSelected(mPost));

0 commit comments

Comments
 (0)