You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm adding a crop\tilt activity to my program, and when I evoke the undo method, I wish that the undo will happen according to the sequence of events.
In order to do so, I'm trying to create an array which will add a 0 to it when the user have either used the text, brush and eraser.
problem is, that when the eraser or brush is active, I can't reach my photoEditorView.onClickListener
//NOT WORKING WHILE BRUSH IS ACTIVE
imageView.setOnClickListener(view -> {
if(brushIsActive){
System.out.println("ABOUT TO ADD 0");
undo_array[undo_it++] = 0;
System.out.println("ADDED 0 TO UNDO ARRAY");
}
});
Basically all I need is something like this:
if (***brush stroke was made***){
undo_array[undo_it++] = 0;
}
Any idea?
The text was updated successfully, but these errors were encountered:
I'm adding a crop\tilt activity to my program, and when I evoke the undo method, I wish that the undo will happen according to the sequence of events.
In order to do so, I'm trying to create an array which will add a 0 to it when the user have either used the text, brush and eraser.
problem is, that when the eraser or brush is active, I can't reach my photoEditorView.onClickListener
Basically all I need is something like this:
Any idea?
The text was updated successfully, but these errors were encountered: