Search in sources :

Example 1 with Import

use of com.faltenreich.diaguard.shared.data.database.importing.Import in project Diaguard by Faltenreich.

the class DiaguardApplication method init.

private void init() {
    context = getApplicationContext();
    JodaTimeAndroid.init(this);
    PreferenceStore.getInstance().init(this);
    Database.getInstance().init(this);
    new Import(this).importDataIfNeeded();
    PreferenceStore.getInstance().migrate();
    Migrator.getInstance().start();
    NotificationUtils.setupNotifications(this);
    Theme theme = PreferenceStore.getInstance().getTheme();
    ThemeUtils.setDefaultNightMode(theme);
    ThemeUtils.setUiMode(this, theme);
    ImageLoader.getInstance().init(this);
}
Also used : Import(com.faltenreich.diaguard.shared.data.database.importing.Import) Theme(com.faltenreich.diaguard.shared.view.theme.Theme)

Aggregations

Import (com.faltenreich.diaguard.shared.data.database.importing.Import)1 Theme (com.faltenreich.diaguard.shared.view.theme.Theme)1