[apps] Substitute "app()->container()" by "AppsContainer::sharedAppsContainer()"

This commit is contained in:
Ruben Dashyan
2019-05-14 15:06:23 +02:00
committed by EmilieNumworks
parent 268ad3f3ba
commit eb3da7f395
18 changed files with 25 additions and 30 deletions

View File

@@ -43,8 +43,7 @@ bool LanguageController::handleEvent(Ion::Events::Event event) {
GlobalPreferences::sharedGlobalPreferences()->setLanguage((I18n::Language)(selectedRow()+1));
/* We need to reload the whole title bar in order to translate both the
* "Settings" title and the degree preference. */
AppsContainer * myContainer = (AppsContainer * )app()->container();
myContainer->reloadTitleBarView();
AppsContainer::sharedAppsContainer()->reloadTitleBarView();
return true;
}
return false;