Skip to content

Commit cdba3cb

Browse files
committed
Move log call to the method it refers
1 parent 6271e80 commit cdba3cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/gnucash/android/export/ExportAsyncTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ protected void onPostExecute(Boolean exportSuccessful) {
185185
reportSuccess();
186186

187187
if (mExportParams.shouldDeleteTransactionsAfterExport()) {
188-
Log.i(TAG, "Backup and deleting transactions after export");
189188
backupAndDeleteTransactions();
190189
refreshViews();
191190
}
@@ -401,6 +400,7 @@ private String stripPathPart(String fullPathName) {
401400
* and deletes all non-template transactions in the database.
402401
*/
403402
private void backupAndDeleteTransactions(){
403+
Log.i(TAG, "Backup and deleting transactions after export");
404404
GncXmlExporter.createBackup(); //create backup before deleting everything
405405
List<Transaction> openingBalances = new ArrayList<>();
406406
boolean preserveOpeningBalances = GnuCashApplication.shouldSaveOpeningBalances(false);

0 commit comments

Comments
 (0)