mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 12:10:03 +02:00
[apps] Return boolean when charging state or charge level has changed
(to know if the redrawing is necessary) Change-Id: Iebb1d2ba1f188815b01bcbd6e632244f6169b3f9
This commit is contained in:
@@ -13,21 +13,16 @@ TitleBarView::TitleBarView() :
|
||||
{
|
||||
}
|
||||
|
||||
void TitleBarView::drawRect(KDContext * ctx, KDRect rect) const {
|
||||
ctx->fillRect(bounds(), Palette::YellowDark);
|
||||
|
||||
}
|
||||
|
||||
void TitleBarView::setTitle(I18n::Message title) {
|
||||
m_titleView.setMessage(title);
|
||||
}
|
||||
|
||||
void TitleBarView::setChargeState(Ion::Battery::Charge chargeState) {
|
||||
m_batteryView.setChargeState(chargeState);
|
||||
bool TitleBarView::setChargeState(Ion::Battery::Charge chargeState) {
|
||||
return m_batteryView.setChargeState(chargeState);
|
||||
}
|
||||
|
||||
void TitleBarView::setIsCharging(bool isCharging) {
|
||||
m_batteryView.setIsCharging(isCharging);
|
||||
bool TitleBarView::setIsCharging(bool isCharging) {
|
||||
return m_batteryView.setIsCharging(isCharging);
|
||||
}
|
||||
|
||||
int TitleBarView::numberOfSubviews() const {
|
||||
|
||||
Reference in New Issue
Block a user