mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-21 11:55:31 -04:00
universal7885: parts: smartcharge: this -> requirecontext
this, aka SmartChargeFragment doesnt extend Context
This commit is contained in:
parent
1ae356f310
commit
0834ccd364
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue