Update Toast documentation

to explicitly callout the 2-line limit
Note: more information can be found in
https://developer.android.com/guide/topics/ui/notifiers/toasts
which is also linked in the documentation but
could be missed.

Test: manual
Fixes: 207767563
Change-Id: Icc7fbf6fddf101bd2422bbeab04e0da8084c6698
This commit is contained in:
Beverly
2021-12-21 14:11:08 -05:00
parent b413b9a108
commit 5e12fbeae1

View File

@@ -74,6 +74,9 @@ import java.util.List;
* <p>
* Note that toasts being sent from the background are rate limited, so avoid sending such toasts
* in quick succession.
* <p>
* Starting with Android 12 (API level 31), apps targeting Android 12 or newer will have
* their toasts limited to two lines.
*
* <div class="special reference">
* <h3>Developer Guides</h3>