use of com.orgzly.android.usecase.BookImportGettingStarted in project orgzly-android by orgzly.
the class MainActivity method performIntros.
private void performIntros() {
int currentVersion = AppPreferences.lastUsedVersionCode(this);
boolean isNewVersion = checkIfNewAndUpdateVersion();
if (isNewVersion) {
/* Import Getting Started notebook. */
if (!AppPreferences.isGettingStartedNotebookLoaded(this)) {
UseCaseRunner.enqueue(new BookImportGettingStarted());
}
/* Open drawer for the first time user. */
if (currentVersion == 0 && mDrawerLayout != null) {
mDrawerLayout.openDrawer(GravityCompat.START);
}
// Display what's new
displayWhatsNewDialog();
// Clear clipboard (due to possible internal format changes across app versions)
NotesClipboard.clear();
}
}
Aggregations