[apps] Display the preferences in the title bar

Change-Id: Ib1defef85b68a48f667127c583901b659db1cbaf
This commit is contained in:
Émilie Feral
2017-01-30 14:45:08 +01:00
parent bb37c94bf5
commit 39b0bd9b66
7 changed files with 46 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
#include "sub_controller.h"
#include "../apps_container.h"
#include <assert.h>
namespace Settings {
@@ -33,6 +34,8 @@ void SubController::didBecomeFirstResponder() {
bool SubController::handleEvent(Ion::Events::Event event) {
if (event == Ion::Events::OK) {
setPreferenceAtIndexWithValueIndex(m_preferenceIndex, m_selectableTableView.selectedRow());
AppsContainer * myContainer = (AppsContainer * )app()->container();
myContainer->refreshPreferences();
StackViewController * stack = stackController();
stack->pop();
}