[reader] Make improve coding style and added empty view message

This commit is contained in:
Laury
2021-09-05 21:10:56 +02:00
parent 7f0b8170d4
commit 19ee32986f
21 changed files with 349 additions and 387 deletions

View File

@@ -4,7 +4,7 @@
#include "apps/i18n.h"
namespace reader {
namespace Reader {
I18n::Message App::Descriptor::name() {
return I18n::Message::ReaderApp;
@@ -32,7 +32,8 @@ App::Descriptor * App::Snapshot::descriptor() {
App::App(Snapshot * snapshot) :
::App(snapshot, &m_stackViewController),
m_listBookController(&m_stackViewController),
m_stackViewController(nullptr, &m_listBookController)
m_alternateEmptyViewController(&m_stackViewController, &m_listBookController, &m_listBookController),
m_stackViewController(&m_modalViewController, &m_alternateEmptyViewController)
{
}