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

Commit 2152ca58 authored by Romain Guy's avatar Romain Guy
Browse files

Don't set a Toast's view to null when enqueued several times.

Bug #3374386

Change-Id: I0fc6f96b37c8866ad1e890813054dafbaf2cc13e
parent 99d49118
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -301,6 +301,8 @@ public class Toast {
        final Runnable mHide = new Runnable() {
            public void run() {
                handleHide();
                // Don't do this in handleHide() because it is also invoked by handleShow()
                mNextView = null;
            }
        };

@@ -407,7 +409,6 @@ public class Toast {
                }

                mView = null;
                mNextView = null;
            }
        }
    }