SentineL
SentineL

Reputation: 4732

"Changes made" notifycation

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

Answers (1)

Stack User 5674
Stack User 5674

Reputation: 1588

you can avoid this overriding onclose() and setdirty(false).

public boolean onClose() {
        setDirty(false);
        return super.onClose();
    }

Upvotes: 3

Related Questions