Pre-emptively take a snapshot when finishing an activity before changing visibility
- Finishing an activity in force landscape will normally trigger a
visibility change and configuration change before the closing apps
are handled (when snapshots are normally taken) resulting in snapshots
showing for the wrong orientation. Preemptively take the screenshot
if we know that we are finishing the activity and ignore the subsequent
closing app snapshot.
Bug: 132687470
Test: Go into forced landscape app, back out of the app, then go to
Overview and ensure that the full snapshot is shown in the right
orientation
Change-Id: I8f9283188da00a09e499c3c16eff5b45fcaa73d1
1 file changed