Commit Graph

1524 Commits

Author SHA1 Message Date
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
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
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
Adam Powell
1914971c6b Merge "Fix bug 3242393 - overscroll effect missing from lists which drag but are always visible" into honeycomb 2011-01-24 15:03:16 -08:00
Adam Powell
4ce35419ce Fix bug 3242393 - overscroll effect missing from lists which drag but
are always visible

Change-Id: I20d73c452c7b98f1a046e356d0c6cdbfc8e5fe7a
2011-01-24 14:55:00 -08:00
Gilles Debunne
88b5953ab2 Merge "NULL inputType text fields should never show the IME." into honeycomb 2011-01-24 14:46:57 -08:00
Gilles Debunne
705a27a97c Merge "Non-editable TextViews should not display a cursor." into honeycomb 2011-01-24 14:46:42 -08:00
Gilles Debunne
98dbfd4940 Non-editable TextViews should not display a cursor.
Bug 3381320

The tests were inconsistent between makeBlink and onDraw.
If the text is non-editable, do not draw the cursor.

Change-Id: I0405e59444261a553e868b3ae5bdddd278f60bb2
2011-01-24 12:54:10 -08:00
Gilles Debunne
8cbb4c6e30 NULL inputType text fields should never show the IME.
Bug 3381317

Changes made in https://android-git.corp.google.com/g/#change,91880
displayed the IME onFocus. However, the test was not consistent to what
is done in touch event. textIsEditable is now checked too.

Change-Id: If11382c1c90a557839b87d62494253470c42b621
2011-01-24 12:33:56 -08:00
Chet Haase
67005b05cc Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb 2011-01-24 09:24:59 -08:00
Gilles Debunne
7108724d4b Merge "New fix for popup behavior in AutoCompleteTextViews." into honeycomb 2011-01-24 08:58:07 -08:00
Chet Haase
daf98e941e Use optimized display lists for all hwaccelerated rendering
Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

In addition, display list renderering has been optimized so that
any view's recreation of its own display list (which is necessary whenever
the visuals of that view change) will not cause any other display list
in its parent hierarchy to change. Instead, when there are any visual
changes in the hierarchy, only those views which need to have new
display list content will recreate their display lists.

This optimization works by caching display list references in each
parent display list (so the container of some child will refer to its
child's display list by a reference to the child's display list). Then when
a view needs to recreate its display list, it will do so inside the same
display list object. This will cause the content to get refreshed, but not
the reference to that content. Then when the view hierarchy is redrawn,
it will automatically pick up the new content from the old reference.

This optimization will not necessarily improve performance when applications
need to update the entire view hierarchy or redraw the entire screen, but it does
show significant improvements when redrawing only a portion of the screen,
especially when the regions that are not refreshed are complex and time-
consuming to redraw.

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
2011-01-24 08:43:20 -08:00
Svetoslav Ganov
156f20919b DatePicker is picking the wrong date
bug:3375074

    1. The logic for updating the higher rank fields on wrapping of
       lower rank ones was incorrect. Updated that logic.

    2. On reaching the min/max date the spinners did not stop
       when reaching that date. Now spinners stop at min/max.

    3. Fixed a couple of edge case bugs while setting the
       the min and max dates of the DatePicker on the fly.

    4. Restricted the scrolling/flinging to end at the min
       and max dates.

Change-Id: Ibb588ea2cf951cf8d50328bbfbe7ebdad7ee8067
2011-01-24 05:21:32 -08:00
Adam Powell
2bed570bba Fix bug 3367627 - spontaneous crash
Fix a little-traversed codepath that could cause some grief.

Change-Id: I75e6931c3208a0f18b40446f23a2fdd5a0065ce8
2011-01-23 19:20:43 -08:00
Gilles Debunne
4a74dbc3f2 New fix for popup behavior in AutoCompleteTextViews.
Bug 3374144

The fix in https://android-git.corp.google.com/g/#change,91880 is not
sufficient. An updated adapter needs to be able to force an update of
the poup result list.

Addded a flag that prevents the popup from being re-opened when it has
previously been closed by a user action.

Change-Id: I45fab056c8ebd6dc4317430213f2bc37b51b79e3
2011-01-23 18:20:43 -08:00