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 (cherry picked from commit c90ca4e86ee042f6ce8c6971e075bf0f8d893901)
This commit is contained in:
parent
6c143230d7
commit
ff65d7b05b
@ -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