Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix resorting from the data of version <= 5.5.2 #683

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix resorting from the data of version <= 5.5.2
add 2 lines
  • Loading branch information
travellers authored Jun 21, 2019
commit 190548d25daa2ab725e169e513d5a1270119d01b
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ public static void deleteNote(File file) {
@Deprecated
public static boolean importDB(Context context, File backupDir) {
File database = context.getDatabasePath(Constants.DATABASE_NAME);

// Close the current database
DbHelper.getInstance().close();

if (database.exists()) {
database.delete();
}
Expand Down