diff options
| author | 2023-03-27 12:13:22 -0400 | |
|---|---|---|
| committer | 2023-03-28 19:48:19 +0000 | |
| commit | 60016c9dd720e9d7cc4f0232412da5a3f196423a (patch) | |
| tree | d8dc8533643c0462835ce8c322befc9890fcb950 /libs/androidfw/ObbFile.cpp | |
| parent | 1dc4031b05c74cac9e147971a1e299dba8f1b346 (diff) | |
Remove redundant setContentView to fix screenshot focus
This is essentially the same fix as ag/20620698; it got partially
reverted (unintentionally) as part of a later refactor, probably
due to version shear. The result is that the second call to
setContentView resets the screenshot focus that was just requested,
causing us to no longer receive back key events.
This change removes the redundant call to setContentView (which
should only be called once, in reloadAssets during the constructor)
so that the ScreenshotView retains focus correctly.
Bug: 271497893
Fix: 271497893
Test: manual (by swiping back during a screenshot and verifying that
the screenshot UI is dismissed)
Change-Id: I9ed908e84b8f69e48c900de90d378c4fda0ff7f9
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions