Commit 47ab4c9
app: [android] remove redundant ConfigEvent in onStop and onSurfaceDestroyed
Config.Focused represents window interaction focus, which should only
change when the window gains or loses user interaction capability.
The focus state is already correctly handled in:
- onResume → focused = true (window gains interaction focus)
- onPause → focused = false (window loses interaction focus)
Therefore, sending additional ConfigEvent in onStop and onSurfaceDestroyed
is redundant because:
- onStop is always preceded by onPause
- onSurfaceDestroyed is a low-level surface event unrelated to focus
This cleanup aligns the Android implementation with the correct semantic
that Config.Focused = window interaction focus, not view focus or
surface state.
Signed-off-by: CoyAce <akeycoy@gmail.com>1 parent 7603691 commit 47ab4c9
1 file changed
+6
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
| |||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
| 139 | + | |
| 140 | + | |
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
530 | | - | |
531 | 530 | | |
532 | 531 | | |
533 | 532 | | |
| |||
544 | 543 | | |
545 | 544 | | |
546 | 545 | | |
547 | | - | |
548 | 546 | | |
549 | 547 | | |
550 | 548 | | |
| |||
590 | 588 | | |
591 | 589 | | |
592 | 590 | | |
593 | | - | |
594 | | - | |
| 591 | + | |
| 592 | + | |
595 | 593 | | |
596 | 594 | | |
597 | 595 | | |
| |||
817 | 815 | | |
818 | 816 | | |
819 | 817 | | |
820 | | - | |
821 | 818 | | |
822 | 819 | | |
823 | 820 | | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | 821 | | |
830 | 822 | | |
831 | 823 | | |
| |||
868 | 860 | | |
869 | 861 | | |
870 | 862 | | |
871 | | - | |
| 863 | + | |
872 | 864 | | |
873 | 865 | | |
874 | 866 | | |
| |||
1404 | 1396 | | |
1405 | 1397 | | |
1406 | 1398 | | |
1407 | | - | |
| 1399 | + | |
1408 | 1400 | | |
1409 | 1401 | | |
1410 | 1402 | | |
| |||
0 commit comments