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: Ife43d28ff4d932ba890536b444dbd1f05ad10b5d
This commit is contained in:
@@ -162,6 +162,11 @@ public class LongScreenshotActivity extends Activity {
|
|||||||
public void onStart() {
|
public void onStart() {
|
||||||
super.onStart();
|
super.onStart();
|
||||||
|
|
||||||
|
if (mPreview.getDrawable() != null) {
|
||||||
|
// We already have an image, so no need to try to load again.
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (mCacheLoadFuture != null) {
|
if (mCacheLoadFuture != null) {
|
||||||
Log.d(TAG, "mCacheLoadFuture != null");
|
Log.d(TAG, "mCacheLoadFuture != null");
|
||||||
final ListenableFuture<ImageLoader.Result> future = mCacheLoadFuture;
|
final ListenableFuture<ImageLoader.Result> future = mCacheLoadFuture;
|
||||||
|
|||||||
Reference in New Issue
Block a user