OSDN Git Service

Work in #onPictureTaken will be on a forked, so no need to fork the call.
authorSascha Haeberling <haeberling@google.com>
Mon, 14 Jul 2014 19:23:36 +0000 (12:23 -0700)
committerSascha Haeberling <haeberling@google.com>
Mon, 14 Jul 2014 19:23:36 +0000 (12:23 -0700)
  Bug: 16217551

Change-Id: Id9f6e129d402d5e58cf5f63380c5bf13ab996431

src/com/android/camera/PhotoModule.java

index 3ca8003..f3e5d6b 100644 (file)
@@ -1143,12 +1143,7 @@ public class PhotoModule
 
             // Send the taken photo to remote shutter listeners, if any are
             // registered.
-            AsyncTask.SERIAL_EXECUTOR.execute(new Runnable() {
-                @Override
-                public void run() {
-                    getServices().getRemoteShutterListener().onPictureTaken(jpegData);
-                }
-            });
+            getServices().getRemoteShutterListener().onPictureTaken(jpegData);
 
             // Check this in advance of each shot so we don't add to shutter
             // latency. It's true that someone else could write to the SD card