25639 Commits

Author SHA1 Message Date
Adam Powell
f8419a0299 Fix bugs around overlay action modes.
Multiple focusable windows cause undesired behavior around selection
modes. TextView isn't sure how to behave when it loses window focus
with regard to selection handles and action modes need to be focusable
for WebView find on page since it uses an EditText as a custom view.

For now:

* Use a layered window decor for overlay action mode when there is no
  action bar requested. This eliminates an extra window and avoids the
  issue described for full-screen UIs.

* Disable WebView's find-on-page mode when the action mode's UI will
  not be focusable. This only affects WebViews in floating windows.

Also remove the "Text Selection" title for WebView's selection mode at
UX's request, as it is inconsistent with TextView's selection mode and
the string does not fit on phones in portrait even on wide
devices. This now uses the same mechanism used in TextView to decide
whether to use title text.

Change-Id: I80caeecea9b47728cf26bb0a388153ca0bdeafe1
2011-10-03 13:20:23 -07:00
Svetoslav Ganov
1401935b8f Merge "Adding accessibility support to the share UI." 2011-10-03 11:53:48 -07:00
Daniel Sandler
e0ef70abf5 Merge "Slightly less ugly ICS adb icons." 2011-10-03 11:30:10 -07:00
Russell Brenner
e4255b1769 Merge "Center box text vertically" 2011-10-03 11:29:16 -07:00
Daniel Sandler
11e1fd246c Slightly less ugly ICS adb icons.
Change-Id: I40448c3fa58fe15a924e306584105110657c9f1a
2011-10-03 14:17:39 -04:00
Svetoslav Ganov
70853772bd Adding accessibility support to the share UI.
Added content description to the overflow button and default
action target as well as content description for the popup
list with share targets.

bug:5398787

Change-Id: Iea1e9d85893899f7d161986cb958595083c79b93
2011-10-03 11:16:40 -07:00
Fabrice Di Meglio
8ebf1efd66 Merge "Fix potential issue with the TextLayoutCache with glyphs" 2011-10-03 09:56:39 -07:00
Fabrice Di Meglio
eb3b750c1d Merge "Improve TextLayoutCache performances a bit" 2011-10-03 09:56:32 -07:00
Adam Cohen
450c9c4566 Merge "Adding default padding to AppWidgetHostView for widgets >= API level 14" 2011-09-30 19:26:05 -07:00
Adam Cohen
5d5f340520 Adding default padding to AppWidgetHostView for widgets >= API level 14
Change-Id: Idbbeafba664847f01393bb0c6102f774390380d5
2011-09-30 19:00:00 -07:00
Fabrice Di Meglio
155fa38a71 Fix potential issue with the TextLayoutCache with glyphs
- there may be a mapping of one char to many glyphs

Change-Id: I48846d176d61dc8d8e513ca144fdf8ad805e63b7
2011-09-30 17:24:35 -07:00
Russell Brenner
b76b3b1c81 Center box text vertically
Apply Gravity.CENTER_VERTICAL for single-line editable text

Bug: 5267547
Change-Id: Ie81354214e6eb97554d1f9e8e47377a2b0e73df6
2011-09-30 17:03:32 -07:00
Eric Fischer
6b804a9dd0 Merge "Import revised translations." 2011-09-30 16:38:53 -07:00
Eric Fischer
d3530ac774 Import revised translations.
Change-Id: Ic8e228878fde375b90797c6e344fcb3114180f1d
2011-09-30 16:32:04 -07:00
Fabrice Di Meglio
717060b076 Improve TextLayoutCache performances a bit
- the gain is about 5% and the timing is more stable
- use compare_type() and strictly_order_type()

Change-Id: Iab81869a8ba461ce786a468b6c59b8f34e8db838
2011-09-30 14:08:25 -07:00
Steven Ross
3553c296c0 Moving fallback check code to Settings
Change-Id: Ife924771d7bfedc6eccc6817172a699569560025
2011-09-30 15:48:40 -04:00
Steven Ross
d42825f40e Merge "calling back SetupFaceLock to clean up temporary gallery" 2011-09-30 11:08:47 -07:00
Gilles Debunne
eba3d92341 Merge "Bug 5384675: Color in add to dictionary" 2011-09-30 10:58:30 -07:00
Gilles Debunne
9fb46925d3 Merge "Bug 5384535: Underline for typo even if there are no suggestions" 2011-09-30 10:58:10 -07:00
Gilles Debunne
5b92a451c0 Merge "Bug 5254884: suggestions are no logner copied in the clipboard" 2011-09-30 10:58:01 -07:00
Gilles Debunne
67ed574cdb Merge "Bug 5250788: EditText gets slower has the entered text gets longer" 2011-09-30 10:57:51 -07:00
repo sync
82afa6e61e Merge "Fix IPv6 on wifi" 2011-09-30 09:57:36 -07:00
Mark Wagner
ff1ea0dc53 Merge "bugfix 5381702 MMS app puts temporary files on sdcard in wrong location" 2011-09-30 09:55:10 -07:00
Wei Huang
51e6e3f2ef Merge "Convert content type "image/jpg" to "image/jpeg"." 2011-09-30 09:23:03 -07:00
Kenny Root
83a5926ee3 Merge "Add DUMP permission checks to services" 2011-09-30 08:57:43 -07:00
Daniel Sandler
d88110d27e Merge "Bring back nyandroid ADB icon." 2011-09-30 07:48:43 -07:00
satok
594cb47654 Merge "Use user's settings for the spell check language instead of the system locale" 2011-09-30 01:52:40 -07:00
satok
70deff4c10 Use user's settings for the spell check language instead of the system locale
Bug: 5390462
Change-Id: Ia2a3981cb93f451646debe5ee6b037313825cf9f
2011-09-30 17:49:40 +09:00
Luca Zanolin
af43add388 Merge "The x and y position of the pop-up where not calculated correctly when the text view had internal scrolling." 2011-09-30 01:01:35 -07:00
Owen Lin
e29288629d Convert content type "image/jpg" to "image/jpeg".
"image/jpg" is not a valid mimetype while "image/jpeg" is.
So change it to "image/jpeg" to increase the compatibillity with other
Apps in android. (e.g., Gallery)

bug: 5342561
Change-Id: Ia37433e35482492b7226c87a670bef3399ac4bb6
2011-09-30 15:26:34 +08:00
Svetoslav Ganov
2783b4fa43 Merge "ActivityChooserView shows "see all" improperly." 2011-09-29 17:54:22 -07:00
Fabrice Di Meglio
46c78b4de1 Merge "Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)" 2011-09-29 17:53:09 -07:00
Romain Guy
638f17c1b7 Merge "TextureView works best when it draws stuff. Bug #5391188" 2011-09-29 17:23:52 -07:00
Romain Guy
59c7f80dd2 TextureView works best when it draws stuff.
Bug #5391188

Change-Id: I5e754881ccb08ff288ebd60de77282c9cbcf3f86
2011-09-29 17:21:45 -07:00
repo sync
7960d9f888 Fix IPv6 on wifi
Bug: 5388757
Change-Id: I3c8c776c26dad1daa9801d0455fde749c0206401
2011-09-29 16:59:01 -07:00
Svetoslav Ganov
1c07e22c36 ActivityChooserView shows "see all" improperly.
1. The cooser was presenting the "Show all" option if the number
   of available activities was more than the initial max count of activities
   to be shown. Since the show all option is added to the drop down
   the latter becomes effectively one longer than the initial max activity
   count which may make the drop down taller than client expectats. Also
   this leads to the case where if the activities are one more than the
   initial activity count pressing the show all button will just replace
   the show all item with the activity that did not fit - this is somehow
   annoying to the user.

bug:5379282

Change-Id: I2693214cb0b66edb2a3bdffc01ed29139341111c
2011-09-29 16:51:04 -07:00
Amith Yamasani
966222ef24 Merge "Handle the case of Preference lists that have header views inserted at the top." 2011-09-29 16:48:55 -07:00
Romain Guy
1e70aa94c1 Merge "Add system property to force hw acceleration." 2011-09-29 16:39:16 -07:00
Romain Guy
9622e20486 Add system property to force hw acceleration.
Change-Id: I538e641435f282b1af20866a8acd1f8d292734c4
2011-09-29 16:38:24 -07:00
Mangesh Ghiware
293fe94920 Merge "Force a WebView pictureset reset on screen rotation." 2011-09-29 15:57:51 -07:00
Amith Yamasani
2d43d283fc Handle the case of Preference lists that have header views inserted at the top.
Without this change, wrong Preference is returned when you select one.
Subtract the number of headers from the index before querying the adapter.
Needed for:
Bug: 5203189

Change-Id: Iba7277789ebbd7e3e9954931b1ea06c7e34f3c15
2011-09-29 15:16:16 -07:00
Philip Milne
a15cb2cda7 Merge "Fix for 5393156" 2011-09-29 15:01:27 -07:00
Philip Milne
4a145d7262 Fix for 5393156
. Fix for the above.
. Make instances of Space invisible by default.
. Correctly accomodate parental constraints when row/col order is undefined.

This fix allows GridLayout to accomodate simple dependencies between
its axes. In the example given in bug 5393156, the presence of a
multi-line TextView means that GridLayout can only compute its height
after it has computed its width. This fix adds a second measurement pass
to GridLayout that passes infomation betwen the axes, using the GridLayout's
orientation property to indicate which axis should be examined first.

Change-Id: I90761c6fcfe8edc7ef6d9a89076fd5cda3adc0a4
2011-09-29 14:48:44 -07:00
Mark Wagner
77e6a55f2f bugfix 5381702 MMS app puts temporary files on sdcard in wrong location
move this code into the app

Change-Id: Ieca6c603ee1163524ddb855800ade5e5a8fff0e5
2011-09-29 13:58:59 -07:00
Mangesh Ghiware
e8b05e858a Force a WebView pictureset reset on screen rotation.
This fixes some stale content issues when rotating the screen.

Bug: 5357237
Bug: 5361852
Change-Id: I574dac15dbb1a35a8830377848f38ba2b766f095
2011-09-29 13:41:34 -07:00
Steven Ross
329979c9e6 calling back SetupFaceLock to clean up temporary gallery
This is done when the backup lock is complete or canceled.
If successful, the permanent gallery is replaced with the new one.
If canceled, the temporary gallery is deleted

Also deletes the main gallery if the lock type is changed from facial recognition

Change-Id: Id1ce804dec6b71b6410af53c050ad265c4cad5b0
2011-09-29 16:00:59 -04:00
Daniel Sandler
9ee9dcd256 Bring back nyandroid ADB icon.
Change-Id: Ic1124ef985aa8b7912499b7ff1c150fe982b882d
2011-09-29 15:50:12 -04:00
Fabrice Di Meglio
a130e5f59d Fix bug #5387832 [UI/Visual] Address of the website is not displayed properly(second line of the address is partly shown)
- make DynamicLayout honor max lines
- make StaticLayout.generate() take maxLines as a parameter instead of using the field mMaximumVisibleLineCount

Change-Id: I9eafb1be4b8bb2aa881514955a6903f559cb6a1e
2011-09-29 12:44:16 -07:00
Daniel Sandler
3d0d7b4172 Merge "Increase padding in notifications." 2011-09-29 11:57:23 -07:00
Daniel Sandler
0e6d751e6a Increase padding in notifications.
Bug: 5388349
Change-Id: I2649826a7244872bf0ebf1688ac695f38c6c2edf
2011-09-29 14:48:43 -04:00