am 51f24302: Support toast cancellation.

* commit '51f2430217a377bc2913862d98a97d0087914540':
  Support toast cancellation.
This commit is contained in:
Jeff Brown
2012-05-20 21:53:32 -07:00
committed by Android Git Automerger

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
}
}
/**