Close input session when the view is detached from the window.
This is the 3rd trial to fix Bug 20820914. In followig CLs, we have tried to address a input session leak when the focused view is detached from the focused window by relying on IMM#focusOut() but failed because of regressions like Bug 21508503. - Ib4bd70ce0305a6bde6a929bcc6ad20a2b8402a97 - I219394178e4172bc47864297f1418e677dba25e5 - Id6afc8fc64512225578c62557b96c7dc2e969adf - Ib1b037594ebbb4ad4cf2d59e21c7a8ca9d8dc930 - I2228ae0c48ad3d9e0b55875f0dcb5ef8c55b0c5f What we have learned from Bug 21508503 was that re-enabling IMM#focusOut() probably requires much more work than we thought. Also relying on IMM#focusOut() might be overkill because the situation in Bug 20820914 is really special where the focused view is detached from the focused window hence we should be able to be fix the issue more conservatively by closing input session when and only when the focused view is detached from the focused view, rather than re-enabling IMM#focusOut() globally. Bug: 20820914 Change-Id: Iaf3fe2c065b5bf91e49a729ba46262114bb6da88
Loading
Please register or sign in to comment