universal7885: parts: smartcharge: this -> requirecontext

this, aka SmartChargeFragment doesnt extend Context
This commit is contained in:
roynatech2544 2022-10-16 12:10:04 +09:00
commit 0834ccd364

View file

@ -146,7 +146,7 @@ class SmartChargeFragment : PreferenceFragmentCompat(), OnMainSwitchChangeListen
mMainHandler.post({ mSmartChargeBtn.isEnabled = true })
mMainHandler.post({ mApplyBtn.isEnabled = false })
} else {
Toast.makeText(this, "Limit percent should be bigger than restart percent", Toast.LENGTH_SHORT).show()
Toast.makeText(requireContext(), "Limit percent should be bigger than restart percent", Toast.LENGTH_SHORT).show()
}
}
}