Skip to content

Commit

Permalink
Minor changes to reminders on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
federicoiosue committed May 31, 2015
1 parent eb1e1e1 commit a0a0526
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ private boolean importSettings(File backupDir) {
private void resetReminders() {
Log.d(Constants.TAG, "Resettings reminders");
for (Note note : DbHelper.getInstance().getNotesWithReminderNotFired()) {
ReminderHelper.addReminder(OmniNotes.getAppContext(), note);
ReminderHelper.addReminder(OmniNotes.getAppContext(), note, false);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@
import android.os.AsyncTask;
import android.text.TextUtils;
import android.util.Log;
import it.feio.android.omninotes.OmniNotes;
import it.feio.android.omninotes.db.DbHelper;
import it.feio.android.omninotes.models.Attachment;
import it.feio.android.omninotes.models.Note;
import it.feio.android.omninotes.utils.Constants;
import it.feio.android.omninotes.utils.ReminderHelper;
import it.feio.android.omninotes.utils.StorageHelper;
import org.apache.commons.io.FilenameUtils;

Expand Down Expand Up @@ -145,4 +148,14 @@ private void onUpgradeTo480() {
}
}


/**
* Reschedule reminders after upgrade
*/
private void onUpgradeTo482() {
for (Note note : DbHelper.getInstance().getNotesWithReminderNotFired()) {
ReminderHelper.addReminder(OmniNotes.getAppContext(), note, false);
}
}

}

0 comments on commit a0a0526

Please sign in to comment.