diff options
author | Matt Casey <mrcasey@google.com> | 2021-02-26 12:21:47 -0500 |
---|---|---|
committer | Matt Casey <mrcasey@google.com> | 2021-03-01 12:25:03 -0500 |
commit | 2bb3ca0c85d576f08239f80f8d4ea7ba90aa21ac (patch) | |
tree | 238eb16f9465c66c1f7830a2fe5412762854faeb /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 25400d83db2227ea4dd4f97748af1d7d7c94b330 (diff) |
Image state restoration for LongScreenshotActivity
- When long screenshot is acquired, save image to a temporary file.
- When restoring state, read in that bitmap.
- Moved bitmap export code from ScrollCaptureController to
LongScreenshotActivity because it needs to be able to export any
drawable regardless of source.
- Currently deleting the temporary file onDestroy.
Bug: 181087631
Test: Enable "don't keep activities" debug setting. Take long
screenshot, go to overview and return. Rotate UI. Verify that image
restores along with crop bounds and export still works properly.
Change-Id: I892ad78025c818c8c65d16f2844daa955cc0b005
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions