Upgrade target sdk
This commit is contained in:
@@ -56,7 +56,9 @@ class KotatsuApp : BaseApp() {
|
||||
detectLeakedSqlLiteObjects()
|
||||
detectLeakedClosableObjects()
|
||||
detectLeakedRegistrationObjects()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) detectContentUriWithoutPermission()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
detectContentUriWithoutPermission()
|
||||
}
|
||||
detectFileUriExposure()
|
||||
penaltyLog()
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P && notifier != null) {
|
||||
|
||||
@@ -10,7 +10,7 @@ class RememberCheckListener(
|
||||
var isChecked: Boolean = initialValue
|
||||
private set
|
||||
|
||||
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) {
|
||||
override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
|
||||
this.isChecked = isChecked
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,7 +105,7 @@ class ScrollTimerControlView @JvmOverloads constructor(
|
||||
updateDescription()
|
||||
}
|
||||
|
||||
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) {
|
||||
override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
|
||||
scrollTimer?.setActive(isChecked)
|
||||
}
|
||||
|
||||
|
||||
@@ -81,7 +81,7 @@ class ProtectSetupActivity :
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) {
|
||||
override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
|
||||
viewModel.setBiometricEnabled(isChecked)
|
||||
}
|
||||
|
||||
|
||||
@@ -129,8 +129,8 @@ class StatsActivity : BaseActivity<ActivityStatsBinding>(),
|
||||
}
|
||||
}
|
||||
|
||||
override fun onCheckedChanged(buttonView: CompoundButton?, isChecked: Boolean) {
|
||||
val category = buttonView?.tag as? FavouriteCategory ?: return
|
||||
override fun onCheckedChanged(buttonView: CompoundButton, isChecked: Boolean) {
|
||||
val category = buttonView.tag as? FavouriteCategory ?: return
|
||||
viewModel.setCategoryChecked(category, isChecked)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user