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

Commit 525319cd authored by Zhijun He's avatar Zhijun He Committed by Android Git Automerger
Browse files

am 5b6ce5a2: Merge "ImageReader: Fix null listener case" into klp-dev

* commit '5b6ce5a2':
  ImageReader: Fix null listener case
parents fee8a471 5b6ce5a2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -194,7 +194,7 @@ public final class ImageReader implements AutoCloseable {

        Looper looper;
        mHandler = handler;
        if (mHandler == null) {
        if (listener != null && mHandler == null) {
            if ((looper = Looper.myLooper()) != null) {
                mHandler = new Handler();
            } else {
@@ -283,7 +283,7 @@ public final class ImageReader implements AutoCloseable {
            return;
        }

        if (ir.mHandler != null) {
        if (ir.mHandler != null && ir.mImageListener != null) {
            ir.mHandler.post(new Runnable() {
                @Override
                public void run() {