mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Enable metrics collection by default
PiperOrigin-RevId: 730383523
This commit is contained in:
parent
76df13d390
commit
c90ca4e86e
@ -145,6 +145,7 @@ public final class Transformer {
|
||||
clock = Clock.DEFAULT;
|
||||
listeners = new ListenerSet<>(looper, clock, (listener, flags) -> {});
|
||||
if (SDK_INT >= 35) {
|
||||
usePlatformDiagnostics = true;
|
||||
metricsReporterFactory =
|
||||
new EditingMetricsCollector.DefaultMetricsReporter.Factory(context);
|
||||
}
|
||||
@ -549,6 +550,8 @@ public final class Transformer {
|
||||
* href="https://support.google.com/accounts/answer/6078260">if sharing usage and diagnostics
|
||||
* data is enabled</a> by the user of the device.
|
||||
*
|
||||
* <p>The default value is {@code true}.
|
||||
*
|
||||
* @param usePlatformDiagnostics Whether transformer reports diagnostics data to the Android
|
||||
* platform.
|
||||
* @return This builder.
|
||||
|
Loading…
x
Reference in New Issue
Block a user