Commit 33eaf21
Fix Android back button closing app instead of navigating back in WebView (#52)
onBackPressed() is deprecated and no longer called on Android 13+
(targetSdkVersion 36). Replace with OnBackPressedCallback registered
on OnBackPressedDispatcher so the WebView back navigation works with
the modern back gesture system.
https://claude.ai/code/session_01N8qksHxWt2qBSM6SYPUiss
Co-authored-by: Claude <noreply@anthropic.com>1 parent e43a315 commit 33eaf21
1 file changed
Lines changed: 13 additions & 9 deletions
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | | - | |
13 | 13 | | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
22 | 26 | | |
23 | 27 | | |
0 commit comments