Fix the cancel button on the publish comments screen

It wasn't working because we didn't initialize the field,
so the click listener wasn't able to identify the sender
of the event, and thus didn't call the proper method.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-01-16 19:11:02 -08:00
parent 3cd1a9e395
commit 606f04fdf7

View File

@@ -106,7 +106,7 @@ public class PublishCommentScreen extends AccountScreen implements
send.addClickListener(this);
buttonRow.add(send);
final Button cancel = new Button(Util.C.buttonPublishCommentsCancel());
cancel = new Button(Util.C.buttonPublishCommentsCancel());
cancel.addClickListener(this);
buttonRow.add(cancel);
}