ApplicationManager and better memory management

This commit is contained in:
Mo Bitar
2020-03-23 19:59:55 -05:00
parent 7dc3dab90b
commit ee7cb1fce6
55 changed files with 36786 additions and 3046 deletions

View File

@@ -1,5 +1,4 @@
import {
ApplicationEvents,
SNPredicate,
ContentTypes,
CreateMaxPayloadFromAnyObject,
@@ -24,15 +23,7 @@ export const PrefKeys = {
};
export class PreferencesManager extends ApplicationService {
/* @ngInject */
constructor(
appState,
application
) {
super(application);
this.appState = appState;
}
/** @override */
onAppLaunch() {
super.onAppLaunch();
@@ -65,7 +56,7 @@ export class PreferencesManager extends ApplicationService {
}
preferencesDidChange() {
this.appState.setUserPreferences(this.userPreferences);
this.application.getAppState().setUserPreferences(this.userPreferences);
}
syncUserPreferences() {