Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51f24302 authored by Jeff Brown's avatar Jeff Brown
Browse files

Support toast cancellation.

Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
parent 13a0271c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -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
        }
    }
    
    /**