Support toast cancellation.
Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user