mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Simplify ReplayableActivity
This commit is contained in:
@@ -42,8 +42,6 @@ abstract public class ReplayableActivity extends Activity
|
||||
redoList.push(last);
|
||||
last.undo();
|
||||
showToast(last.getUndoStringId());
|
||||
|
||||
onCommandExecuted(last);
|
||||
}
|
||||
|
||||
protected void redo()
|
||||
@@ -73,13 +71,6 @@ abstract public class ReplayableActivity extends Activity
|
||||
if (clearRedoStack) redoList.clear();
|
||||
|
||||
command.execute();
|
||||
onCommandExecuted(command);
|
||||
|
||||
showToast(command.getExecuteStringId());
|
||||
}
|
||||
|
||||
protected void onCommandExecuted(Command command)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user