Merge "Replace IS_DEBUGGABLE with isDebuggable module API"

This commit is contained in:
Remi NGUYEN VAN
2021-04-09 00:19:19 +00:00
committed by Gerrit Code Review

View File

@@ -7677,7 +7677,7 @@ public class ConnectivityService extends IConnectivityManager.Stub
}
void addRequestReassignment(@NonNull final RequestReassignment reassignment) {
if (Build.IS_DEBUGGABLE) {
if (Build.isDebuggable()) {
// The code is never supposed to add two reassignments of the same request. Make
// sure this stays true, but without imposing this expensive check on all
// reassignments on all user devices.