Minor style changes

This commit is contained in:
2017-11-15 21:54:30 -06:00
parent ecf3086aef
commit 0dc46d02a4
2 changed files with 10 additions and 12 deletions

View File

@@ -21,11 +21,10 @@ package org.isoron.uhabits.core.ui.screens.habits.show;
import android.support.annotation.*;
import org.isoron.uhabits.core.commands.CommandRunner;
import org.isoron.uhabits.core.commands.DeleteHabitsCommand;
import org.isoron.uhabits.core.commands.*;
import org.isoron.uhabits.core.models.*;
import org.isoron.uhabits.core.tasks.*;
import org.isoron.uhabits.core.ui.callbacks.OnConfirmedCallback;
import org.isoron.uhabits.core.ui.callbacks.*;
import java.io.*;
import java.util.*;
@@ -92,8 +91,7 @@ public class ShowHabitMenuBehavior
screen.showDeleteConfirmationScreen(() -> {
commandRunner.execute(new DeleteHabitsCommand(habitList, selected),
null);
screen.showMessage(Message.HABIT_DELETED);
screen.endActivity();
screen.close();
});
}
@@ -113,7 +111,7 @@ public class ShowHabitMenuBehavior
void showDeleteConfirmationScreen(
@NonNull OnConfirmedCallback callback);
void endActivity();
void close();
}
public interface System