Commit Graph

522 Commits

Author SHA1 Message Date
Romain Guy
2e61d7ca64 Merge "Bring back buttons in dialogs. Bug #2390537" 2010-01-22 11:01:42 -08:00
Romain Guy
cf635ae7c6 Bring back buttons in dialogs.
Bug #2390537
2010-01-22 11:00:29 -08:00
Amith Yamasani
bd6f964da1 am 658dc0d4: am b35b8c13: Merge "Security fix in accessibility - don\'t read out password. # 2371557" into eclair
Merge commit '658dc0d4b03015eb4a692968b82b664e24aa605a'

* commit '658dc0d4b03015eb4a692968b82b664e24aa605a':
  Security fix in accessibility - don't read out password. # 2371557
2010-01-22 09:44:16 -08:00
Romain Guy
177b580f56 Merge "Add a new attribute to LinearLayout: useLargestChild. Bug #2379138" 2010-01-21 19:11:20 -08:00
Romain Guy
5b1b241710 Add a new attribute to LinearLayout: useLargestChild.
Bug #2379138

This new attribute is to be used when the LinearLayout is wrap_content but you want
all the children inside to have the same dimension. Set useLargestChild to true and
give all the children a width/height of 0 and a weight of 1.0.
2010-01-21 19:09:51 -08:00
Grace Kloba
01752fe46b am 8d4baa78: am d79d1c72: Merge "If ZoomButttonsController detects more than one pointer, give up the control. This should enable the View behind it, like WebView, will always get the multi-pointer events even when ZoomButtonsController is up." into eclair
Merge commit '8d4baa789302b2c0f2657af9ba6dc98fcc926ee2'

* commit '8d4baa789302b2c0f2657af9ba6dc98fcc926ee2':
  If ZoomButttonsController detects more than one pointer,
2010-01-21 17:56:46 -08:00
Paul Westbrook
68f2f547f5 Bug 2330111
Make NumberPicker public

Made setCurrent() more robust, as the value needs to be within the range
specified earlier. setCurrent() will now throw an exception
if the specified doesn't fall in the range
2010-01-21 16:56:57 -08:00
Romain Guy
2d51bff2b6 Dpad based scrolling in ListView was mishandling the recycler:
recyclable views were removed instead of detached and non-recyclables views
were detached instead of removed.
2010-01-19 17:34:10 -08:00
Romain Guy
5dbe0c753a Merge "Measure AutoCompleteTextView's dropdown to have enough room for all items. Bug #2363514" 2010-01-19 16:57:51 -08:00
Romain Guy
73beee234b Measure AutoCompleteTextView's dropdown to have enough room for all items.
Bug #2363514
2010-01-19 16:56:05 -08:00
Joe Onorato
fd24feaf79 Merge "Add DateTimeView, a widget that shows a time or the date depending on the current time. Use that for notifications instead of a TextView that doesn't ever update." 2010-01-19 16:45:05 -08:00
Joe Onorato
c83bb730ec Add DateTimeView, a widget that shows a time or the date depending on the
current time.  Use that for notifications instead of a TextView that
doesn't ever update.

BUG 1563917
2010-01-19 16:32:22 -08:00
Amith Yamasani
658dc0d4b0 am b35b8c13: Merge "Security fix in accessibility - don\'t read out password. # 2371557" into eclair
Merge commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe' into eclair-plus-aosp

* commit 'b35b8c1334b8bb8c4fb8b679fdb0b9bcbd5b41fe':
  Security fix in accessibility - don't read out password. # 2371557
2010-01-19 11:53:59 -08:00
Amith Yamasani
b35b8c1334 Merge "Security fix in accessibility - don't read out password. # 2371557" into eclair 2010-01-19 11:50:39 -08:00
Grace Kloba
8d4baa7893 am d79d1c72: Merge "If ZoomButttonsController detects more than one pointer, give up the control. This should enable the View behind it, like WebView, will always get the multi-pointer events even when ZoomButtonsController is up." into eclair
Merge commit 'd79d1c72991e587294432e80d091e3ae26a0c103' into eclair-plus-aosp

* commit 'd79d1c72991e587294432e80d091e3ae26a0c103':
  If ZoomButttonsController detects more than one pointer,
2010-01-18 23:43:20 -08:00
Grace Kloba
d4d1d6eca0 If ZoomButttonsController detects more than one pointer,
give up the control. This should enable the View behind
it, like WebView, will always get the multi-pointer
events even when ZoomButtonsController is up.
2010-01-18 10:43:59 -08:00
Dianne Hackborn
d68478467e First pass at new device policy and administration APIs.
This adds new DevicAdmin, DevicePolicyManager, and DeviceAdminInfo classes.
See the java docs for each on documentation on them.  Basically: a DeviceAdmin
is what you derive from to administer a device; DevicePolicyManager is what you
use to apply and check your policy requirements and perform other administration
tasks.
2010-01-17 15:10:24 -08:00
Amith Yamasani
91ccdb5f10 Security fix in accessibility - don't read out password. # 2371557
Check for password type before send accessibility event.
[Submitting for Svet]
2010-01-14 18:56:02 -08:00
Romain Guy
52e2ef8cac Update ListView's children when the drawing cache color hint changes.
Bug #2371777
2010-01-14 12:18:15 -08:00
Mark Wagner
670dd81942 bugfix endfling case (bug 2300534)
When the menu comes up over the activity we call removeCallbacks(mFlingRunnable);
The effect of that is that our mTouchMode variable is left dangling in the fling
state.  This change calls endFling() after removeCallbacks.  In the specific bug
being addressed we depend on reportScrollStateChange() because we avoid doing
requeries while scrolling.
2010-01-13 16:42:01 -08:00
Romain Guy
5c7a5d0857 Merge "Fix how RelativeLayout handles alignParentBottom/Right when dimension is wrap_content. Bug: #2194109." 2010-01-11 16:48:10 -08:00
Romain Guy
42460ac1bb Fix how RelativeLayout handles alignParentBottom/Right when dimension is wrap_content.
Bug: #2194109.
2010-01-11 16:47:30 -08:00
Scott Main
333beab9d6 am c9a26f29: am aa3b5961: javadoc change: fix the selector sample XML in the class description (was broken due to improper ordering)
Merge commit 'c9a26f291b8a845fcb5e3034c259d13d3297a98d'

* commit 'c9a26f291b8a845fcb5e3034c259d13d3297a98d':
  javadoc change: fix the selector sample XML in the class
2010-01-11 13:00:14 -08:00
Scott Main
c9a26f291b am aa3b5961: javadoc change: fix the selector sample XML in the class description (was broken due to improper ordering)
Merge commit 'aa3b5961c0142fe2fe87a5e4f67a12b3728f1bea' into eclair-plus-aosp

* commit 'aa3b5961c0142fe2fe87a5e4f67a12b3728f1bea':
  javadoc change: fix the selector sample XML in the class
2010-01-08 16:33:45 -08:00
Romain Guy
980a938c1c Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
2010-01-08 15:11:38 -08:00
Scott Main
aa3b5961c0 javadoc change: fix the selector sample XML in the class
description (was broken due to improper ordering)
2010-01-08 12:35:11 -08:00
Bjorn Bringert
1b4a031954 Merge "Get correct density info when using resource URIs in ImageView" 2010-01-07 02:21:58 -08:00
Romain Guy
de057c1dd4 Merge "Fix two ListView bugs related to onAttachedToWindow/onDetachedFromWindow. Bug: #2359368." 2010-01-06 18:50:53 -08:00
Romain Guy
21875052ad Fix two ListView bugs related to onAttachedToWindow/onDetachedFromWindow.
Bug: #2359368.

onDetachedFromWindow() would never be called for views living in the scrap heap, but onAttachedToWindow() could be called several times for views recycled from the scrap heap.
2010-01-06 18:48:08 -08:00
Bjorn Bringert
9d8d9c22bb Get correct density info when using resource URIs in ImageView
Before, when an android.resource URI was passed to
ImageView.setImageURI(), it was loaded through an InputStream.
This didn't get the density information correctly.

Instead, we use Resources to load the Drawable, which fixes
the denisty problem.

Change-Id: Ie8427ea04da43f414b49014d012671fc0aa27a30
2010-01-06 22:52:41 +00:00
Bjorn Bringert
d755b06805 Add RemoteViews.setBundle() method.
This is needed for setting the app search data for an upcoming search
source selection widget which is @RemoteView.

Change-Id: I2d04ff68d0ad7f12e88ed25ded75e174a8403bcc
2010-01-06 17:38:17 +00:00
Adam Powell
c7426628df Don't perform ListView click events for INVALID_POSITION.
Addresses bug 2329294
2010-01-05 17:32:23 -08:00
Romain Guy
992cc4282e Ignore key events when the widget is disabled.
Bug: #2353635.
2010-01-04 15:39:40 -08:00
Romain Guy
7d3cbfe2db Merge "Plug memory leak in Simple*Adapter, due to the misuse of a WeakHashMap. This removes an optimization but the benefit is not worth the memory leak. Bug: #2353474." 2010-01-04 14:54:02 -08:00
Romain Guy
c8ca2a3a07 Plug memory leak in Simple*Adapter, due to the misuse of a WeakHashMap.
This removes an optimization but the benefit is not worth the memory leak.
Bug: #2353474.
2010-01-04 14:52:38 -08:00
Romain Guy
1c2d1d0296 Merge "Do not start filtering if the first character is a space. Bug: #2347833." 2010-01-04 14:34:55 -08:00
Romain Guy
cf6c5720a7 Do not start filtering if the first character is a space.
Bug: #2347833.
2010-01-04 14:34:08 -08:00
Romain Guy
520c4204fb Fix obsolete advice in RelativeLayout's documentation. 2010-01-04 10:56:38 -08:00
Jean-Baptiste Queru
5237f019b9 am c4978805: merge from open-source master
Merge commit 'c4978805dc8837570701629a9b8098e80804ad34'

* commit 'c4978805dc8837570701629a9b8098e80804ad34':
  ImageButton example doesn't work. Default state should be at the last.
  Time.parse3339 range checking and proper 'sec-frac' skip
2009-12-21 15:52:57 -08:00
Jean-Baptiste Queru
c4978805dc merge from open-source master 2009-12-21 15:32:25 -08:00
Jeff Sharkey
a503f6f7cf Adjust for compatibility mode before setSourceBounds().
When invoked from an anyDensity="false" or pre-Donut app,
View.getLocationOnScreen() returns values in compatibility
mode.  This change fixes QuickContact and RemoteViews to
always adjust based on CompatibilityInfo.applicationScale.

Also deprecates an extra previously being used to pass
Rect for QuickContact windows.

Fixes http://b/2306495
2009-12-21 14:18:09 -08:00
Adam Powell
c854f281a1 Force a re-layout of children if ListView is out of sync with the
adapter in onFocusChanged. Addresses bug 2157773
2009-12-18 10:26:52 -08:00
NoraBora
41418ecfa7 ImageButton example doesn't work. Default state should be at the last.
see res/res/drawable/button_inset.xml
2009-12-17 11:38:15 -05:00
Eric Fischer
7b4787b737 am 7bbb1999: am 72521860: Merge change I8f657a99 into eclair
Merge commit '7bbb199912bd4bc7b4827358bcdd90acc826e7fa'

* commit '7bbb199912bd4bc7b4827358bcdd90acc826e7fa':
  Avoid a crash trying to get a substring whose start is after its end.
2009-12-15 15:04:18 -08:00
Romain Guy
611cd3f4a9 Fixes layout shifts in LinearLayout.
Bug: 2329142.
2009-12-15 12:00:37 -08:00
Eric Fischer
7bbb199912 am 72521860: Merge change I8f657a99 into eclair
Merge commit '725218602e8505cd6fe3075253fcb792727e2431' into eclair-plus-aosp

* commit '725218602e8505cd6fe3075253fcb792727e2431':
  Avoid a crash trying to get a substring whose start is after its end.
2009-12-15 07:42:03 -08:00
Eric Fischer
32929413ff Avoid a crash trying to get a substring whose start is after its end.
Constrain the start of the extracted text, not just the end, to the length
of the content.

Approver: ryanpc
Bug: 2323813
2009-12-14 17:35:36 -08:00
Paul Westbrook
7762d93621 Unbundling work
Moved AndroidHttpClient, Rfc822InputFilter, Rfc822Validator
NumberPicker, NumberPickerButton to android-common
---
2009-12-14 09:24:09 -08:00
Bjorn Bringert
acdef59d66 Fix TabHost NPE when there are no tabs
Fixes http://b/issue?id=2318588

Change-Id: If90ee7e2b777e4c77fdd0ae768d1ececa792ee1b
2009-12-11 15:48:31 +00:00
Android (Google) Code Review
159f001541 Merge change I98819b18 into eclair-mr2
* changes:
  Allow resource and file URIs in ImageView.setImageURI()
2009-12-09 23:32:58 -08:00