From b9467b36aa8bcc416ab6c426e1dd0d2b383a6ae5 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Sat, 1 Oct 2022 18:14:16 -0400 Subject: [PATCH] drop lazy initialization for TunePlayer --- app/src/main/java/app/grapheneos/camera/CamConfig.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/app/grapheneos/camera/CamConfig.kt b/app/src/main/java/app/grapheneos/camera/CamConfig.kt index 285414ac5..75fb3a62f 100644 --- a/app/src/main/java/app/grapheneos/camera/CamConfig.kt +++ b/app/src/main/java/app/grapheneos/camera/CamConfig.kt @@ -204,7 +204,7 @@ class CamConfig(private val mActivity: MainActivity) { var iAnalyzer: ImageAnalysis? = null - val mPlayer: TunePlayer by lazy { TunePlayer(mActivity) } + val mPlayer = TunePlayer(mActivity) // note that Activities which implement SecureActivity interface (meaning they are accessible // from the lock screen) are forced to override getSharedPreferences()