Commit Graph

1536 Commits

Author SHA1 Message Date
Gilles Debunne
8f8aac5e8a Merge "Pixel were missing on the last line of text when using MaxLines." into honeycomb 2011-01-31 18:14:05 -08:00
Gilles Debunne
0ad4f0963a Merge "Patches for the Paste window behavior." into honeycomb 2011-01-31 16:22:25 -08:00
Svetoslav Ganov
1c91433f7c Merge "Set time dialog display changes AM/PM at 1 instead of 12" into honeycomb 2011-01-31 16:11:59 -08:00
Gilles Debunne
11f9647e03 Merge "Hint text is visible when using center gravity." into honeycomb 2011-01-31 15:29:56 -08:00
Gilles Debunne
3ce726eb94 Patches for the Paste window behavior.
Bug 3409440

Change-Id: Id266bb83aa6e1912817995881daa9c24a1553c32
2011-01-31 15:20:50 -08:00
Svetoslav Ganov
be17a7f269 Set time dialog display changes AM/PM at 1 instead of 12
bug:3408128

Change-Id: Ifb17cbc0f448281cebb20296dcc58766cde02965
2011-01-31 15:02:26 -08:00
Gilles Debunne
9a80a65046 Hint text is visible when using center gravity.
Bug 3379366

Non left aligned text uses the VERY_WIDE width, but the hint text
was not.

Change-Id: I7327958336acf7fe16bb89bb8b7bf9b869167d53
2011-01-31 12:57:00 -08:00
Gilles Debunne
c1eb127f4e Merge "Tabs are resized to make sure they fit in their parent." into honeycomb 2011-01-31 12:01:34 -08:00
Gilles Debunne
ccfcd9e813 Merge "Fxi initial error popup dialog in TextEdit and refreshed assets." into honeycomb 2011-01-31 11:10:53 -08:00
Gilles Debunne
0a4db3c527 Pixel were missing on the last line of text when using MaxLines.
Bug 3295544

Only the last line of text includes the bottomPadding (extra line
spacing below the characters' descent. When The text is clipped using
maxLines, the desired height correctly added this value, but getLineTop
and getLineDescent are also used when the layout is drawn.

The fix is to make the layout aware of its clipping so that these
values are correctly updated.

Change-Id: I703656cf45022d34a90f55f0ed8fc5e4b30f80b1
2011-01-30 18:23:13 -08:00
Adam Powell
c9cb308371 Merge "Fix bug 3405899 - android.view.WindowManager$BadTokenException" into honeycomb 2011-01-30 16:12:56 -08:00
Adam Powell
65a1de963a Fix bug 3405899 - android.view.WindowManager$BadTokenException
Clear any pending runnables involved with TextViews when cursor
controllers are released

Change-Id: I96898fcc237f20d0b0f2351181244cb171fa2083
2011-01-30 15:47:29 -08:00
Gilles Debunne
12ab64593f Auto-clearing setError popup
Bug 3403325

Error popup has to be dismissed whether or not the key was handled.

Change-Id: Ib6326b27fc521398f3cb0c546d29a7de9df18375
2011-01-30 12:11:24 -08:00
Gilles Debunne
f1f409a389 Fxi initial error popup dialog in TextEdit and refreshed assets.
Bug 3398923

Set the background of the popup when it is created so that the first
measure is correct.

New assets.

Change-Id: I4803754ef3115429a608d890f56c6b0c8033d253
2011-01-28 18:30:52 -08:00
Dianne Hackborn
6ec44395f3 Merge "Fix issue #3403539: WordPress crashes on Honeycomb" into honeycomb 2011-01-28 16:34:02 -08:00
Dianne Hackborn
1ec7e20237 Fix issue #3403539: WordPress crashes on Honeycomb
Change-Id: Ia86e26b5bd266d8e3362a04e412a58b98a062d5f
2011-01-28 14:11:17 -08:00
Gilles Debunne
d11f5d2c5e Merge "Fix for TextView's error popup behavior when using soft keyboard." into honeycomb 2011-01-28 14:07:12 -08:00
Gilles Debunne
c4d3f759dd Tabs are resized to make sure they fit in their parent.
Bug 3400841

The original bug 3365301 was fixed in
https://android-git.corp.google.com/g/#change,92920

This new version fixes problems. super.measureHorizontal has to be
called twice to correctly handle child padding, dividers... and to
enforce the original spec mode provided.

Change-Id: I1ba1c3f3b2c8296c13ca51ce330b540caaddb7eb
2011-01-28 11:42:50 -08:00
Adam Cohen
e31ecf6104 Merge "Fixing static StackView scenario (Issue: 3399844)" into honeycomb 2011-01-27 20:04:21 -08:00
Adam Cohen
c6a4716e24 Fixing static StackView scenario (Issue: 3399844)
Change-Id: Ic1e700f7b4071f6ae86912cf5f12828e3f68f412
2011-01-27 18:13:10 -08:00
Svetoslav Ganov
8a2a89588c Accessibility support to NumberPicker, DatePicker, and TimePicker
bug:3400707

Change-Id: I0d4b10e9c744e7221a9a7a74081bcee351abbaf2
2011-01-27 17:50:14 -08:00
Gilles Debunne
b7fc63f7aa Fix for TextView's error popup behavior when using soft keyboard.
Bug 3370191

The documented behavior is to hide the error when the text changes.
However, this should not be the case if the error was reset by a text watcher.

Comparing errorBefore and errorAfter as was done before is not sufficient in the
case where the error is reset to the same value. String pool optimization will re-use
the same Object and it will look like the error has not been modified (hence the
blinking behavior reported in the bug).

For this reason, TextView has a mErrorWasChanged flag. The fix is to export methods
that can use this flag as in done inside TextView when a physical keyboard is used.

These methods are hidden.

Change-Id: Ie3ec59a368f3b1588b81242890b971ac48e8ff7e
2011-01-27 16:03:52 -08:00
Adam Powell
43d7b83ed9 Merge "Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in talk > Friend Info" into honeycomb 2011-01-27 13:53:03 -08:00
Adam Powell
6f5e934b96 Fix bug 3391818 - Keyboard covers the "Show in chat list" selection in
talk > Friend Info

Make spinner dropdowns cover the IME if present without being touched
first.

Change-Id: Ie47df1ad684649de73b102e2ecf5528a35301d93
2011-01-27 13:30:55 -08:00
Gilles Debunne
17d31decef Soft keyboard is not shown when text selection mode is aborted.
Bug 3381317

Also generalized and uniformized the use of peekInstance. Added null
tests, and isActive tests before hiding.

Change-Id: Ifd1a053fd920841333e0ebab3e2a8d26b469a0f6
2011-01-27 12:55:28 -08:00
Gilles Debunne
315f386598 Merge "CustomSelectionActionModeCallback can prevent selection mode from starting." into honeycomb 2011-01-27 11:07:16 -08:00
Gilles Debunne
ddd6f39287 CustomSelectionActionModeCallback can prevent selection mode from starting.
Bug 3381317

Change-Id: I9fb52077216ed56c101ed58f8897478343369528
2011-01-27 09:49:41 -08:00
Jeff Brown
f02853f211 Merge "Fix down arrow in AutoCompleteTextView." into honeycomb 2011-01-26 23:45:59 -08:00
Svetoslav Ganov
c291a7bf7a Merge "The calendar view widget was jumping incorrectly to the next week while selectiong the last day of the week." into honeycomb 2011-01-26 22:59:23 -08:00
Svetoslav Ganov
58f51255eb The calendar view widget was jumping incorrectly to the next week
while selectiong the last day of the week.

The NumberPicker widget was getting into an inconsitent state when
reaching the end of the range (non wrapping selector wheel) and
the user touches the location of the hidden increment/decrement
button.

Change-Id: Id54103295dd2574030e2c29996061faa659a5bb7
2011-01-26 22:50:55 -08:00
Adam Cohen
53838d265e Fixing some ugly StackView relayouts on rotation
Change-Id: Ic4b11637ed73e60e1af1fcd27e5610d8f84a31fe
2011-01-26 22:25:14 -08:00
Jeff Brown
8d6d3b83fb Fix down arrow in AutoCompleteTextView.
Bug: 3337416
Change-Id: I572d55c973b9adc68765ba02197e84f3558e65bc
2011-01-26 21:08:53 -08:00
Gilles Debunne
bc3f79371b Merge "Tabs are resized to make sure they fit in their parent." into honeycomb 2011-01-26 18:09:23 -08:00
Winson Chung
b90a91c633 Making requested indices the last to be pruned when we hit cache memory limits. (3368863)
- Also tweaking disconnect delay, cache size, and memory limit

Change-Id: If67188dcb363e5a2fbc02736f82bfd783af02533
2011-01-26 16:09:09 -08:00
Gilles Debunne
6741c941a7 Tabs are resized to make sure they fit in their parent.
Bug 3365301

This is a first implementation. The text inside the tabs is clipped
and can be hardly readable.

A nicer complimentary solution is to reduce the 40dip padding in portrait mode.

Change-Id: I19439ee6a63c3f9dcdcc944ddbbc18a81949db79
2011-01-26 16:01:20 -08:00
Romain Guy
9e7c2c6ded Merge "Optimize invalidate() calls." into honeycomb 2011-01-26 15:40:16 -08:00
Romain Guy
0fd89bf722 Optimize invalidate() calls.
Change-Id: I09d99290ca74f96046702bc2604f125a1276ce05
2011-01-26 15:41:30 -08:00
Gilles Debunne
12b2dc23cc Merge "Holo theme for error popups in TextViews." into honeycomb 2011-01-26 13:33:24 -08:00
Adam Cohen
2035a4657a Fixing bug where widgets would go dead after moving to another screen
-> A memory optimization was causing AdapterViewAnimator to give up its
   reference to its adapter, rendering the widget dead.
-> Did testing, and it doesn't appear that this optimization was
   making a difference, so it appears safe to remove.

Change-Id: I274c5f73862cbda2dc5411d5c94a9ba1ac1e3635
2011-01-26 13:22:59 -08:00
Winson Chung
2c070bae44 Merge "Re-enabling queued unbinding of services after requests to the service. (3394210)" into honeycomb 2011-01-26 12:30:26 -08:00
Winson Chung
16c8d8a558 Re-enabling queued unbinding of services after requests to the service. (3394210)
- Fix for crash when detaching from window
- Potential fix for occasional IllegalStateException when updating List based widgets

Change-Id: I3d3f2bb691552a1136111043db686c4926b510c6
2011-01-26 12:09:27 -08:00
Gilles Debunne
5f059e4663 Holo theme for error popups in TextViews.
Bug 3277308

Change-Id: I9711adb848df975b95ad09fc84bba4b970e44670
2011-01-26 12:08:45 -08:00
Adam Cohen
0f16477b2d Merge "Cleaning up StackView" into honeycomb 2011-01-25 20:19:17 -08:00
Adam Cohen
78db1aa911 Cleaning up StackView
Change-Id: I38cd8a5f2d25973d3f97551be0a873ca35044ed9
2011-01-25 17:09:34 -08:00
Gilles Debunne
4df103cf3d Merge "A long press on the selection handle no longer selects the word." into honeycomb 2011-01-25 15:59:01 -08:00
Gilles Debunne
874d77c62e A long press on the selection handle no longer selects the word.
Bug 3371448.

Change-Id: I360e6259f5f58a6f251efbe031ac46a76b7168e7
2011-01-25 15:29:13 -08:00
Amith Yamasani
6bcbf54fee Merge "Heed the focusability flag in SearchView and set the default to true." into honeycomb 2011-01-25 12:35:06 -08:00
Amith Yamasani
7f8aef6d5b Heed the focusability flag in SearchView and set the default to true.
Bug: 3385804

Also, allow navigation through keyboard.

Change-Id: I444f142518172b35f33c2a5129179ac996d80dc7
2011-01-25 12:10:56 -08:00
Dianne Hackborn
5d9d03a023 Maybe fix issue #3093599: java.lang.IndexOutOfBoundsException...
...Invalid index 0, size is 0 at
android.app.ActivityThread.performPauseActivity(ActivityThread.java:2326)

It looks like if an arrow key is dispatched between the time the
list view is told its data set has changed and it does the resulting
layout pass, we could try to move the position to a now invalid
index.  This may prevent that from happening.

Also put in a better error message if saving state of a fragment
whose target is no longer in the fragment manager.

And fix a bug in PackageManager where we could return a null from
queryIntentActivities().

And add a new API to find out whether a fragment is being removed,
to help fix issue #3306021: NPE at
android.app.AlertDialog.getDefaultDialogTheme(AlertDialog.java)

Next, for new HC apps we can delay committing data to
storage until the activity is stopped.

Finally, use the new multi-threaded AyncTask executor in a few
places, so we don't have worked blocked by long-running tasks from
the application.

Change-Id: I27b2aafedf2e1bf3a2316309889613fa539760f3
2011-01-24 21:23:03 -08:00
Svetoslav Ganov
33322052ed Merge "DatePicker is picking the wrong date" into honeycomb 2011-01-24 15:26:42 -08:00