make activity inflating consistent across the other simple apps
This commit is contained in:
parent
23efbc4857
commit
191730724b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue