Merge "Don't try to load a long screenshot image more than once" into sc-dev am: 088e0f5c7b

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15237355

Change-Id: I3b3d62a0bcd09122029448a48f79a034945b21dc
This commit is contained in:
Matt Casey
2021-07-09 19:12:07 +00:00
committed by Automerger Merge Worker

View File

@@ -162,6 +162,11 @@ public class LongScreenshotActivity extends Activity {
public void onStart() {
super.onStart();
if (mPreview.getDrawable() != null) {
// We already have an image, so no need to try to load again.
return;
}
if (mCacheLoadFuture != null) {
Log.d(TAG, "mCacheLoadFuture != null");
final ListenableFuture<ImageLoader.Result> future = mCacheLoadFuture;