Commit Graph

5451 Commits

Author SHA1 Message Date
Alan Viverette
0164bba2f8 am d03ed00c: am b50a8b97: am 1ac88088: Merge "Return correct year in DayPickerPagerAdapter.getYearForPosition()" into mnc-dev
* commit 'd03ed00c6761d20a3581c133d8cf639c03b4d889':
  Return correct year in DayPickerPagerAdapter.getYearForPosition()
2015-05-15 22:59:47 +00:00
Alan Viverette
bd51b4d0b9 Return correct year in DayPickerPagerAdapter.getYearForPosition()
Previously it wasn't offsetting the position by the min date's month,
so it would be off by a year if the min date wasn't in January. Also
now updates button visibility whenever the ViewPager's range changes.

Bug: 21203303
Change-Id: Id7a41a4fa48843943c744fb0fecd4bebb798cee5
2015-05-15 14:18:44 -07:00
Mady Mellor
25a339103c am 2016f97d: am e0b108cd: am 21417a0d: Merge "Text selection: Fix moving by character when should move by word" into mnc-dev
* commit '2016f97d481c7bdf85a7f4ecccb79dbafd0da325':
  Text selection: Fix moving by character when should move by word
2015-05-15 20:27:55 +00:00
Mady Mellor
de6b408b87 am 5679d2c3: am 976c683b: am c25d6c22: Merge "Fix difficulty grabbing handles for small selections" into mnc-dev
* commit '5679d2c33431ad365db76fc2b380a5992213b7c9':
  Fix difficulty grabbing handles for small selections
2015-05-15 20:27:51 +00:00
Mady Mellor
21417a0d50 Merge "Text selection: Fix moving by character when should move by word" into mnc-dev 2015-05-15 17:56:59 +00:00
Mady Mellor
c25d6c22bb Merge "Fix difficulty grabbing handles for small selections" into mnc-dev 2015-05-15 17:56:57 +00:00
Alan Viverette
64b7675c7a am 961e1304: am 8b51ce7d: am 617da41e: Merge "Update button visibility as a final step in DayPickerView construction" into mnc-dev
* commit '961e1304b915896efc75553980aa7e2675ad1743':
  Update button visibility as a final step in DayPickerView construction
2015-05-15 17:06:01 +00:00
Alan Viverette
617da41e8c Merge "Update button visibility as a final step in DayPickerView construction" into mnc-dev 2015-05-15 16:44:23 +00:00
Andrei Stingaceanu
ad91a1d780 am ed146a96: am c2bdee59: am d674f230: Merge "Editor: enable double tap for selection after cut/copy." into mnc-dev
* commit 'ed146a96073ce2bbed2850c37fab46985358f259':
  Editor: enable double tap for selection after cut/copy.
2015-05-14 21:25:09 +00:00
Alan Viverette
b12172ef47 Update button visibility as a final step in DayPickerView construction
Previously it was only updated when the page was turned, but that listener
isn't called until the user turns the page.

Bug: 20701637
Change-Id: I06faf59660cda0e19d57766f4afd141e4a389b18
2015-05-14 14:24:36 -07:00
Andrei Stingaceanu
f979f5f457 am fcd68d34: am 6f885d1b: am fa660f79: Merge "Fix: text selection bubbles move along with the text" into mnc-dev
* commit 'fcd68d3487c7a5e3f6198ddfb9b9794c28eb7ef9':
  Fix: text selection bubbles move along with the text
2015-05-14 21:23:35 +00:00
Wojciech Staszkiewicz
b41aab7b5c am b8ee07d1: am e2ad30ef: am be752b1f: Merge "Pass charset to XmlPullParser.setInput instead of null" into mnc-dev
* commit 'b8ee07d10c8a8494cb658c3bc3f58f404b949db6':
  Pass charset to XmlPullParser.setInput instead of null
2015-05-14 21:23:12 +00:00
Andrei Stingaceanu
6d9d9d1cb3 am c84dfea8: am dee1479c: am c398adf8: Merge "Fix floating toolbar popping frequently after Replace/Copy" into mnc-dev
* commit 'c84dfea8f9c204edf3d2e5469a2538da88e159b2':
  Fix floating toolbar popping frequently after Replace/Copy
2015-05-14 21:23:02 +00:00
Andrei Stingaceanu
ecb7de8ee9 am 1496cdd0: am 46044e85: am 78e2f07e: Merge "Fix: replace terminates extract mode (floating toolbar)" into mnc-dev
* commit '1496cdd09d210d3f9533ee5857f44f719fe9c2e3':
  Fix: replace terminates extract mode (floating toolbar)
2015-05-14 18:05:03 +00:00
Chris Banes
384f836de3 am 9637545a: am dc6125d4: am 18ee0524: Merge "Fix build; doc link in ImageView" into mnc-dev
* commit '9637545abedc911e4445837afac2a4bf5eddfbe3':
  Fix build; doc link in ImageView
2015-05-14 18:04:57 +00:00
Mady Mellor
81fa3e8966 Text selection: Fix moving by character when should move by word
The code to restrict handles from crossing did not respect moving by
word or by character. This CL checks the offset to see if it's crossing,
and if it is, it restricts it to the line of the other handle and proceeds
with determining the "actual" offset based on the activated
mode by word / by char).

There is also still a check to ensure that one character is selected
after the mode as adjusted the offset.

Bug: 21114827
Change-Id: Idac699ef2eb5d313e77d44b5064c03ff84e0fb88
2015-05-14 09:22:59 -07:00
Andrei Stingaceanu
fae270c108 Editor: enable double tap for selection after cut/copy.
* detect double tap in the TextView and pass it to Editor.
* add a timer (with getDoubleTapTimeout) for executing the
  single tap job in Editor.
* if double tap is detected then cancel the single tap job.

This way one tap shows the toolbar if within the timeframe
and two taps select the word and show the toolbar.

Bug: 20442587
Change-Id: I0a117939c896fcb13669346e30c9c48d319576dd
2015-05-14 16:11:07 +01:00
Andrei Stingaceanu
35c550c854 Fix: text selection bubbles move along with the text
Always hide the selection cursor when showing the
insertion cursor.

Bug: 19857679
Change-Id: I549552fa5026e60f94900364b8194217e0de4b4a
2015-05-14 14:30:18 +01:00
Wojciech Staszkiewicz
be752b1f28 Merge "Pass charset to XmlPullParser.setInput instead of null" into mnc-dev 2015-05-14 10:27:24 +00:00
Andrei Stingaceanu
c398adf81c Merge "Fix floating toolbar popping frequently after Replace/Copy" into mnc-dev 2015-05-14 10:23:09 +00:00
Andrei Stingaceanu
78e2f07e81 Merge "Fix: replace terminates extract mode (floating toolbar)" into mnc-dev 2015-05-14 09:33:58 +00:00
Wojciech Staszkiewicz
9e9e2e73c6 Pass charset to XmlPullParser.setInput instead of null
Passing null to XmlPullParser.setInput forces it to do additional
work, which can be easily avoided if we know the charset beforehand.

bug: b/20849543

Change-Id: Iaff97be9df2d0f99d7af8f19f65934439c9658e2
2015-05-14 10:24:34 +01:00
Chris Banes
e695bb8a28 Fix build; doc link in ImageView
Change-Id: Ie3057fc2b920f71ff89eee0d3577d21d0e9930c3
2015-05-14 10:12:20 +01:00
Deepanshu Gupta
d47e576df5 am da3fb48c: am 70854ba9: am e6460224: Merge "Revert "Call dispatchFinishTemporaryDetach before returning a transient view"" into mnc-dev
* commit 'da3fb48c8afacc4da5ffb2cd01c0c9c201d40cfc':
  Revert "Call dispatchFinishTemporaryDetach before returning a transient view"
2015-05-14 06:55:49 +00:00
Keisuke Kuroyanagi
3a63706917 am 57f3e109: am 5c43d546: am 0433488d: Merge "Track difference between touch and word in x coordinate." into mnc-dev
* commit '57f3e109b2929b4f7992b0ea012e90e6f47f7a9e':
  Track difference between touch and word in x coordinate.
2015-05-14 06:55:06 +00:00
Dan Sandler
d91129003c am 38b00300: am 96952c74: am a22a380f: Add Icon support to ImageView.
* commit '38b003001ace5ddc354b483dc37793c3ceeaf34b':
  Add Icon support to ImageView.
2015-05-14 06:54:54 +00:00
Deepanshu Gupta
e646022429 Merge "Revert "Call dispatchFinishTemporaryDetach before returning a transient view"" into mnc-dev 2015-05-14 04:52:59 +00:00
Keisuke Kuroyanagi
0433488daa Merge "Track difference between touch and word in x coordinate." into mnc-dev 2015-05-14 04:26:21 +00:00
Deepanshu Gupta
5987e553c2 Revert "Call dispatchFinishTemporaryDetach before returning a transient view"
This reverts commit c73a1aaa90. The change
causes an NPE when rendering ListViews.
2015-05-13 21:25:57 -07:00
Dan Sandler
a22a380fbb Add Icon support to ImageView.
ImageView.setImageIcon() is remotable, so you can also call
RemoteViews.setImageViewIcon().

Bug: 18568715
Change-Id: I456cfa65102e1983d3392d822584d154a6cd761a
2015-05-13 23:50:39 -04:00
Alan Viverette
a9bc2c0fee am b0b80305: am c6b6dd84: am bf6d50f9: Merge "Call dispatchFinishTemporaryDetach before returning a transient view" into mnc-dev
* commit 'b0b80305ab127828aec1c6df080d5e1fbd0ad6da':
  Call dispatchFinishTemporaryDetach before returning a transient view
2015-05-14 01:00:51 +00:00
Alan Viverette
bf6d50f906 Merge "Call dispatchFinishTemporaryDetach before returning a transient view" into mnc-dev 2015-05-13 23:35:55 +00:00
Keisuke Kuroyanagi
0138e4c7f8 Track difference between touch and word in x coordinate.
After a handle is snapped to the word, the difference was
tracked in offset. It can break grapheme clusters, ignores
character width, and makes it difficult to select text near
line breaks.

Bug: 21005599
Change-Id: I42402a377670c7e3c6d6e6583744d085ae52bba2
2015-05-13 16:28:29 -07:00
Mady Mellor
56ce4f6a18 am 15398fae: am 4241e307: am 21623faa: Merge "Fix issue where handle is in front of word rather than end of word" into mnc-dev
* commit '15398faeb0482c39075718d70f065ff33d01a2ce':
  Fix issue where handle is in front of word rather than end of word
2015-05-13 18:05:27 +00:00
Mady Mellor
21623faa44 Merge "Fix issue where handle is in front of word rather than end of word" into mnc-dev 2015-05-13 17:34:13 +00:00
Mady Mellor
2e577d2e1c Fix difficulty grabbing handles for small selections
The gravity for the handles pushes them to the outside of the touch target
square, causing the touch target to overlap for both of them when close
together. This CL swaps the gravity so that the touch target does not
overlap when the handles are close.

Bug: 20065564
Change-Id: I4d14e7076ac779c5f4a0a603d6348ba6dc7c7b4c
2015-05-13 07:15:17 -07:00
Roozbeh Pournader
35a85ab057 am e652d17b: am 703b5078: am 0ca0f580: Merge "Add hyphenationFrequency attribute to TextView and StaticLayout." into mnc-dev
* commit 'e652d17b3e8af3c4e8e3355cca864e61aad0dc35':
  Add hyphenationFrequency attribute to TextView and StaticLayout.
2015-05-12 23:37:51 +00:00
Roozbeh Pournader
0ca0f58000 Merge "Add hyphenationFrequency attribute to TextView and StaticLayout." into mnc-dev 2015-05-12 22:59:47 +00:00
Roozbeh Pournader
95c7a13f2a Add hyphenationFrequency attribute to TextView and StaticLayout.
This patch adds plumbing to TextView and StaticLayout to control the
frequency of automatic hyphenation used in laying out paragraphs.

Bug: 21038249
Change-Id: Ib45de190eb0a1ed738e69fd61f2b39561b11aec7
2015-05-12 14:56:57 -07:00
Chris Craik
c6f9023ab1 am e9724679: am ca0790cd: am 6af2857a: Merge "Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""" into mnc-dev
* commit 'e9724679302ddb0d83fa24d782601db7de30c050':
  Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""
2015-05-12 20:11:48 +00:00
Mady Mellor
58c9087137 Fix issue where handle is in front of word rather than end of word
Previous getWordEnd and getWordStart functions would return a boundary
rather than a word end / start boundary in some cases. This behavior is
most evident when moving between short lines -- the handle would go to
the next boundary rather than the word end on the next line (and the
start handle would go to the word end rather than the word start on
the prev line).

This CL ensures that word or punctuation boundaries are returned and moves
most of the punctuation boundary logic into WordIterator since it makes
a bit more sense there.

Bug: 21030788
Change-Id: I96c6aff7f2c213aa3c4f66ac87ca913ca16fd347
2015-05-12 11:09:37 -07:00
Chris Craik
8420acd268 am 1d0b13b7: am db05ea90: am d2c05188: Merge "Fix build - Revert "Revert "Use default constructor to get anti-aliasing""" into mnc-dev
* commit '1d0b13b74797b27bd431d68f25fdd5e7c5ec751a':
  Fix build - Revert "Revert "Use default constructor to get anti-aliasing""
2015-05-12 18:00:43 +00:00
Chris Craik
4538cdbbb0 am 99aac0fc: am f3aad322: am fd41cf0c: Merge "Revert "Use default constructor to get anti-aliasing"" into mnc-dev
* commit '99aac0fc62a0b6f28bc732cd2153f8883ec7f09f':
  Revert "Use default constructor to get anti-aliasing"
2015-05-12 17:49:24 +00:00
Chris Craik
6a49ddef62 Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""
Fix import

This reverts commit 7ed1431c83.

Change-Id: Id93eba3ed1d47a90384ba20dea6f74d78755792b
2015-05-12 10:44:30 -07:00
Chris Craik
7ed1431c83 Fix build - Revert "Revert "Use default constructor to get anti-aliasing""
This reverts commit dfe0a66cec.

Change-Id: I58a1bae649a284f3d3b6213064d903ea7fcf185a
2015-05-12 17:22:22 +00:00
Chris Craik
dfe0a66cec Revert "Use default constructor to get anti-aliasing"
bug:20948129

This reverts commit 58fc522a69.

Change-Id: Iddeccb4ad15b843bb3e610bd3673a0c7abc1bf46
2015-05-12 16:36:49 +00:00
Andrei Stingaceanu
eeb9afc78f Fix: replace terminates extract mode (floating toolbar)
Moved the replace action to be triggered from the TextView
rather than the Editor. Previously the ExtractedEditText
was calling the TextView.onTextContextMenuItem which did
not hold an entry for replace and thus was returning
false.

Note: this CL does not fix the extracted mode being
(randomly) terminated when edit actions are pressed. This
is still under investigation.

Bug: 20930071
Change-Id: I71f87418f040f6860fe7723e4cd731c298cf3c5f
2015-05-12 12:54:25 +01:00
Clara Bayarri
ff2b6f042c am eea5fe16: am 8086e031: am c12e4e46: Merge "Fix Floating toolbar is not refreshed when dragging insertion handle" into mnc-dev
* commit 'eea5fe16de77b645c2443758105930bbeee3001c':
  Fix Floating toolbar is not refreshed when dragging insertion handle
2015-05-12 09:58:59 +00:00
Clara Bayarri
c12e4e468f Merge "Fix Floating toolbar is not refreshed when dragging insertion handle" into mnc-dev 2015-05-12 09:06:06 +00:00
Svet Ganov
49b6b72a03 am f152ef2f: am 0bf290b9: am 981de3c5: Merge "Add permission meta-state flags to support grant/revoke permission policy." into mnc-dev
* commit 'f152ef2fd5b0d3e1251e1b1866e5c57a73dc7b0b':
  Add permission meta-state flags to support grant/revoke permission policy.
2015-05-12 00:43:38 +00:00