Fix NullPointerException with optimization card
This commit is contained in:
parent
1670b364d8
commit
aeb39b4c65
|
@ -115,7 +115,7 @@ class MainActivity : AppCompatActivity() {
|
|||
startActivity(Intent(Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS))
|
||||
}
|
||||
} else {
|
||||
findViewById<MaterialCardView>(R.id.card_battery_optimization).isGone = true
|
||||
findViewById<MaterialCardView>(R.id.card_battery_optimization)?.isGone = true
|
||||
}
|
||||
}
|
||||
private fun restart() {
|
||||
|
|
Loading…
Reference in New Issue