Reputation: 4732
in my application I have some screens with focusable custom buttons, wich pushing another screens with another focusable custom buttons and so on. When I press blackberry's "back" button anter pushing 2-3 screens, it sometimes appear notification with message "Changes made", and options "save", "discard" and "cancel". Why is this? How can I avoid it? all I did is moved focus and pressed buttons.
Upvotes: 2
Views: 340
Reputation: 1588
you can avoid this overriding onclose() and setdirty(false).
public boolean onClose() {
setDirty(false);
return super.onClose();
}
Upvotes: 3