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

Commit 088e0f5c authored by Matt Casey's avatar Matt Casey Committed by Android (Google) Code Review
Browse files

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

parents 851904a4 88f29242
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;