Commit Graph

5851 Commits

Author SHA1 Message Date
Mady Mellor
db31070269 am 74280180: am 3e120946: am 840b524e: am 9659297d: am beb6e668: Merge "Allow text selection handles to scroll horizontally" into mnc-dev
* commit '74280180d10d0de8b83b6022bf72033aa93dd6e1':
  Allow text selection handles to scroll horizontally
2015-07-28 18:47:02 +00:00
Mady Mellor
74280180d1 am 3e120946: am 840b524e: am 9659297d: am beb6e668: Merge "Allow text selection handles to scroll horizontally" into mnc-dev
* commit '3e12094692427ec30d8c97644483aa9f5fe0e309':
  Allow text selection handles to scroll horizontally
2015-07-28 00:57:47 +00:00
Mady Mellor
beb6e66817 Merge "Allow text selection handles to scroll horizontally" into mnc-dev 2015-07-28 00:16:49 +00:00
Mady Mellor
42390aab46 Allow text selection handles to scroll horizontally
When selecting text and expanding the selection, the handles snap
to the end (or start) of words. The handles don't snap until the
user has moved halfway through the word.

In horizontally scrolling text views, where some of the text is
cut off, the user cannot be halfway through the word, this causes
the selection to get stuck unless the user scrolls the view and then
continues selecting.

This CL does two things:

1) Checks if the user is close to the edge of the view when the
view can scroll horizontally, and places the cursor at next offset
if available.

2) Moves the code to check if handles are crossing into own method
this should be done each time the cursor is placed and avoids the
need to duplicate the check throughout updatePosition code.

Bug: 22657879
Change-Id: Ic14cb0994cd202a897bf6532f3832bb93ed49bfb
2015-07-24 13:08:42 -07:00
Andrei Stingaceanu
55f08bc3ff am f8480f52: am 20295341: am 31006d92: am afad464c: am 45794910: Merge "Disallow dragging text in extracted mode" into mnc-dev
* commit 'f8480f52507e0504a4f05763ffdaf668a067584e':
  Disallow dragging text in extracted mode
2015-07-24 17:20:53 +00:00
Andrei Stingaceanu
f8480f5250 am 20295341: am 31006d92: am afad464c: am 45794910: Merge "Disallow dragging text in extracted mode" into mnc-dev
* commit '2029534162b308c7dcb3ef73616ecd6c98b22c64':
  Disallow dragging text in extracted mode
2015-07-24 16:07:41 +00:00
Andrei Stingaceanu
4579491003 Merge "Disallow dragging text in extracted mode" into mnc-dev 2015-07-24 14:35:48 +00:00
Svetoslav Ganov
a30cb27f2a am cec9ac5c: am 71fa8e19: am 059841e2: am 586116a5: am 41a62e11: Merge "Do not show normal permissions in sideloading UI" into mnc-dev
* commit 'cec9ac5c8fdf0030efb0b60b1e3156bfc71a4d92':
  Do not show normal permissions in sideloading UI
2015-07-24 05:12:36 +00:00
Alan Viverette
1b4acc8389 am 444883e9: am 35b1674a: am 9b4917a6: am be01800d: am 9478bf0e: Merge "Fix handling of RelativeLayout measurement using UNSPECIFIED spec" into mnc-dev
* commit '444883e9a1b7c38f11d631601a857da78f0b9bfa':
  Fix handling of RelativeLayout measurement using UNSPECIFIED spec
2015-07-24 05:10:58 +00:00
Svetoslav Ganov
cec9ac5c8f am 71fa8e19: am 059841e2: am 586116a5: am 41a62e11: Merge "Do not show normal permissions in sideloading UI" into mnc-dev
* commit '71fa8e192c1e02f619509135fad8c2ba92871fea':
  Do not show normal permissions in sideloading UI
2015-07-24 04:03:20 +00:00
Alan Viverette
444883e9a1 am 35b1674a: am 9b4917a6: am be01800d: am 9478bf0e: Merge "Fix handling of RelativeLayout measurement using UNSPECIFIED spec" into mnc-dev
* commit '35b1674a24354421701856a9c7b89abb008c911f':
  Fix handling of RelativeLayout measurement using UNSPECIFIED spec
2015-07-24 04:02:04 +00:00
Svetoslav Ganov
41a62e111d Merge "Do not show normal permissions in sideloading UI" into mnc-dev 2015-07-23 00:27:16 +00:00
Svetoslav
a3f68ef2f6 Do not show normal permissions in sideloading UI
bug:22627493

Change-Id: I5bb900bb2cd68893c21d9e9b2c973d331d355b58
2015-07-22 17:05:05 -07:00
Alan Viverette
5b39ec8b40 Fix handling of RelativeLayout measurement using UNSPECIFIED spec
Bug: 22613599
Change-Id: Ibdac9de1d5b53a46b29ae916e5dcc8b5c4bc9c27
2015-07-22 15:37:14 -04:00
Svetoslav
373ee3811f am 2cf699c5: am aeb34f1a: am 161314fa: am 358af143: am 81adda25: Merge "Always create nodes for views backed by an adapter." into mnc-dev
* commit '2cf699c5314a89e02127cc7e2535cdb7ea385162':
  Always create nodes for views backed by an adapter.
2015-07-21 21:43:10 +00:00
Svetoslav
2cf699c531 am aeb34f1a: am 161314fa: am 358af143: am 81adda25: Merge "Always create nodes for views backed by an adapter." into mnc-dev
* commit 'aeb34f1a516b9094a7552b8bb473756ab6079694':
  Always create nodes for views backed by an adapter.
2015-07-21 19:53:51 +00:00
Svetoslav
81adda25b3 Merge "Always create nodes for views backed by an adapter." into mnc-dev 2015-07-21 19:01:19 +00:00
Andrei Stingaceanu
b50045a519 Disallow dragging text in extracted mode
Temporary remove this ability.

Bug: 22440907
Change-Id: Ifff4c30919bcb04f7d0ab78f5e9c481381ac7a05
2015-07-21 10:24:31 +01:00
Keisuke Kuroyanagi
2305f99d01 am abe22377: am 7423ca03: am d49c3b65: am 00eb5767: am 437eb6ce: Merge "Fix: Wrong suggestion popup position in extract mode." into mnc-dev
* commit 'abe22377262a2aadbeb3b64d8bc10916b0256d6d':
  Fix: Wrong suggestion popup position in extract mode.
2015-07-21 00:14:50 +00:00
Keisuke Kuroyanagi
abe2237726 am 7423ca03: am d49c3b65: am 00eb5767: am 437eb6ce: Merge "Fix: Wrong suggestion popup position in extract mode." into mnc-dev
* commit '7423ca03a3d3e7d65549750bf46d744c6122df4f':
  Fix: Wrong suggestion popup position in extract mode.
2015-07-20 22:08:12 +00:00
Keisuke Kuroyanagi
437eb6ce48 Merge "Fix: Wrong suggestion popup position in extract mode." into mnc-dev 2015-07-20 21:12:38 +00:00
Svetoslav
457ec9e668 Always create nodes for views backed by an adapter.
Some views are backed by adapter and if the adapter changed
but views are not updated we were not reporting the views.
This is not correct as the accessibility layer should always
access whatever is on the screen regardless if we know it
will change in the next layout pass.

bug:20920903

Change-Id: I5851c886848e7b8e59b76419c22124790d7e6f05
2015-07-20 14:01:01 -07:00
Chet Haase
d55592a15c am 486fdeca: am 00adea5f: am 3e75ef10: am fcba54eb: am d3f327be: Merge "Localize SimpleMonthView" into mnc-dev
* commit '486fdeca120cbb4209159af46d92842e9779f9d4':
  Localize SimpleMonthView
2015-07-18 00:25:15 +00:00
Chet Haase
486fdeca12 am 00adea5f: am 3e75ef10: am fcba54eb: am d3f327be: Merge "Localize SimpleMonthView" into mnc-dev
* commit '00adea5f6456a207a806fc20a5123821520c1e45':
  Localize SimpleMonthView
2015-07-18 00:11:29 +00:00
Keisuke Kuroyanagi
fd3eff27bd Fix: Wrong suggestion popup position in extract mode.
Replace text was handled by the original EditText; thus, we
couldn't correctly decide popup window position.
Also, changing selection range replaces entire text of the
extracted EditText. As a result, text cannot be replaced
with the selected item when there is a selection.

This change is a workaround for this issue. This quits
offering "Replace" for selection in extract mode.

Bug: 22038802
Change-Id: I052b027cfd10eeb289f77f4c6b228acf58fea636
2015-07-17 16:36:57 -07:00
Chet Haase
1ea4715cec Localize SimpleMonthView
The days of the month were not being localized, resulting in
English numbers for non-English languages. Now we format the numbers
with the current locale.

Issue #22540629  [MRA14D][Arab][Token] numbers displayed in english

Change-Id: I2b17d55ba2d0aa47b5a28c8846c6cf9723ababb1
2015-07-17 14:26:17 -07:00
Chris Craik
82af13ea83 Remove ImageViewBitmapDrawable class
Change-Id: Ie25b4b39cb5d0984981c153b036ea9ade95a10f7
2015-07-16 13:14:04 -07:00
Andrew Solovay
695a553ab4 am dd019012: am edf1f874: am f7810b44: am 90adb81b: am 353886b2: am e67416ec: am 4859a612: Merge "docs: Clarified how to find out when a switch is toggled" into mnc-preview-docs
* commit 'dd019012a30e25721d21059d298a9de585e1994c':
  docs: Clarified how to find out when a switch is toggled
2015-07-14 21:20:22 +00:00
Andrew Solovay
dd019012a3 am edf1f874: am f7810b44: am 90adb81b: am 353886b2: am e67416ec: am 4859a612: Merge "docs: Clarified how to find out when a switch is toggled" into mnc-preview-docs
* commit 'edf1f874be46b74dbef225d622f6d244bddd02f3':
  docs: Clarified how to find out when a switch is toggled
2015-07-14 21:04:43 +00:00
Andrew Solovay
353886b2dd am e67416ec: am 4859a612: Merge "docs: Clarified how to find out when a switch is toggled" into mnc-preview-docs
* commit 'e67416eccc6092e2fce3619b2244deda36fabd26':
  docs: Clarified how to find out when a switch is toggled
2015-07-14 20:22:59 +00:00
Andrei Stingaceanu
a2c1d7841a am 464f4006: am dfa116e2: am 2e59771e: am 0e6360f4: am a9b9907f: Merge "Fix insertion handle disappearing in extract mode" into mnc-dev
* commit '464f40065f0ccd41214733d2a158a035a8b644b6':
  Fix insertion handle disappearing in extract mode
2015-07-14 18:46:57 +00:00
Andrei Stingaceanu
464f40065f am dfa116e2: am 2e59771e: am 0e6360f4: am a9b9907f: Merge "Fix insertion handle disappearing in extract mode" into mnc-dev
* commit 'dfa116e2f71100eb56ff48cc233941f18c7a79cc':
  Fix insertion handle disappearing in extract mode
2015-07-14 18:14:51 +00:00
Julia Reynolds
a7380629e9 am e8ff4f71: am 711ff332: am 91941a57: am 19fd8658: am fbd0a444: Merge "Remove personal/device group from sideloading screen." into mnc-dev
* commit 'e8ff4f718dff0cf00c6c852f2bc908b508850fa1':
  Remove personal/device group from sideloading screen.
2015-07-14 16:51:16 +00:00
Mady Mellor
2f30e890cd am 604b1138: am 8fe9a017: am 441ad4df: am 7fac4d6c: am 1c277ca8: Merge "Fix: line slop shouldn\'t always increase / decrease by one line" into mnc-dev
* commit '604b1138f166a75b80c79243432798416a843c93':
  Fix: line slop shouldn't always increase / decrease by one line
2015-07-14 16:49:01 +00:00
Mady Mellor
60ca990850 am ee4d90ba: am 8f85f645: am 9d4cd8cf: am 24950db2: am a9f07ccf: Merge "Fix line slop issue at end of line for Thai & CJK" into mnc-dev
* commit 'ee4d90ba0d5abbb7379e6f47d97c12619bbfeeee':
  Fix line slop issue at end of line for Thai & CJK
2015-07-14 16:48:54 +00:00
Julia Reynolds
e8ff4f718d am 711ff332: am 91941a57: am 19fd8658: am fbd0a444: Merge "Remove personal/device group from sideloading screen." into mnc-dev
* commit '711ff3323fd6641bbf83bbdad5c4032db98d8572':
  Remove personal/device group from sideloading screen.
2015-07-14 16:28:43 +00:00
Mady Mellor
604b1138f1 am 8fe9a017: am 441ad4df: am 7fac4d6c: am 1c277ca8: Merge "Fix: line slop shouldn\'t always increase / decrease by one line" into mnc-dev
* commit '8fe9a0173ea9dd7334c5a634dea76055097e04ab':
  Fix: line slop shouldn't always increase / decrease by one line
2015-07-14 16:26:18 +00:00
Mady Mellor
ee4d90ba0d am 8f85f645: am 9d4cd8cf: am 24950db2: am a9f07ccf: Merge "Fix line slop issue at end of line for Thai & CJK" into mnc-dev
* commit '8f85f645154d02a3808ed3f3a3353d836fd994a5':
  Fix line slop issue at end of line for Thai & CJK
2015-07-14 16:26:11 +00:00
Andrei Stingaceanu
a9b9907f3c Merge "Fix insertion handle disappearing in extract mode" into mnc-dev 2015-07-14 09:57:24 +00:00
Julia Reynolds
fbd0a444e7 Merge "Remove personal/device group from sideloading screen." into mnc-dev 2015-07-13 17:34:20 +00:00
Julia Reynolds
9a5c9118ce Remove personal/device group from sideloading screen.
Also ignore the requestedPermissionFlags of yet to be installed
packages when trying to determine if a permission is new.

Bug: 22229417

Change-Id: I59d579cdc42d64bcfdefdb06e1576959355bb7a4
2015-07-13 08:46:29 -04:00
Andrei Stingaceanu
cfa13a77ed Fix insertion handle disappearing in extract mode
In extract mode, on every screen touch
TextView#setExtractedText gets called which calls
SpannableStringBuilder#sendTextChanged which in turn stops
the action mode. As a fix, if the text is the same only
copy the spans without replacing everything.

Bug: 22315095
Change-Id: I28da760b3dc11e1cfbaf720e547bd817c5b89d7e
2015-07-13 11:14:43 +01:00
Mady Mellor
1c277ca8cd Merge "Fix: line slop shouldn't always increase / decrease by one line" into mnc-dev 2015-07-11 00:30:33 +00:00
Mady Mellor
a9f07ccf38 Merge "Fix line slop issue at end of line for Thai & CJK" into mnc-dev 2015-07-11 00:26:35 +00:00
Mady Mellor
a6a0f7829f Fix line slop issue at end of line for Thai & CJK
Previously touch slop for line movement was based on the line position
of the HandleView, not the previous line touched.

Thai and CJK languages don't have a space at the end of a line so
the handle jumps to the beginning of the next line. This meant that
when calculating the touch slop it'd be from the incorrect line.

This CL tracks the previous line touched and uses that instead to
calculate touch slop and applies it to the selection and insertion
handles.

Note this is *not* added to the drag accelerator because
it does not have the problem of the handle jumping to the next line
since it has no handles.

Bug: 21925162
Change-Id: If4b231725c06489ec780a5b5a308ceffee804c20
2015-07-10 16:43:32 -07:00
John Reck
07957aa476 am 5159f778: am f01a4710: am 1e2063fb: am d1b16386: am 2c7ed6e8: Merge "Improve ImageView drawable re-use" into mnc-dev
* commit '5159f778f0ea497327bc6efc6029ae95a1d1af05':
  Improve ImageView drawable re-use
2015-07-10 18:57:03 +00:00
John Reck
5159f778f0 am f01a4710: am 1e2063fb: am d1b16386: am 2c7ed6e8: Merge "Improve ImageView drawable re-use" into mnc-dev
* commit 'f01a471060df22ee5c92acdf8effa340b5f568b3':
  Improve ImageView drawable re-use
2015-07-10 18:42:54 +00:00
John Reck
5a1356916d Improve ImageView drawable re-use
Bug 22403868

Initial attempt only helped if setImageBitmap() was the only
thing called but during new-loading content it's common for a
placeholder to be set via setImageDrawable.

Tweak ImageView slightly to just have a BitmapDrawable that it
lazy-creates but will hold on to for any subsequent calls
to setImageBitmap

Change-Id: I7380521c7b363d458e4cda041f1f8b2b1fb3a93a
2015-07-10 10:08:01 -07:00
John Reck
8a76fc5c1a am 66e86347: am 035e1b94: am 19cb0685: am 31ff4513: am b7ba1220: Teach ImageView to recycle internal drawables
* commit '66e86347875abec395c84337767553e101c5a633':
  Teach ImageView to recycle internal drawables
2015-07-10 02:38:22 +00:00
John Reck
66e8634787 am 035e1b94: am 19cb0685: am 31ff4513: am b7ba1220: Teach ImageView to recycle internal drawables
* commit '035e1b94ea25d78be562add377ee85a952caafa3':
  Teach ImageView to recycle internal drawables
2015-07-10 02:23:30 +00:00