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;
|
clock = Clock.DEFAULT;
|
||||||
listeners = new ListenerSet<>(looper, clock, (listener, flags) -> {});
|
listeners = new ListenerSet<>(looper, clock, (listener, flags) -> {});
|
||||||
if (SDK_INT >= 35) {
|
if (SDK_INT >= 35) {
|
||||||
|
usePlatformDiagnostics = true;
|
||||||
metricsReporterFactory =
|
metricsReporterFactory =
|
||||||
new EditingMetricsCollector.DefaultMetricsReporter.Factory(context);
|
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
|
* href="https://support.google.com/accounts/answer/6078260">if sharing usage and diagnostics
|
||||||
* data is enabled</a> by the user of the device.
|
* 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
|
* @param usePlatformDiagnostics Whether transformer reports diagnostics data to the Android
|
||||||
* platform.
|
* platform.
|
||||||
* @return This builder.
|
* @return This builder.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user