summaryrefslogtreecommitdiff
path: root/core/java/android/widget/QuickContactBadge.java
Commit message (Collapse)AuthorAgeFilesLines
* fix google widget timing issueRuoyao Liu2021-07-301-2/+3
| | | | | | | | | | | | | | | | If the user of QuckContactBadge widget do not assign extras, widget will create one, wrappter URI data in it and use this extra for all requests,if multiple click events happened in short time it may cause a bug as the first query finished and URI data will be removed from extras, but the next query already sent, so when the second query complete, there is no URI in extra and result in null pointer exception. Don't remove the URI from extra directly,but copy the extra to another one and send it out after remove the URI, so the URI null pointer exception wouldn't happened anymore. Change-Id: I4ef56d29883f79f115e4b9523ced0abfd0978fd7 Bug: 195089668
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-091-1/+1
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I41e12e425284e74561c6b61663241df364ae54a1 Merged-In: I41e12e425284e74561c6b61663241df364ae54a1
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-211-0/+2
| | | | | | | | | | | | | | | | | For packages: android.widget This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Idf7ccc7a850fa984ea16f91cdd70159087274e5c Merged-In: Ic61019b1df85448a158fc2ba55c326353222c6b9
* Fix import statements in android.widget package.Aurimas Liutikas2016-10-111-2/+2
| | | | | | | Additionally this CL removes spaces at the end of the line. Test: code still compiles. Change-Id: I1ce98b4e70aa3ae614f87966c3bc6181fa4389a4
* Fix a few view ctors to not call Looper.myLooperJohn Reck2015-10-201-1/+7
| | | | | Bug: 25116730 Change-Id: I4e394c281feef6f7987433298d66f2df11352416
* Invalidate when Drawable.setState() returns trueAlan Viverette2015-09-041-3/+5
| | | | | | | | Ensures views that manage drawables follow the contract set forth in the Drawable.setState() documentation. Bug: 23792020 Change-Id: I4e5a449cd6535487873fd8443da50555c38e8ed9
* QuickContacts can prioritize phone mimetype. Part1Brian Attwell2015-02-261-6/+14
| | | | | | | | | Define the ContactsContract for a new QuickContact extra. This can be used to tell QuickContacts to prioritize a given mimetype. Bug: 18391003 Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
* First quick implementation of auto assist data.Dianne Hackborn2015-02-061-11/+2
| | | | | | | | | | | | | | Introduce new AssistData class that contains all data the framework automatically generates for assist. Currently populated with a very simple tree structure representing the app's view hierarchy. Reworked how we populate the class name for accessibility info, so this is provided through a new method call on View that subclasses can override. This method is also used to populate the class name in AssistData. Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
* Fix accessibility delegationAlan Viverette2015-01-071-4/+6
| | | | | | | | | | | | | | | Ensures that delegate code is run last. Previously, calling the super method from an accessibility delegate set on a widget would only run code in the widget's parent. Next, the delegate code would run. Finally, the widget's code would run. As a result, the widget code would override any data supplied by the delegate. By moving all overridden code to internal methods, we ensure that the call chain for super includes the widget's parent code followed by the widget's code. The delegate code will always run last. BUG: 17641433 Change-Id: Ib9d403156c1fc4fb04f65f3c126d1277a44b3740
* Fix switch & slider anim, make View drawable hotspot API publicAlan Viverette2014-06-181-3/+2
| | | | | BUG: 15287810 Change-Id: Ic7a9549dc1ba8afd07e9a196371ed349a54aaf2f
* Support hotspots in View drawablesAlan Viverette2014-06-131-0/+10
| | | | | BUG: 15285217 Change-Id: Iad44454fe16ac27ed20b9c17ae2df69649339eed
* Add setOverlay method to QuickContactsBadgeYorke Lee2014-04-281-0/+10
| | | | | | | | | Allow apps to disable/configure their own overlay to be used on the QuickContactsBadge Bug: 13747208 Change-Id: Id84c6ee1ebde6ce17477c12d22522ca19c27ea9b
* Add APIs for obtaining themed Drawable from Theme, ContextAlan Viverette2014-02-031-1/+1
| | | | | BUG: 12611005 Change-Id: Ic0057be4e4c2d0c61ce02a019b3f7d0625e3a016
* am 7d641de1: am a14f25c5: am bf3acff1: Merge "Don\'t run the async query if ↵Deepanshu Gupta2013-10-201-5/+7
|\ | | | | | | | | | | | | being rendered in EditMode." into klp-dev * commit '7d641de1f6ca4af977233220590d1e74be970dab': Don't run the async query if being rendered in EditMode.
| * Don't run the async query if being rendered in EditMode.Deepanshu Gupta2013-10-181-5/+7
| | | | | | | | | | | | | | | | Skips the QueryHandler if the QuickContactBadge widget is being rendered in edit mode. Bug: 11288332 Change-Id: I04b115292f61afc7f515787fa4a396bc6ea56a16
* | Add View constructor that supplies a default style resourceAlan Viverette2013-09-091-2/+7
|/ | | | | | | Also updates the constructor of every class that extends View. BUG: 10676369 Change-Id: Ifaf27bf82028d180afa4931c0e906df88d858ac3
* Fix the build breakage due to incorrect javadoc linkYorke Lee2013-01-151-2/+2
| | | | Change-Id: I1789f7e324a06c45c1be4088e9bd4e5cd6879aee
* Allow supplying extras when assigning QuickContactsBadgeYorke Lee2013-01-141-5/+58
| | | | | | | | | | | Add assignContactFromEmail(String, boolean, Bundle) and assignContactFromPhone(String, boolean, Bundle) that allow the caller to provide a bundle of extras to pre-populate the ContactEditorFragment with if a contact is not found with the requested email address or phone number. Bug: 7038382 Change-Id: Ib77fa484e1c39cb60d7acc27efe3a3fcf3fee62f
* AccessibilityEvent/AccessibilityNodeInfo class name property should be set ↵Svetoslav Ganov2012-01-171-0/+14
| | | | | | | | | | | | | | | to only framework classes. AccessibilityEvent and AccessibilityNodeInfo have a property className which is set to the source Java class. This is problematic since leads to leaking private classes which would allow an accessibility service to load classes from other packages. This is strongly undesirable since not trusted code can be loaded, and hence executed, in the accessibility service. To address that the class name is set to the most concrete framework class extended by the info/event source. bug:5878943 Change-Id: I7b3114ece8772ea2773f5151e21b8a6f2006882a
* Don't perform query if QuickContactBadge has been initialized viaDaniel Lehmann2011-08-071-75/+30
| | | | | | | | | | | assignContactUri Also changes: - Remove handling of mMode, as QuickContact now ignores this anyway - Don't draw the overlay-triangle if no action can be performed Bug:5132023 Change-Id: I8d6f8df9caf140fdade8683bd7b22d53c28994f4
* QuickContactBadge shows its pressed stateGilles Debunne2011-01-121-1/+12
| | | | Change-Id: I7dfd02cc5c4e0a5ba6a7d65c2c61d650f5aa9249
* New QuickContactBadge holo style.Gilles Debunne2011-01-111-4/+36
| | | | | | | The background is removed. A blue triangle is displayed on the lower right corner. Now theme dependant. Change-Id: I984ac5185039569bd378af9f15b59d11fd1b5c8f
* am 3f6e4d56: am 1cc86da6: Merge "Don\'t fall through from ↵Makoto Onuki2010-09-071-0/+3
|\ | | | | | | | | | | | | | | | | TOKEN_EMAIL_LOOKUP" into gingerbread Merge commit '3f6e4d56bba393ac556a672202e00bc417784ce8' * commit '3f6e4d56bba393ac556a672202e00bc417784ce8': Don't fall through from TOKEN_EMAIL_LOOKUP
| * Don't fall through from TOKEN_EMAIL_LOOKUPMakoto Onuki2010-09-071-0/+3
| | | | | | | | Change-Id: Ifc08f26ba93496cfa53cd83c7df0e986ea4ece4b
* | Clean up the fallback state of QuickContactEvan Millar2010-04-141-0/+11
|/ | | | | | | | -Show the generic avatar by default, until otherwise set -Add padding to the nobadge asset so that it will be square -Remove states from the nobadge asset since it is not actionable Change-Id: Ide7da78782a0db9047de52af6f9c1f654fc6a1b5
* QuickContactBadge: Make lookup key query asynchronous.Tadashi G. Takaoka2009-10-081-8/+26
| | | | Internal Bug: http://b/2130588
* FastTrack->QuickContactEvan Millar2009-09-301-3/+12
| | | | Change-Id: I98f2db38e6402bdbe47b941d82c8f33863d1863e
* Remove unused api in QuickContact.java and fix the build.Evan Millar2009-09-301-9/+0
| | | | Change-Id: I46a6d39c8176806c2b5570c75b59ff9631ee53f1
* Change FasttrackBadgeWidget->QuickContactBadge and make public.Evan Millar2009-09-301-0/+272
Change-Id: I9d12beeba16c2f64742b4a99d0da4ceb73525b5b