Merge "Don't try to load a long screenshot image more than once" into sc-dev
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