Skip to content

Commit

Permalink
Backup before deleting scheduled actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rivaldi8 committed Feb 12, 2018
1 parent 8310451 commit 068988f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import org.gnucash.android.model.Transaction;
import org.gnucash.android.ui.common.FormActivity;
import org.gnucash.android.ui.common.UxArgument;
import org.gnucash.android.util.BackupManager;

import java.text.DateFormat;
import java.util.Date;
Expand Down Expand Up @@ -116,6 +117,8 @@ public void onDestroyActionMode(ActionMode mode) {
public boolean onActionItemClicked(ActionMode mode, MenuItem item) {
switch (item.getItemId()) {
case R.id.context_menu_delete:
BackupManager.backupActiveBook();

for (long id : getListView().getCheckedItemIds()) {

if (mActionType == ScheduledAction.ActionType.TRANSACTION) {
Expand Down

0 comments on commit 068988f

Please sign in to comment.