Import updated Android SetupCompat Library 279249746
Copied from google3/third_party/java_src/android_libs/setupcompat
Test: mm
Included changes:
- 279249746 Trims the metric value less than CustomEvent.MAX_STRING_L...
- 258686629 Fix activity test fail.
- 258478750 Log onResume time for sort the flow of SUW
- 257138376 Fix fail to publish metrics log
- 256076624 Refactor the screenName of Metrics
- 254929273 Fix PartnerConfigHelper#getResourceEntryFromKey throw NPE
- 253952206 Provide the fallback values from setup wizard when the sc...
- 252376490 Add partner config for body content text
- 251553482 qt-dev is freeze, code will sync to qt-r1-dev
PiperOrigin-RevId: 279249746
Change-Id: Id7af2272ded4550bea5246abe75026a68cb51b19
diff --git a/main/java/com/google/android/setupcompat/PartnerCustomizationLayout.java b/main/java/com/google/android/setupcompat/PartnerCustomizationLayout.java
index 360a0a0..fac4b39 100644
--- a/main/java/com/google/android/setupcompat/PartnerCustomizationLayout.java
+++ b/main/java/com/google/android/setupcompat/PartnerCustomizationLayout.java
@@ -212,9 +212,7 @@
SetupMetricsLogger.logCustomEvent(
getContext(),
- CustomEvent.create(
- MetricKey.get("SetupCompatMetrics", activity.getClass().getSimpleName()),
- persistableBundle));
+ CustomEvent.create(MetricKey.get("SetupCompatMetrics", activity), persistableBundle));
}
}