openintents / safe

OI Safe
http://www.openintents.org/safe
44 stars 22 forks source link

fix #1

Closed chaideos closed 12 years ago

chaideos commented 12 years ago

This contains a patch for Issue 516 which describes how toasts are displayed even when the user exits the application.

The reason for that is that the Toasts are created using Toast.makeText and in order to hide/dismiss them, the cancel method needs to be called in the onPause() method. I've thus created instance variables for the Toast and then called the show() and cancel() methods on them at the appropriate time.

Please review the patch and let me know whether any changes are required to be done.