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

Bug #3374386

Change-Id: I0fc6f96b37c8866ad1e890813054dafbaf2cc13e
This commit is contained in:
Romain Guy
2011-01-21 12:31:53 -08:00
parent 99d49118b8
commit 2152ca58c2

View File

@@ -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;
}
}
}