File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
java/org/quantumbadger/redreader/compose/ui Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1- /Alpha 353 (2024-07-05)
1+ /Alpha 354 (2024-07-06)
2+ Workaround for requestFocus exception in album view
3+
4+ /Alpha 353 (2024-07-06)
25Improved gallery viewer with card, list, and grid modes
36Improved network performance
47Add Submitted Comments as an optional main menu user item (thanks to folkemat)
Original file line number Diff line number Diff line change 1717
1818package org.quantumbadger.redreader.compose.ui
1919
20+ import android.util.Log
2021import androidx.compose.foundation.ExperimentalFoundationApi
2122import androidx.compose.foundation.background
2223import androidx.compose.foundation.combinedClickable
@@ -169,10 +170,14 @@ fun AlbumScreen(
169170 // the screen, rather than the header at the top.
170171 // Only the `requestFocus()` call actually seems to have any effect here.
171172 LaunchedEffect (album) {
172- focusManager.clearFocus()
173- delay(1500 )
174- accessibilityFocusRequester.freeFocus()
175- accessibilityFocusRequester.requestFocus()
173+ try {
174+ focusManager.clearFocus()
175+ delay(1500 )
176+ accessibilityFocusRequester.freeFocus()
177+ accessibilityFocusRequester.requestFocus()
178+ } catch (e: Exception ) {
179+ Log .e(" AlbumScreen" , " requestFocus exception" , e)
180+ }
176181 }
177182
178183 DoOnce (album) {
You can’t perform that action at this time.
0 commit comments