Merge pull request #132 from fatihergin/feature/bind-activities-consistently-across-the-simple-apps
make activity inflating consistent across simple apps
This commit is contained in:
commit
0fa8759bd4
|
@ -10,7 +10,7 @@ import com.simplemobiletools.thankyou.R
|
||||||
import com.simplemobiletools.thankyou.databinding.ActivityMainBinding
|
import com.simplemobiletools.thankyou.databinding.ActivityMainBinding
|
||||||
|
|
||||||
class MainActivity : SimpleActivity() {
|
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?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
isMaterialActivity = true
|
isMaterialActivity = true
|
||||||
|
|
|
@ -12,7 +12,7 @@ import com.simplemobiletools.thankyou.extensions.config
|
||||||
import java.util.Locale
|
import java.util.Locale
|
||||||
|
|
||||||
class SettingsActivity : SimpleActivity() {
|
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?) {
|
override fun onCreate(savedInstanceState: Bundle?) {
|
||||||
isMaterialActivity = true
|
isMaterialActivity = true
|
||||||
|
|
Loading…
Reference in New Issue