History log of /frameworks/base/core/java/android/widget/Toast.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
70f0d229c02b91d7b987c4972b9b08bb9dcd04b5 11-Apr-2016 Robert Carr <racarr@google.com> Add WindowManager side timeout for toasts.

If the thread a toast is shown on is shut down,
the attempt to post the hide message to it's handler
will fail and it will never request removal. If this was
only some application background thread we will also not
receive a death notification. It seems best to use a timeout
to ensure we don't need the clients cooperation, espescially
as toasts can keep the screen on.

Bug: 21693547
Change-Id: I1d6e54ded5b9e2050daedc4d263e2e21fbe69862
/frameworks/base/core/java/android/widget/Toast.java
7b9c912f536925ac6ec43935d6e97506851b33d6 31-May-2013 Tor Norbye <tnorbye@google.com> Add @ResourceInt annotations on APIs

Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
/frameworks/base/core/java/android/widget/Toast.java
a585268aff94b620b2c22e9ba3ae1163bb5dc8a8 23-Oct-2014 Jason Monk <jmonk@google.com> Show screen pinning toasts on all users

Bug: 17657660
Change-Id: I964a210e7fb105e9494a7ab7f383aa9d141ba136
/frameworks/base/core/java/android/widget/Toast.java
929442d50961d36f5b3e5dacf48ab279a2209fb6 16-Sep-2014 Tony Hill <tonyhill@motorola.com> Use Op package name when creating toasts

Some components may be running in processes other than their
base package using android:process directives. The op package
name must therefore be used otherwise the AppOps check will fail
due to a mismatch between the base package name and the UID.

Bug: 17431423
Change-Id: I429aa46066935b964151a2ec0854f0e14c117c4e
/frameworks/base/core/java/android/widget/Toast.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/android/widget/Toast.java
cf2d725b554d1af322e3f2139d52f08b00a47ad3 14-Oct-2013 John Spurlock <jspurlock@google.com> resolved conflicts for merge of f1dd32c8 to master

Change-Id: Ied96bfce952fa95eeceb1b8cf64e53830d4d03ac
f1a36648ca099d7ffa8a19e403673820d4b8417a 12-Oct-2013 John Spurlock <jspurlock@google.com> Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.

Migrate transient bar mode to IMMERSIVE_STICKY, and
introduce new behavior for IMMERSIVE: namely the
opaque bars are revealed by clearing the flags on swipe.

Remove low-profile optimization that confuses api demos
and other apps using low-profile as a signal.

TransientNavigationConfirmation renamed to
ImmersiveModeConfirmation, and its associated resources,
since the confirmation is now shown when the nav bar is
shown in either of the two immersive modes.

Remove unused Toast.makeBar and associated hidden framework
bits now that the confirmation uses a cling instead.

Bug:11062108
Change-Id: Iae49d31973940b9bee9f5b1827756db5eaa76aa3
/frameworks/base/core/java/android/widget/Toast.java
d9273d6f289d9b55da3fd0db2f659fdfb48106a8 31-May-2013 Tor Norbye <tnorbye@google.com> Add typedefs and nullness annotations.

This changeset adds in typedef annotations (custom annotations
marked with @IntDef) for various int parameters and return values
in the API. It also adds nullness annotations for cases where the
documentation explicitly mentioned null policy, or where it was
blindingly obvious from the context. Also fixed some typos in the
documentation.

Change-Id: Ica27c01368895818e26237544edd8483007155bb
/frameworks/base/core/java/android/widget/Toast.java
08bef371fa2bd7839da8a65d8c2e788c647132ae 08-Aug-2013 Jose Lima <joselima@google.com> Allow configuration of Toast gravity settings

The default gravity value for Gravity was set by the code in Toast.java,
making it impossible to fully customize Toasts systemwide by using overlays.
Toast.java was changed to read this default value from a resource configuration
file, so we can then override it via an overlay.

Bug: 9799950
Change-Id: I26a914a9aa5e37d3ab0f4cf60b41de5ac14b4a87
/frameworks/base/core/java/android/widget/Toast.java
dcf4f2146097eeae6991e6131e5ae96b33fbeda9 21-May-2013 John Spurlock <jspurlock@google.com> Hideybars feature confirmation toast bar.

Enhance Toast to support new standard toast bar style, similar
to the undo bar in Gmail. Toast bars can be interactive,
and can have a single action. Add a new toast duration to
indicate persistent toasts (no auto-hide delay).

Use the new toast bar to implement a feature hint when hiding
the navigation bar in hideybars mode.

Per UX, the feature confirmation bar can also be dismissed on
any outside touch as long as the user confirmed it using the
OK button at least once globally.

Bug: 8754108
Change-Id: Iaa85d3b4da7ada1952a562f1e31de04380f5d587
/frameworks/base/core/java/android/widget/Toast.java
54ae2f389cd0d9b9a558b5f61e096aec6215966b 05-Dec-2012 Craig Mautner <cmautner@google.com> Fix NPE when showing Toast from system process.

The system process has no ApplicationContext and consequently was
returning null. Use the base Context in these cases.

Bug 7673699 fixed.

Change-Id: Ie2ab856bb0baefff44775a12bef7802320f72656
/frameworks/base/core/java/android/widget/Toast.java
035ce2ca92742894f7f906c93d7d217c647aa19a 05-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add support for "-rtl" in resources" into jb-mr1-dev
b6ee2a24292120f95bb5da4539a0672280544be3 28-Aug-2012 Craig Mautner <cmautner@google.com> Use correct WindowManager for Toast.

The WindowManager retrieved from the activity Context with
getSystemService is incorrect for a Toast. Because it contains
a parent window when addView is called its LayoutParams.token
is set to the value of the parent window. Then when an Activity
is dismissed WindowManagerGlobal.closeAll() sees the incorrect
token and incorrectly closes the Toast.

This fix uses the application Context instead of the activity
Context to retrieve a WindowManager with no parent window. This
leaves the token unchanged and keeps from dismissing the toast when
the activity is closed.

Fixes bug 7048792.

Change-Id: I92c3095d8fabd6e9e4206e9bc8e917885ab322a9
/frameworks/base/core/java/android/widget/Toast.java
5f7979993979466c79ab4f38d83c6f2aca361662 16-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Add support for "-rtl" in resources

- fix bug #7035019 Need to have "-rtl" support for Resource

Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
/frameworks/base/core/java/android/widget/Toast.java
98365d7663cbd82979a5700faf0050220b01084d 20-Aug-2012 Jeff Brown <jeffbrown@google.com> Refactor for multi-display support.

Split WindowManagerImpl into two parts, the WindowManager
interface implementation remains where it is but the global
communications with the window manager are now handled by
the WindowManagerGlobal class. This change greatly simplifies
the challenge of having separate WindowManager instances
for each Context.

Removed WindowManagerImpl.getDefault(). This represents the
bulk of this change. Most of the usages of this method were
either to perform global functions (now handled by WindowManagerGlobal)
or to obtain the default display (now handled by DisplayManager).

Explicitly associate each new window with a display and make
the Display object available to the View hierarchy.

Add stubs for some new display manager API features.

Start to split apart the concepts of display id and layer stack.
since they operate at different layers of abstraction.
While it's true that each logical display uniquely corresponds to a
surface flinger layer stack, it is not necessarily the case that
they must use the same ids. Added Display.getLayerStack()
and started using it in places where it was relatively easy to do.

Change-Id: I29ed909114dec86807c4d3a5059c3fa0358bea61
/frameworks/base/core/java/android/widget/Toast.java
025f9602ee99ba5883512a97f2a46f8132ece5d6 31-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Improve Toast RTL support

- simplier code

Change-Id: Ifbe8545697404ed6e9f508103bd9cf1e7efb5746
/frameworks/base/core/java/android/widget/Toast.java
bf0bc63defd8bb76278ecb1df5ebf5272fd00047 30-Jul-2012 Fabrice Di Meglio <fdimeglio@google.com> Improve Toast RTL support

- use Locale from Context

Change-Id: Ic93bb6e3f9310d54d879c20754c9310154940565
/frameworks/base/core/java/android/widget/Toast.java
b4946343e8027925a92f1353af5ad154a84e425f 08-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Make Toast widget aware of layout direction

- Toast will resolve its gravity (when START / END) from the System locale
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I3fe810b87d708f2ee80ca6258ad25ab32ae85d82
/frameworks/base/core/java/android/widget/Toast.java
51f2430217a377bc2913862d98a97d0087914540 20-May-2012 Jeff Brown <jeffbrown@google.com> Support toast cancellation.

Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
/frameworks/base/core/java/android/widget/Toast.java
558459fe85f56f29a6ed6a4d0adb4a0bd6665884 14-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross-references, Project ACRE, Round 2

Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
/frameworks/base/core/java/android/widget/Toast.java
2152ca58c256f4e7d8a5d895eb96cdc2d2580a05 21-Jan-2011 Romain Guy <romainguy@google.com> Don't set a Toast's view to null when enqueued several times.
Bug #3374386

Change-Id: I0fc6f96b37c8866ad1e890813054dafbaf2cc13e
/frameworks/base/core/java/android/widget/Toast.java
cf3dd6bc6903282077c0044d1fdacba8f45e0886 20-Jan-2011 Romain Guy <romainguy@google.com> Fix toasts.

Change-Id: I11916c55e8092169d2ab28c100bc7a152d60d432
/frameworks/base/core/java/android/widget/Toast.java
c4d09f2b69b82201ce48dbe29c4d8bd85bdda92a 19-Jan-2011 Romain Guy <romainguy@google.com> Don't let toasts "leak" Context instances.

Change-Id: I05a936579e60360cdb3453ad5cbcead8ca03191a
/frameworks/base/core/java/android/widget/Toast.java
cd2613ab7b0f4f967c1d0388e1267ad01db787a8 06-Oct-2010 Svetoslav Ganov <svetoslavganov@google.com> 2763342 Toasts do not fire accessibility events

Change-Id: I11f2ca9a0875d3d00eb78fd53b882f8ac5c21a4d
/frameworks/base/core/java/android/widget/Toast.java
0420cc7fed645cfa30f8142d7cd1a53f6b0b33d3 08-Jul-2009 Romain Guy <romainguy@android.com> Cleanup Toast.java.
/frameworks/base/core/java/android/widget/Toast.java
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
/frameworks/base/core/java/android/widget/Toast.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/Toast.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/widget/Toast.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/widget/Toast.java