commit | 03a778d6df2c57a74eed90c659e6c6893bd29170 | [log] [tgz] |
---|---|---|
author | Andrey Epin <ayepin@google.com> | Wed May 10 20:39:45 2023 -0700 |
committer | Andrey Epin <ayepin@google.com> | Thu May 11 09:58:42 2023 -0700 |
tree | e12e4d2a8ce5dd77c53a6d859730c1d55806104c | |
parent | b6db5913d41b01476ef027d7e40f032f4f3c4ed9 [diff] |
Kepp PreviewDataProvider instace over a configuration change Add a view model, PreviewViewModel, to retain a PreviewDataProvider instance. Tangentally, move ChooserActivity#isImageType method into MimeTypeClassifier (to avoid keep a link to the activity). Fix: 281929002 Test: manual testing, vierify through injected debug logging that the object is not re-created. Change-Id: I7be397089ca33e589a3ecbd6012929bfe3c5433a