Commit Graph

6362 Commits

Author SHA1 Message Date
Siyamed Sinir
d01e6f9083 Merge "Request re-layout after setText if layout width is 0" into nyc-dev 2016-04-19 17:00:15 +00:00
Alan Viverette
0529197e9d Merge "Use adjusted popup window position when calculating best-fit" into nyc-dev 2016-04-19 16:39:15 +00:00
Alan Viverette
a98cc8beb9 Merge "Call OnTimeChangedListener on AM/PM change in clock-style TimePicker" into nyc-dev 2016-04-19 16:39:09 +00:00
Alan Viverette
55f0a99076 Use adjusted popup window position when calculating best-fit
Bug: 28194522
Bug: 28175404
Change-Id: I5685b397908f64559d0ec5fea5820bdea69f422c
2016-04-19 10:17:00 -04:00
Alan Viverette
8940a5b286 Merge "Revert FrameLayout.LayoutParams default gravity to -1" into nyc-dev 2016-04-19 13:36:26 +00:00
Alan Viverette
30b57b6bd2 Call OnTimeChangedListener on AM/PM change in clock-style TimePicker
Bug: 28257554
Change-Id: I25aabac783ea2b6e68be4b6c60f0d55a4c37af26
2016-04-19 09:29:20 -04:00
Siyamed Sinir
375366cb2d Request re-layout after setText if layout width is 0
When TextView is in a layout with weight params (i.e. LinearLayout) and
the width is set to 0, do not try to prevent requestLayout.

Bug: 27995311
Change-Id: Idfe9d8d0b595a6db95beb1afd83ca96a2bd46546
2016-04-18 15:17:02 -07:00
Aurimas Liutikas
c8fd00a046 Increase SearchView touch targets to meet GAR3.
- Allow SearchView to expand to 48dp height if possible.
- Make the search clear button have 48dp height if possible.
- Expand the search TextView touch target height to 48dp is possible.

Framework version of patch ag/912646

Bug: 19479861
Change-Id: Ibaaef2afa20b8c05eaac8f028df4f616f2f96eb1
2016-04-15 13:59:39 -07:00
Alan Viverette
2b4b335dfb Revert FrameLayout.LayoutParams default gravity to -1
Documents the default value and how this is interpreted by FrameLayout.

Bug: 27576632
Change-Id: Icb76c5382462184ae02e86ce1b0101c12473aee2
2016-04-15 11:10:28 -04:00
Rob Carr
446b4e727d Merge "PopupWindow. Don't use -1 width/height for calculations." into nyc-dev 2016-04-14 19:28:42 +00:00
Alan Viverette
d51afa4525 Merge "Update day of week labels when setting month params in SimpleMonthView" into nyc-dev 2016-04-14 16:27:34 +00:00
Alan Viverette
08dbbcdc9b Update day of week labels when setting month params in SimpleMonthView
Bug: 27310206
Change-Id: I40c09fb5dddb202a17ac9c6ecee1d6f40644d9e6
2016-04-14 10:15:04 -04:00
Robert Carr
70f0d229c0 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
2016-04-13 13:32:58 -07:00
Robert Carr
f6e801da1a PopupWindow. Don't use -1 width/height for calculations.
In findDropDownPosition it's entirely possible for width/height
to be -1. If this is so, and the popup is anchored to the right,
we could fail to see that it is offscreen (since we think the width
is -1), and so fail to do our position adjustment to move it to the
left. I think this was previously covered up by window manager bugs
with child windows that requested coordinates outside of their
parent frame. To fix this, we ontinue to pass the same value to
the window manager, but use the width/height we expect to receive
for local layout calculations.

Bug: 28085451
Change-Id: Ia04ca3fcd17ad8819615b5ff42f7923462ce4b42
2016-04-13 11:55:45 -07:00
Rob Carr
caa747b9ac Merge "Correct PopupWindow spaceAbove calculation." into nyc-dev 2016-04-13 18:55:00 +00:00
Alan Viverette
a63d2db099 Merge "Fall back to setting the level of the entire progress drawable" into nyc-dev 2016-04-13 17:19:05 +00:00
Wale Ogunwale
3fb1c81394 Merge changes Ieefeb843,Ic2a94b09 into nyc-dev
* changes:
  Update surface insets on window elevation changes.
  Fixed bug with cropping out drop shadow for pinned stack.
2016-04-13 16:59:36 +00:00
Alan Viverette
20f2b38ea4 Merge "Include current selection mode in TimePicker event text" into nyc-dev 2016-04-12 21:18:15 +00:00
Alan Viverette
4d59b81c21 Fall back to setting the level of the entire progress drawable
Bug: 27775791
Change-Id: I3f5bd31bdd4a970898899a9a64c1bdc23097b8e7
2016-04-12 17:17:55 -04:00
Robert Carr
b8320f7c58 Correct PopupWindow spaceAbove calculation.
The existing logic just doesn't make sense for a display frame with
nonzero top. Consider if we were docked on the bottom of a 2560 tall
display and so had say a display frame top of 1280. Then if the anchor
were 80 pixels in to our window it's top in screen would be 1320.
When we would add these two we would end up a value greater than the
entire screen height as the possible space above the anchor. Instead
subtract the display frame, to only consider the possible space above
the anchor, within the display frame.

Bug: 26255254
Change-Id: I95d7575a12a4e319f85c1cf6778970ff37918045
2016-04-12 13:09:13 -07:00
Alan Viverette
b0f5461eec Include current selection mode in TimePicker event text
Bug: 23118708
Change-Id: I709f28674c7a959cdfb279f8643a07aa562d8fef
2016-04-12 14:58:09 -04:00
Adrian Roos
c1a80b08f0 Notification MessagingStyle: Add handset views
Bug: 27250207
Change-Id: I499cf2beaeeb34f0f189815fc0911f3b8954bd50
2016-04-12 11:52:49 -07:00
Oleksandr Peletskyi
5a33106d7e Fixed cross profile usage of TextClock.
Fixed crash of a widget that uses TextClock and belongs to a work
profile when is being added to the dash board.

BUG:27035203
Change-Id: I70c66cb792d159d2527050db820e7154784148a2
2016-04-11 14:07:28 +02:00
Wale Ogunwale
246c209e4f Update surface insets on window elevation changes.
Window manager factors in the surface insets when calculating the
right crop for a window surface. Without the surface insets been
updated and new param forwarded to window manager, the window crop
will not be the right size and the window drop shadow might not show.

Bug: 27364161
Change-Id: Ieefeb8435543f3137672a065269cdeefca371111
2016-04-07 15:22:49 -07:00
Seigo Nonaka
64d1515076 Merge "Fix suggestion popup for RTL text on LTR layout." into nyc-dev 2016-04-07 09:20:27 +00:00
Seigo Nonaka
1d3efb6f64 Fix suggestion popup for RTL text on LTR layout.
By setting width to the ListView, the width of the containing text view
won't match with parent.

I locally verified this doesn't revive issue 27341560.

Bug: 28034210

Change-Id: I67886a752ef110d3433dddd6aa8447a9027f8e19
2016-04-07 16:40:57 +09:00
Keisuke Kuroyanagi
03f1e02699 Merge "Invalidate HandleView when handle position may have to be changed." into nyc-dev 2016-04-07 05:22:36 +00:00
Alan Viverette
b2df6af902 Merge "Deprecate methods not supported by Material-style date picker" into nyc-dev 2016-04-06 22:49:44 +00:00
Alan Viverette
d6d9a94f80 Refresh views on DayPicker appearance changes
Bug: 28023419
Change-Id: Ie64face1d2a1be7f7be5814b60ed6d803f82d1e9
2016-04-06 16:01:00 -04:00
Alan Viverette
0e672148a7 Deprecate methods not supported by Material-style date picker
Bug: 28039932
Change-Id: Ide53b42c9197ca9076184adef2e96170dd24785a
2016-04-06 15:56:11 -04:00
Svetoslav Ganov
f13f14ef30 Merge "Remove unusable a11y APIs for ClickableSpans." into nyc-dev 2016-04-06 02:05:42 +00:00
Kirill Grouchnikov
12454dcab1 Merge "Return correct unfocused month date color for pre-Material themes." into nyc-dev 2016-04-05 21:48:32 +00:00
Kirill Grouchnikov
7cf1586ce4 Return correct unfocused month date color for pre-Material themes.
Also deprecate setter / getter for showWeekNumber field.

Bug: 28022795
Change-Id: Ie0c33353f76c2a3d9666959a07f6809b7b85183f
2016-04-05 17:42:34 -04:00
Alan Viverette
9d8ec0f12e Merge "Rewrite popup window positioning algorithm" into nyc-dev 2016-04-05 16:29:08 +00:00
Kirill Grouchnikov
bbcf4327d2 Merge "Add a hidden test-only API to get Toolbar's navigation view." into nyc-dev 2016-04-05 14:54:48 +00:00
Keisuke Kuroyanagi
a46be16612 Merge "Fix: Selection handle behavior in scrolled TextView." into nyc-dev 2016-04-05 09:24:08 +00:00
Keisuke Kuroyanagi
a1a56ed09c Merge "Stop automatically creating action mode in FS extracted mode." into nyc-dev 2016-04-05 07:50:47 +00:00
Keisuke Kuroyanagi
b1b8865017 Fix: Selection handle behavior in scrolled TextView.
When dragging a selection handle, it moves to strange position in
scrolled TextView because scroll position isn't took into account.
This issue was introduced by rebase mistaking in
I2a7e87ad08416f4bd01a5f6.

Bug: 28008281
Change-Id: I6217483fcc0b9a7e661f02a1f276114ddd5031a4
2016-04-05 16:26:16 +09:00
Keisuke Kuroyanagi
c14e1270cf Invalidate HandleView when handle position may have to be changed.
Bug: 26499944
Change-Id: Iba539eb50df1495be7d64174de38b1e88cff9348
2016-04-05 15:39:24 +09:00
Phil Weaver
72fde85f7f Remove unusable a11y APIs for ClickableSpans.
This change essentially backs out ag/683646, which added an API to click
on ClickableSpans within a TextView. This API has the flaw, however,
that ClickableSpans are not parcelable, so they are not in general
reported to AccessibilityServices. That means that services will have no
idea what they are activating.

Since the API is not usable end-to-end, I'm backing it out before the
API is final.

Bug: 17726921
Change-Id: I541c6218f2899ff67a6b32a13fd9ae6f3b53b3c4
2016-04-04 18:37:32 -07:00
Yohei Yukawa
807c3a828b Merge "Unhide View#dispatch{Start,Finish}TemporaryDetach()" into nyc-dev 2016-04-05 00:05:09 +00:00
Kirill Grouchnikov
67960a0a55 Add a hidden test-only API to get Toolbar's navigation view.
Change-Id: I15d4d9ac7ea77ff260bccdfb9d82c85a7bafdfab
2016-04-04 16:30:02 -04:00
Alan Viverette
9125fbacd8 Rewrite popup window positioning algorithm
- Avoids scrolling to display anchored popup menus
- Reverts interpretation of mClipToScreen

Bug: 27875726
Bug: 27998829
Bug: 27949042
Change-Id: I8335c8e60b96d59611268fce689ce78f337ff1c7
2016-04-04 15:07:18 -04:00
Phil Weaver
7eb716c0f4 Merge "Make a11y text navigation by page symmetric." into nyc-dev 2016-04-04 16:37:05 +00:00
Phil Weaver
2bf5f20a2b Merge "Support SET_TEXT for editable text views." into nyc-dev 2016-04-04 16:36:35 +00:00
Phil Weaver
d4a1932608 Merge "Add accessibility window title and anchor." into nyc-dev 2016-04-04 16:36:01 +00:00
Keisuke Kuroyanagi
0fd28c9f02 Stop automatically creating action mode in FS extracted mode.
With Ic025c109539c3b59638, selection action mode is always started
when there is a selection.  This makes it impossible to extend
selection using selection mode.
This blocks creating action mode when full screen extracted mode is
started with selection, but it's same as MNC's behavior.

Bug: 27988877
Change-Id: I9614cb16373029189bfc098b6c1d353326e6b518
2016-04-04 17:43:06 +09:00
Keisuke Kuroyanagi
fc1d11ed9d Merge "Make hasTransientState be true only if user created selection is active." into nyc-dev 2016-04-04 03:12:32 +00:00
Jorim Jaggi
e6e108e0eb Launch everything from the shade in full-screen stack
Bug: 27864383
Change-Id: I2925661f1c325f4385876188a5866ab6b57a8f19
2016-04-01 22:17:58 +00:00
Alan Viverette
1722613b0c Merge "Fix default gravity value for FrameLayout.LayoutParams" into nyc-dev 2016-04-01 18:26:51 +00:00