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

Commit a7c23c9d 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...

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

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

Change-Id: I802627a8f6752a7349002515982faff1a22a104b
parents a88913c3 169605f6
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;