Commit 9e1038c
committed
fix(ui): tapping the same right-pane item twice in landscape opened it twice
openPane()/openPaneFragment() always pushed a new back-stack entry on
the right pane's child FragmentManager, even when the fragment being
opened was already the one on screen. A quick double-tap on the same
trigger (instance row, settings gear, etc.) therefore stacked two
identical entries, and Back had to be pressed twice to actually get
back to the pane's home screen — the first press just popped the
duplicate back to itself.
Added isTagAlreadyOnTop(), checked at the top of both navigation
helpers: if the requested tag is already the top back-stack entry,
the tap is a no-op instead of pushing a duplicate.1 parent b7ade35 commit 9e1038c
3 files changed
Lines changed: 16 additions & 0 deletions
File tree
- app_pojavlauncher/src/main
- assets
- java/net/kdt/pojavlaunch/fragments
Loading
Loading
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
160 | 174 | | |
161 | 175 | | |
162 | 176 | | |
| 177 | + | |
163 | 178 | | |
164 | 179 | | |
165 | 180 | | |
| |||
179 | 194 | | |
180 | 195 | | |
181 | 196 | | |
| 197 | + | |
182 | 198 | | |
183 | 199 | | |
184 | 200 | | |
| |||
0 commit comments