Skip to content

Commit 6fb8fe9

Browse files
Jean-Baptiste Queruandroid code review
authored andcommitted
Merge "StrictMode.permitCustomSlowCalls() should call disable(DETECT_CUSTOM)"
2 parents 52410be + 097fbf2 commit 6fb8fe9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/java/android/os/StrictMode.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -407,17 +407,17 @@ public Builder permitDiskReads() {
407407
}
408408

409409
/**
410-
* Enable detection of disk reads.
410+
* Enable detection of slow calls.
411411
*/
412412
public Builder detectCustomSlowCalls() {
413413
return enable(DETECT_CUSTOM);
414414
}
415415

416416
/**
417-
* Enable detection of disk reads.
417+
* Disable detection of slow calls.
418418
*/
419419
public Builder permitCustomSlowCalls() {
420-
return enable(DETECT_CUSTOM);
420+
return disable(DETECT_CUSTOM);
421421
}
422422

423423
/**

0 commit comments

Comments
 (0)