aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2024-01-06 00:33:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2024-01-06 00:33:51 +0000
commit896cdb98fff309410bc1bab9f46188a70bb1af3b (patch)
treec8f8411f99f154b9a1ee1ab5b35f0c97a75bbf53
parenta8daf5e0c134067f32baee69774b0ed47515103f (diff)
parentc95bf418c15e07e70b5f98d8d61d1343a15404ed (diff)
downloadsupport-androidx-core-performance-release.tar.gz
Merge "Merge cherrypicks of ['android-review.googlesource.com/2898776'] into androidx-core-performance-release." into androidx-core-performance-releaseandroidx-core-performance-release
-rw-r--r--core/core-performance-play-services/src/main/java/androidx/core/performance/play/services/PlayServicesDevicePerformance.kt3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/core-performance-play-services/src/main/java/androidx/core/performance/play/services/PlayServicesDevicePerformance.kt b/core/core-performance-play-services/src/main/java/androidx/core/performance/play/services/PlayServicesDevicePerformance.kt
index 83977ddf225..72c5cb20491 100644
--- a/core/core-performance-play-services/src/main/java/androidx/core/performance/play/services/PlayServicesDevicePerformance.kt
+++ b/core/core-performance-play-services/src/main/java/androidx/core/performance/play/services/PlayServicesDevicePerformance.kt
@@ -52,6 +52,7 @@ internal constructor(
private val tag = "PlayServicesDevicePerformance"
private val defaultMpc = DefaultDevicePerformance()
+ private val mpcKey = intPreferencesKey(MPC_PREFERENCE_KEY)
override val mediaPerformanceClass get() = lazyMpc.value
private val lazyMpc =
@@ -87,8 +88,6 @@ internal constructor(
produceFile = { context.preferencesDataStoreFile("media_performance_class") })
)
- private val mpcKey = intPreferencesKey(MPC_PREFERENCE_KEY)
-
private fun getPerformanceClass(): Flow<Int?> {
return performanceStore.data.map { values ->
// No type safety.