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

Commit 097fbf2e authored by Qi Wang's avatar Qi Wang
Browse files

StrictMode.permitCustomSlowCalls() should call disable(DETECT_CUSTOM)

parent 13a3a87f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -407,17 +407,17 @@ public final class StrictMode {
            }

            /**
             * Enable detection of disk reads.
             * Enable detection of slow calls.
             */
            public Builder detectCustomSlowCalls() {
                return enable(DETECT_CUSTOM);
            }

            /**
             * Enable detection of disk reads.
             * Disable detection of slow calls.
             */
            public Builder permitCustomSlowCalls() {
                return enable(DETECT_CUSTOM);
                return disable(DETECT_CUSTOM);
            }

            /**