make activity inflating consistent across the other simple apps

This commit is contained in:
fatih ergin 2023-08-16 13:03:34 +03:00
parent 23efbc4857
commit 191730724b
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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