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

Commit f75ebc22 authored by Vania Desmonda's avatar Vania Desmonda Committed by Android (Google) Code Review
Browse files

Merge "Use `mContext.getMainLooper()` as the parameter for creating a new...

Merge "Use `mContext.getMainLooper()` as the parameter for creating a new Handler if it's null in `registerCallback()`" into main
parents 470ea192 33941d8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public final class MediaProjection {
        try {
            final Callback c = Objects.requireNonNull(callback);
            if (handler == null) {
                handler = new Handler();
                handler = new Handler(mContext.getMainLooper());
            }
            mCallbacks.put(c, new CallbackRecord(c, handler));
        } catch (NullPointerException e) {