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

Commit 7a8804ad authored by Kurt Nelson's avatar Kurt Nelson
Browse files

Pass forward listeners when using existing builder

This is how VmPolicy behaves.

Bug: 62458446
Test: cts-tradefed run commandAndExit cts-dev --module CtsOsTestCases
--test android.os.cts.StrictModeTest

Change-Id: Iccab728bf21bad695f26891042dfe355506cdc5c
parent e7658ef2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -479,6 +479,8 @@ public final class StrictMode {
            /** Initialize a Builder from an existing ThreadPolicy. */
            public Builder(ThreadPolicy policy) {
                mMask = policy.mask;
                mListener = policy.mListener;
                mExecutor = policy.mCallbackExecutor;
            }

            /**