summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/Toast.java
Commit message (Collapse)AuthorAgeFilesLines
* Add @ResourceInt annotations on APIsTor Norbye2015-02-181-2/+3
| | | | Change-Id: I119cc059c2f8bd98fd585fc84ac2b1b7d5892a08
* Show screen pinning toasts on all usersJason Monk2014-10-231-0/+8
| | | | | Bug: 17657660 Change-Id: I964a210e7fb105e9494a7ab7f383aa9d141ba136
* Use Op package name when creating toastsTony Hill2014-09-161-1/+3
| | | | | | | | | | 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
* Remove unused imports from frameworks/base.John Spurlock2013-11-201-1/+0
| | | | Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
* resolved conflicts for merge of f1dd32c8 to masterJohn Spurlock2013-10-141-67/+2
|\ | | | | | | Change-Id: Ied96bfce952fa95eeceb1b8cf64e53830d4d03ac
| * Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.John Spurlock2013-10-141-67/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add typedefs and nullness annotations.Tor Norbye2013-09-111-3/+13
|/ | | | | | | | | | | 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
* Allow configuration of Toast gravity settingsJose Lima2013-08-091-2/+4
| | | | | | | | | | 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
* Hideybars feature confirmation toast bar.John Spurlock2013-05-281-3/+69
| | | | | | | | | | | | | | | | | 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
* Fix NPE when showing Toast from system process.Craig Mautner2012-12-051-2/+5
| | | | | | | | | The system process has no ApplicationContext and consequently was returning null. Use the base Context in these cases. Bug 7673699 fixed. Change-Id: Ie2ab856bb0baefff44775a12bef7802320f72656
* Merge "Add support for "-rtl" in resources" into jb-mr1-devFabrice Di Meglio2012-09-041-1/+1
|\
| * Add support for "-rtl" in resourcesFabrice Di Meglio2012-08-231-1/+1
| | | | | | | | | | | | - fix bug #7035019 Need to have "-rtl" support for Resource Change-Id: Ic82145c2ac672729d8a6c695a5f343276a1a0a2c
* | Use correct WindowManager for Toast.Craig Mautner2012-08-281-2/+7
|/ | | | | | | | | | | | | | | | | | 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
* Refactor for multi-display support.Jeff Brown2012-08-191-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Improve Toast RTL supportFabrice Di Meglio2012-07-301-6/+3
| | | | | | - simplier code Change-Id: Ifbe8545697404ed6e9f508103bd9cf1e7efb5746
* Improve Toast RTL supportFabrice Di Meglio2012-07-301-2/+2
| | | | | | - use Locale from Context Change-Id: Ic93bb6e3f9310d54d879c20754c9310154940565
* Make Toast widget aware of layout directionFabrice Di Meglio2012-06-071-1/+8
| | | | | | | - 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
* Support toast cancellation.Jeff Brown2012-05-201-1/+6
| | | | Change-Id: Idd00b9c6e3049822e437afaf56351575a5c167df
* docs: add developer guide cross-references, Project ACRE, Round 2Joe Fernandez2011-10-141-0/+7
| | | | Change-Id: I39a534ae3a2a34b4dabc333a09961012ef911d3e
* Don't set a Toast's view to null when enqueued several times.Romain Guy2011-01-211-1/+2
| | | | | | Bug #3374386 Change-Id: I0fc6f96b37c8866ad1e890813054dafbaf2cc13e
* Fix toasts.Romain Guy2011-01-191-81/+78
| | | | Change-Id: I11916c55e8092169d2ab28c100bc7a152d60d432
* Don't let toasts "leak" Context instances.Romain Guy2011-01-191-45/+51
| | | | Change-Id: I05a936579e60360cdb3453ad5cbcead8ca03191a
* 2763342 Toasts do not fire accessibility eventsSvetoslav Ganov2010-10-051-0/+18
| | | | Change-Id: I11f2ca9a0875d3d00eb78fd53b882f8ac5c21a4d
* Cleanup Toast.java.Romain Guy2009-07-081-42/+35
|
* Accessibility feature - framework changes (replacing 698, 699, 700, 701 and ↵svetoslavganov2009-05-141-2/+3
| | | | merging with the latest Donut)
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+399
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-399/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+399