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

Commit 3ec5724d authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

am 51f24302: Support toast cancellation.

* commit '51f24302':
  Support toast cancellation.
parents 72669b5f 51f24302
Loading
Loading
Loading
Loading
+6 −1
Original line number Original line Diff line number Diff line
@@ -120,7 +120,12 @@ public class Toast {
     */
     */
    public void cancel() {
    public void cancel() {
        mTN.hide();
        mTN.hide();
        // TODO this still needs to cancel the inflight notification if any

        try {
            getService().cancelToast(mContext.getPackageName(), mTN);
        } catch (RemoteException e) {
            // Empty
        }
    }
    }
    
    
    /**
    /**