Disabled didPopNext() refresh of message_list
This commit is contained in:
parent
5b8a1e86e0
commit
600f3365f6
@ -113,9 +113,11 @@ class _MessageListPageState extends State<MessageListPage> with RouteAware {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
void didPopNext() {
|
void didPopNext() {
|
||||||
|
if (AppSettings().alwaysBackgroundRefreshMessageListOnPop) {
|
||||||
ApplicationLog.debug('[MessageList::RouteObserver] --> didPopNext (will background-refresh)');
|
ApplicationLog.debug('[MessageList::RouteObserver] --> didPopNext (will background-refresh)');
|
||||||
_backgroundRefresh(false);
|
_backgroundRefresh(false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void _onLifecycleResume() {
|
void _onLifecycleResume() {
|
||||||
ApplicationLog.debug('[MessageList::_onLifecycleResume] --> (will background-refresh)');
|
ApplicationLog.debug('[MessageList::_onLifecycleResume] --> (will background-refresh)');
|
||||||
|
@ -4,6 +4,7 @@ class AppSettings extends ChangeNotifier {
|
|||||||
bool groupNotifications = true;
|
bool groupNotifications = true;
|
||||||
int messagePageSize = 128;
|
int messagePageSize = 128;
|
||||||
bool showDebugButton = true;
|
bool showDebugButton = true;
|
||||||
|
bool alwaysBackgroundRefreshMessageListOnPop = false;
|
||||||
|
|
||||||
static AppSettings? _singleton = AppSettings._internal();
|
static AppSettings? _singleton = AppSettings._internal();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user