Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78f358de authored by Matt Casey's avatar Matt Casey Committed by Automerger Merge Worker
Browse files

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

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

Change-Id: I5dbe7469e7bebdf1c1a49c2b354f855897998305
parents 58604e61 088e0f5c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;