Merge "Enable transport logging based on isLoggable()."

This commit is contained in:
Jeff Sharkey
2019-08-09 20:52:39 +00:00
committed by Android (Google) Code Review

View File

@@ -2112,6 +2112,10 @@ public abstract class ContentProvider implements ContentInterface, ComponentCall
mSingleUser = (info.flags & ProviderInfo.FLAG_SINGLE_USER) != 0;
setAuthorities(info.authority);
}
if (Build.IS_DEBUGGABLE) {
setTransportLoggingEnabled(Log.isLoggable(getClass().getSimpleName(),
Log.VERBOSE));
}
ContentProvider.this.onCreate();
}
}