@@ -27,6 +27,7 @@ import android.webkit.WebViewClient
27
27
import android.widget.ImageView
28
28
import android.widget.TextView
29
29
import android.widget.Toast
30
+ import androidx.viewpager.widget.ViewPager
30
31
import com.simplemobiletools.commons.dialogs.*
31
32
import com.simplemobiletools.commons.extensions.*
32
33
import com.simplemobiletools.commons.helpers.*
@@ -80,12 +81,11 @@ class MainActivity : SimpleActivity() {
80
81
private lateinit var searchNextBtn: ImageView
81
82
private lateinit var searchClearBtn: ImageView
82
83
83
- private lateinit var binding: ActivityMainBinding
84
+ private val binding: ActivityMainBinding by viewBinding( ActivityMainBinding ::inflate)
84
85
85
86
override fun onCreate (savedInstanceState : Bundle ? ) {
86
87
isMaterialActivity = true
87
88
super .onCreate(savedInstanceState)
88
- binding = ActivityMainBinding .inflate(layoutInflater)
89
89
setContentView(binding.root)
90
90
appLaunched(BuildConfig .APPLICATION_ID )
91
91
setupOptionsMenu()
@@ -103,6 +103,7 @@ class MainActivity : SimpleActivity() {
103
103
binding.pagerTabStrip.setTextSize(TypedValue .COMPLEX_UNIT_PX , getPercentageFontSize())
104
104
binding.pagerTabStrip.layoutParams.height =
105
105
(binding.pagerTabStrip.height + resources.getDimension(com.simplemobiletools.commons.R .dimen.activity_margin) * 2 * (config.fontSizePercentage / 100f )).toInt()
106
+ (binding.pagerTabStrip.layoutParams as ViewPager .LayoutParams ).isDecor = true
106
107
checkWhatsNewDialog()
107
108
checkIntents(intent)
108
109
0 commit comments