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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user