From 191730724ba1d1dd67082ad18cb91a70b9b6ef82 Mon Sep 17 00:00:00 2001 From: fatih ergin Date: Wed, 16 Aug 2023 13:03:34 +0300 Subject: [PATCH] make activity inflating consistent across the other simple apps --- .../com/simplemobiletools/thankyou/activities/MainActivity.kt | 2 +- .../simplemobiletools/thankyou/activities/SettingsActivity.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt index 254bee2..fd50b09 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt @@ -10,7 +10,7 @@ import com.simplemobiletools.thankyou.R import com.simplemobiletools.thankyou.databinding.ActivityMainBinding class MainActivity : SimpleActivity() { - private val binding by viewBinding(ActivityMainBinding::inflate) + private val binding by lazy(LazyThreadSafetyMode.NONE) { ActivityMainBinding.inflate(layoutInflater) } override fun onCreate(savedInstanceState: Bundle?) { isMaterialActivity = true diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt index 73f2f3e..5c0797a 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt @@ -12,7 +12,7 @@ import com.simplemobiletools.thankyou.extensions.config import java.util.Locale class SettingsActivity : SimpleActivity() { - private val binding by viewBinding(ActivitySettingsBinding::inflate) + private val binding by lazy(LazyThreadSafetyMode.NONE) { ActivitySettingsBinding.inflate(layoutInflater) } override fun onCreate(savedInstanceState: Bundle?) { isMaterialActivity = true