Support toast cancellation.

Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
This commit is contained in:
Jeff Brown
2012-05-20 12:07:26 -07:00
parent 13a0271cb8
commit 51f2430217

View File

@@ -120,7 +120,12 @@ public class Toast {
*/
public void cancel() {
mTN.hide();
// TODO this still needs to cancel the inflight notification if any
try {
getService().cancelToast(mContext.getPackageName(), mTN);
} catch (RemoteException e) {
// Empty
}
}
/**