Commit Graph

6678 Commits

Author SHA1 Message Date
Vladislav Kaznacheev
47f333afa8 Custom pointer icon for DatePicker and TimePicker
Bug: 31652821
Change-Id: I512693a48c8c2f8ca96983efaaae3af138827ee7
2016-09-23 10:32:53 -07:00
Andrei Stingaceanu
1136e450e3 Merge "TextView - lazy GestureDetector creation for ClickableSpans" 2016-08-23 17:00:38 +00:00
Andrei Stingaceanu
1fd8ea75a7 TextView - lazy GestureDetector creation for ClickableSpans
Moves the ClickableSpan GestureDetector creation into
TextView#onTouchEvent only on ACTION_DOWN if a ClickableSpan
was targeted. This allows constructing TextViews outside the
UI Thread.

Bug: 30929474
Change-Id: I7f4442f0faee51d3c395fbde1ce32bdf909a18fb
2016-08-22 13:58:58 +01:00
Chris Banes
b62db80a04 Fix NPE in ForwardingListener - fw edition
Caused by a postDelayed() and lack of
null check

BUG: 29992695
Change-Id: If2f43736505e0f738e9d0cf941a1f2d828cd8d5d
2016-08-22 10:16:21 +00:00
Andrei Stingaceanu
3df24c31bb TextView - fix ClickableSpans always triggering on touch up
* introduce GestureDetector to TextView
* completely remove link click functionality from
  LinkMovementMethod (the interface does not state it
  provides click functionality)
* intercept onSingleTapConfirmed and trigger onClick on the
  link if it exists (simplified duplicated functionality)
* renamed a bunch of LinkMovementMethod variables because
  eyes hurt

Bug: 23692690
Change-Id: Idaf3f3391328207f42521235fb5deb1a11c66aaa
2016-08-12 10:21:08 +00:00
Alan Viverette
d596b26f12 Use localized hour when announcing selection for accessibility am: 66a8562c58 am: fde654fb97
am: 4922fdc35f

Change-Id: I769d1cc8b25af34b4a08fba27e62db09a22412bc
2016-08-10 22:22:43 +00:00
Alan Viverette
4922fdc35f Use localized hour when announcing selection for accessibility am: 66a8562c58
am: fde654fb97

Change-Id: I8a07c4f9af6bfc31a2510dc5cc5aa7b763d77bc0
2016-08-10 22:11:10 +00:00
Alan Viverette
fde654fb97 Use localized hour when announcing selection for accessibility
am: 66a8562c58

Change-Id: Ieffd33d1e33fdd38e2383396b18dce8031fb1538
2016-08-10 22:04:59 +00:00
Alan Viverette
4a939cc73d Use symmetric conditions for advertising and performing ACTION_SCROLL am: 47be54bb78 am: fd855c17b1
am: 56a05f464e

Change-Id: I8b2e6afbd3aa8de0234db1abd7bf21cdb4b369bc
2016-08-10 21:42:47 +00:00
Alan Viverette
56a05f464e Use symmetric conditions for advertising and performing ACTION_SCROLL am: 47be54bb78
am: fd855c17b1

Change-Id: I6efe57707e22099409869c3e7c42bfa12a081ff4
2016-08-10 21:20:05 +00:00
Siyamed Sinir
05af162ab5 Use SpannableFactory for TextView.removeSuggestionSpans
TextView.removeSuggestionSpans function was creating an instance of
Spannable using the constructor. This CL changes it to use
Spannable.Factory to create the instance.

Bug: 30709627
Change-Id: I190b68c5937e7194622d2a01de78143c1ce469ac
2016-08-09 16:19:52 +00:00
Alan Viverette
47be54bb78 Use symmetric conditions for advertising and performing ACTION_SCROLL
Bug: 30186372
Change-Id: Ieea0cd539049990ffa98edabb2a7b026445dd14a
2016-08-05 16:48:19 -04:00
Alan Viverette
66a8562c58 Use localized hour when announcing selection for accessibility
Bug: 30451273
Change-Id: I04276dc12d479ff5336799ebb32ff4cf5d66068a
2016-08-04 13:24:14 -04:00
Yigit Boyar
bb1115f1ff Target API check for margin params fix am: 2dd20a61e9 am: 6efd207022
am: 5eede8910b

Change-Id: I748d223c4dcec4f0234b0e4e808ae982efbd0bd5
2016-08-03 19:46:33 +00:00
Kirill Grouchnikov
95288e41a5 Merge "Document exception throwing in TabHost" 2016-08-03 13:16:08 +00:00
Yigit Boyar
5eede8910b Target API check for margin params fix am: 2dd20a61e9
am: 6efd207022

Change-Id: Ic05edff9014a74cd543d0eef03ba8862a198613a
2016-08-02 20:57:22 +00:00
Yigit Boyar
2dd20a61e9 Target API check for margin params fix
Prior to N, our widgets were not converting MarginLayoutParams
properly between ViewGroups. The fix intrudced some issues in
older apps as the broken conversion code would hide developer
errors. This CL guards the change with a target API check so
that we don't affect older apps.

Bug: 30378230
Change-Id: I215281d261b553c3b4cedcd29ea0a861df809471
2016-08-02 11:27:18 -07:00
Kirill Grouchnikov
90ac2ac538 Document exception throwing in TabHost
Bug: 30589663
Change-Id: I2dc0ab0fff4d837a85bd1914f99711eca5dd73ca
2016-08-02 11:44:12 -04:00
Alan Viverette
cf3a479d59 Adjust touch progress offset to account for changes to AbsSeekBar am: 1d33c3f3a3 am: 1cad05bdc0
am: c0acf68d30

Change-Id: Ia751dd2246bcfa0ea2a51411d00ae0f712531808
2016-08-02 02:20:44 +00:00
Svetoslav Ganov
e1c3ca5270 Revert "Prevent apps to overlay other apps via toast windows" am: 2fc661a453
am: 74b90c7d85

Change-Id: I6829cf6f04155a951bcfe79fcc13dbc2104a00ae
2016-08-02 02:17:56 +00:00
Svetoslav Ganov
74b90c7d85 Revert "Prevent apps to overlay other apps via toast windows"
am: 2fc661a453

Change-Id: I37bfb7dc01ad512f34332e83f6cc6be31d1feaab
2016-08-02 02:01:40 +00:00
Svetoslav Ganov
a2f247e6a6 Merge "Revert "Prevent apps to overlay other apps via toast windows"" into nyc-mr1-dev 2016-08-02 01:56:10 +00:00
Svetoslav Ganov
2fc661a453 Revert "Prevent apps to overlay other apps via toast windows"
bug:30150688

This reverts commit dc24f937b0.

Change-Id: Id7e8ddbf82ab426f55a5296791f1e8ebb61514bc
2016-08-02 01:55:01 +00:00
Alan Viverette
c0acf68d30 Adjust touch progress offset to account for changes to AbsSeekBar am: 1d33c3f3a3
am: 1cad05bdc0

Change-Id: Ie542424e2b46805a890cb73e8e1bbe2d155f3aff
2016-08-01 21:11:00 +00:00
Alan Viverette
1cad05bdc0 Adjust touch progress offset to account for changes to AbsSeekBar
am: 1d33c3f3a3

Change-Id: I7723f2fd11ea9c8969b9147e1ef893e67e0fb9e0
2016-08-01 20:58:10 +00:00
Alan Viverette
7dd40cd411 Merge "Adjust touch progress offset to account for changes to AbsSeekBar" into nyc-mr1-dev 2016-08-01 20:53:50 +00:00
Alan Viverette
1d33c3f3a3 Adjust touch progress offset to account for changes to AbsSeekBar
Previously AbsSeekBar always rounded up, which resulted in poor handling
of touches near the edge of a progress value. We fixed this but forgot
to adjust RatingBar for the new behavior.

Bug: 30558586
Change-Id: I634fa7a0b98568093e16279ef5a80abe08d2e2fe
2016-08-01 15:14:05 -04:00
Svet Ganov
a0030632f8 Prevent apps to overlay other apps via toast windows am: dc24f937b0
am: fd8ffb62a9

Change-Id: I94077046a2f38a7cffce5cc73f805f671c35db23
2016-08-01 19:02:53 +00:00
Svet Ganov
dc24f937b0 Prevent apps to overlay other apps via toast windows
It was possible for apps to put toast type windows
that overlay other apps which toast winodws aren't
removed after a timeout.

Now for apps targeting SDK greater than N MR1 to add a
toast window one needs to have a special token. The token
is added by the notificatoion manager service only for
the lifetime of the shown toast and is then removed
including all windows associated with this token. This
prevents apps to add arbitrary toast windows.

Since legacy apps may rely on the ability to directly
add toasts we mitigate by allowing these apps to still
add such windows for unlimited duration if this app is
the currently focused one, i.e. the user interacts with
it then it can overlay itself, otherwise we make sure
these toast windows are removed after a timeout like
a toast would be.

We don't allow more that one toast window per UID being
added at a time which prevents 1) legacy apps to put the
same toast after a timeout to go around our new policy
of hiding toasts after a while; 2) modern apps to reuse
the passed token to add more than one window; Note that
the notification manager shows toasts one at a time.

bug:30150688

Change-Id: Icc8f8dbd060762ae1a7b1720e96c5afdb8aff3fd
2016-08-01 11:46:02 -07:00
Michael Kwan
a8f73bd200 Add titles to PreferenceFragments and PreferenceScreens for watches. am: 744be16ffa
am: f704097df4

Change-Id: Iba97f59b84ead98775c803c091c6e4dae6f18d8e
2016-07-26 21:44:49 +00:00
Michael Kwan
f704097df4 Add titles to PreferenceFragments and PreferenceScreens for watches.
am: 744be16ffa

Change-Id: I54847a5ef3ddb4e09cc835433d80e121cf32b725
2016-07-26 21:11:47 +00:00
Michael Kwan
744be16ffa Add titles to PreferenceFragments and PreferenceScreens for watches.
Preferences lack a title on watch type devices due to lack of ActionBar
support. A custom ListView was added to use a custom wrapper adapter to
add a persistent header view at the top of the ListView that developers
would not be able to remove via the ListView API.

Bug: 27962897
Change-Id: I6bccecf85592d9507e0c7a04c9a035617001e9ef
2016-07-26 10:57:56 -07:00
Siyamed Sinir
317029aecc Update font feature settings w3 URL in api doc
Bug: 29545624
Change-Id: I4611f53055f3a52bc607ac0cc8311f8a633217bf
2016-07-25 14:50:48 -07:00
Aurimas Liutikas
324b8d352f Merge "Cleanup TextView and Editor style issues." 2016-07-22 22:44:36 +00:00
Alan Viverette
ed8b50d309 Ensure forwarding listener target is long-clickable am: 11ace9eedb
am: 1f53395128

Change-Id: I9fea1c41ac935157235f97fb33b6a0bd7f2612b7
2016-07-22 21:25:11 +00:00
Alan Viverette
1f53395128 Ensure forwarding listener target is long-clickable
am: 11ace9eedb

Change-Id: I182f933b35aef0da062bf6e7d4c485d681d50258
2016-07-22 21:18:43 +00:00
Alan Viverette
5547b668a2 Merge "Clean up annotations and docs for TabHost" 2016-07-22 21:10:16 +00:00
Alan Viverette
48c5f38b34 Merge "Ensure forwarding listener target is long-clickable" into nyc-mr1-dev 2016-07-22 21:09:37 +00:00
Aurimas Liutikas
ee62c29b8f Cleanup TextView and Editor style issues.
Change-Id: Ibcf0c2f3166e1a2baa16f4328ce328e5de213c66
2016-07-22 13:05:31 -07:00
Selim Cinek
8d717fa1cb Changed the appearance of fullscreen intent notifications again am: 981962e6ad
am: 3f769aba2a

Change-Id: I40a477fc28fb0205d40aa352c5b720835d4bf4f8
2016-07-22 19:37:48 +00:00
Selim Cinek
3f769aba2a Changed the appearance of fullscreen intent notifications again
am: 981962e6ad

Change-Id: Ib26d711e48aaff99a4e64e86feb67dbf987d67e2
2016-07-22 19:29:52 +00:00
TreeHugger Robot
0ff47b64cd Merge changes Idd0b38b4,I511356a8 into nyc-mr1-dev
* changes:
  Fixed a bug where the fade in from dark would not work properly
  Changed the appearance of fullscreen intent notifications again
2016-07-22 19:20:49 +00:00
Selim Cinek
981962e6ad Changed the appearance of fullscreen intent notifications again
Change-Id: I511356a8dc0fe253541c625fb7b43ed0c7bafaca
Fixes: 28269355
2016-07-22 12:13:11 -07:00
Rob Carr
ab9022dc87 Merge "Fix swapped toast timeouts." 2016-07-22 17:04:54 +00:00
Alan Viverette
fe69c652c6 Better docs for ImageView legacy tint am: 2b4e14cfcc
am: db59530cf9

Change-Id: Ib5f5a59b041e10a1109fb01f18a64d24afdde3f8
2016-07-22 07:23:21 +00:00
Yigit Boyar
7b5b70a07f Resolve ListView children\\'s RTL properties when added am: 4d827aafad
am: b3c380ace7

Change-Id: Ib9c228c4af6385b0c662a620f8f62e1e6aaeeb52
2016-07-22 07:18:15 +00:00
Alan Viverette
db59530cf9 Better docs for ImageView legacy tint
am: 2b4e14cfcc

Change-Id: I72f67ee9c67501ba9ea827f0068186673f59d852
2016-07-22 03:02:39 +00:00
Alan Viverette
4756583335 Clean up annotations and docs for TabHost
Bug: 30034992
Change-Id: I532772347a5e73fc7a98d9627c54065248ca1ee7
2016-07-22 02:53:24 +00:00
Alan Viverette
123db917b2 Merge "Better docs for ImageView legacy tint" into nyc-mr1-dev 2016-07-22 02:50:40 +00:00
Yigit Boyar
b3c380ace7 Resolve ListView children\'s RTL properties when added
am: 4d827aafad

Change-Id: I7ec85d33656cd1c7246c844e87143dcf3f4af57d
2016-07-22 02:26:58 +00:00