Commit 4759fad
committed
Refactor: Update edge-to-edge implementation for Android 15
This commit updates the `applyEdgeToEdge` logic in `BaseActivity` to target Android 15 (Vanilla Ice Cream) and above.
Key changes include:
- Restricting `setDecorFitsSystemWindows` and inset listeners to `SDK_INT >= VANILLA_ICE_CREAM`.
- Switching the inset listener from the content view to the `decorView`.
- Accounting for IME (keyboard) insets when calculating bottom padding.
- Updating padding logic to include left and right system bar insets.1 parent 26a4334 commit 4759fad
File tree
1 file changed
+23
-16
lines changed- app/src/main/java/com/ahmadabuhasan/qrbarcode/utils
1 file changed
+23
-16
lines changedLines changed: 23 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | 14 | | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | | - | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
0 commit comments