Commit Graph

276 Commits

Author SHA1 Message Date
Daisuke Miyakawa
b5d9132d4e Fix ArrayAdapter, which was fixed in cupcake_dcm and kept fixed until donut, but is broken in eclair.
Original internal Change: 147459-p9
2009-07-09 14:29:15 +09:00
Android (Google) Code Review
78afffeec7 am bfc29f67: Merge change 6485 into donut
Merge commit 'bfc29f67db73ac1d21188d1ec942757dc95ecc92'

* commit 'bfc29f67db73ac1d21188d1ec942757dc95ecc92':
  Cleanup Toast.java.
2009-07-08 12:04:05 -07:00
Romain Guy
0420cc7fed Cleanup Toast.java. 2009-07-08 11:59:00 -07:00
Android (Google) Code Review
0236141742 am 7bf9f930: Merge change 6415 into donut
Merge commit '7bf9f930d986335cd24dc15e2ee588b851f194d4'

* commit '7bf9f930d986335cd24dc15e2ee588b851f194d4':
  Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag.
2009-07-07 15:21:16 -07:00
Romain Guy
fb7ed10735 Fixes #1748951. Calling setListSelection() explicitely should cancel the selection hidden flag. 2009-07-07 15:18:30 -07:00
Kenny Root
e855d130ae Fix spelling mistakes in Javadoc 2009-07-07 12:46:03 -07:00
Kenny Root
abca4e8384 Fix logic inversion in ListView Javadoc
The Javadoc for isItemChecked, getCheckedItemPosition, and
getCheckedItemPositions stated the return was valid if conditions
were the inverse of what the method checked for.

This was pointed out in Android issue 2366
2009-07-07 12:43:19 -07:00
djken
d663dab7db The comment lack of symbol # and parameter data type. This will cause compilation failed. 2009-07-07 12:39:40 -07:00
Cyril Mottier
c312942b77 Add of Javadoc comments on undocumented methods.
Use of a constant defined in SensorManager for computing deceleration.
2009-07-07 12:39:11 -07:00
Romain Guy
a2b5dab5b7 am 870e09fc: Fixes #1963229. Introduces Context#isRestricted().
Merge commit '870e09fcd2dfdc12ac318962efd28b0420c562bb'

* commit '870e09fcd2dfdc12ac318962efd28b0420c562bb':
  Fixes #1963229. Introduces Context#isRestricted().
2009-07-06 17:10:41 -07:00
Romain Guy
870e09fcd2 Fixes #1963229. Introduces Context#isRestricted().
A restricted Context is a special type of Context that prevents specific features
from being used. For instance, android:onClick, used by View, can be dangerous when
used from within apps widgets. By using a restricted Context to inflate apps widgets,
widgets providers are prevented from using android:onClick.
2009-07-06 16:45:17 -07:00
Android (Google) Code Review
5af08490c5 Merge change 6256
* changes:
  Refactoring of VideoView.java class
2009-07-06 15:54:49 -07:00
James Dong
fdf3ac6cdc Refactoring of VideoView.java class 2009-07-06 15:30:56 -07:00
Android (Google) Code Review
005ae544f9 am 79ec07b3: Merge change 6241 into donut
Merge commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed'

* commit '79ec07b333f8982ee83de8eeb0b1927a6cb112ed':
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:12:36 -07:00
Android (Google) Code Review
79ec07b333 Merge change 6241 into donut
* changes:
  Fixes #1444844. Set a maximum fling velocity in scrollable views.
2009-07-06 13:10:50 -07:00
Android (Google) Code Review
1d6ec76f08 am 9479a516: Merge change 6154 into donut
Merge commit '9479a516cffd990ed3dfc209c5e768f4fb447812'

* commit '9479a516cffd990ed3dfc209c5e768f4fb447812':
  Fix bug (#1947162)
2009-07-06 12:00:23 -07:00
Romain Guy
4296fc4d32 Fixes #1444844. Set a maximum fling velocity in scrollable views. 2009-07-06 11:48:52 -07:00
James Dong
aa00e390c1 Fix bug (#1947162)
The bug (1947162) is caused by the fact that sometimes, surfaceChanged() is called after onCompletion().
In surfaceChanged(), start() is called automatically. The fix is to use a flag is avoid calling start()
when onCompletion() has been called already.
2009-07-06 11:30:29 -07:00
Romain Guy
28dda652a2 am a5475596: Cleanup a bunch of warnings in app widgets code.
Merge commit 'a54755962ca7725d1e2b6cacbbaece6f1cbf5af4'

* commit 'a54755962ca7725d1e2b6cacbbaece6f1cbf5af4':
  Cleanup a bunch of warnings in app widgets code.
2009-07-03 08:18:17 -07:00
Satish Sampath
9b7df7e628 am 1b1a6e40: Fix build break by adding an @hide javadoc comment.
Merge commit '1b1a6e406c4233b309baee85e14f5a563ca63c48'

* commit '1b1a6e406c4233b309baee85e14f5a563ca63c48':
  Fix build break by adding an @hide javadoc comment.
2009-07-02 15:23:40 -07:00
Satish Sampath
ed9f4c4c2f am fef8d3e4: Make search UI open up quicker to the user.
Merge commit 'fef8d3e4d8f6f46c098d04b3a57409c947ec1c75'

* commit 'fef8d3e4d8f6f46c098d04b3a57409c947ec1c75':
  Make search UI open up quicker to the user.
2009-07-02 15:23:32 -07:00
Romain Guy
a54755962c Cleanup a bunch of warnings in app widgets code. 2009-07-01 17:21:12 -07:00
Android (Google) Code Review
0901c82336 am 91c91b74: Merge change 5817 into donut
Merge commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58'

* commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58':
  Replace indeterminate progress animated asset with new ones
2009-07-01 16:01:40 -07:00
Satish Sampath
1b1a6e406c Fix build break by adding an @hide javadoc comment. 2009-07-01 19:08:05 +01:00
Satish Sampath
fef8d3e4d8 Make search UI open up quicker to the user.
On invoking the search UI, the drop down list box with past queries and shortcut items
appears after a few hundreds of milliseconds on screen. This was because we were
displaying the drop down within the onFilterCompleted callback after the list box filtered
the items based on the given query text. While that code path is necessary, for the first
invocation of the search dialog with an empty query we can show the list box before the
text stuff happens. This change does that, issuing an async request to show the drop
down after pending events have been processed.

Without this change, on an average it took 350ms for the code to show the drop down.
With this change, on an average it takes 150ms.
2009-07-01 17:55:31 +01:00
Android (Google) Code Review
2c2949a2d9 am 3a608f82: Merge change 5684 into donut
Merge commit '3a608f829b54a7653c9cc2b3bdbda0641cca37bb'

* commit '3a608f829b54a7653c9cc2b3bdbda0641cca37bb':
  Fixes #1940605. MeasureSpec's mode and height were inverted in RelativeLayout.
2009-07-01 00:07:21 -07:00
Romain Guy
b5537c4522 Replace indeterminate progress animated asset with new ones 2009-06-30 12:39:18 -07:00
Android (Google) Code Review
62ebe364cb am 3a15fbd7: Merge change 5581 into donut
Merge commit '3a15fbd7df56e44060c78d7832fbea895ceb9bbf'

* commit '3a15fbd7df56e44060c78d7832fbea895ceb9bbf':
  Add a null check in an AutoCompleteTextView callback to prevent a crash.
2009-06-29 20:17:57 -07:00
Romain Guy
baac46339d Fixes #1940605. MeasureSpec's mode and height were inverted in RelativeLayout.
Also bumps up the cache's number of Nodes.
2009-06-29 14:28:29 -07:00
Eric Fischer
d072154bdd Add a null check in an AutoCompleteTextView callback to prevent a crash.
It looks like the drop down list had already been taken down before the
callback fired so it caused a null pointer exception.  In this case just
do nothing instead.

Bug 1927858
2009-06-26 16:14:59 -07:00
Android (Google) Code Review
a2071618a0 am 6067d953: Merge change 5428 into donut
Merge commit '6067d953d7c6c0216a383fe520222fa6a23926fa'

* commit '6067d953d7c6c0216a383fe520222fa6a23926fa':
  Improve handling of FILL_PARENT in RelativeLayout.
2009-06-25 15:30:46 -07:00
Romain Guy
f782e60efc Improve handling of FILL_PARENT in RelativeLayout.
This was causing trouble with VideoView, in Gallery in particular.
2009-06-25 15:26:49 -07:00
Android (Google) Code Review
5afeaff164 am c4e0ff75: Merge change 5417 into donut
Merge commit 'c4e0ff750e98dfec61aff76f22743d819189f802'

* commit 'c4e0ff750e98dfec61aff76f22743d819189f802':
  Fixes #1943309. RelativeLayout was confused by gravities.
2009-06-25 14:52:04 -07:00
Romain Guy
f7dabb088a Fixes #1943309. RelativeLayout was confused by gravities.
RelativeLayout, when measured with AT_MOST, was applying the gravity on its
children way too early. This caused the RL to set its measured size to
a value that was larger than necessary. This fixes the issue by deferring
the positioning of the gravity-dependent children until the dimensions
of the layout are known.
2009-06-25 14:47:14 -07:00
Android (Google) Code Review
a645143c16 am eb3ec64a: Merge change 5397 into donut
Merge commit 'eb3ec64a6a962aa48a46753c6e69ce24f889a4cc'

* commit 'eb3ec64a6a962aa48a46753c6e69ce24f889a4cc':
  Fixes #1943915. Prevents circular dependency exception when using several NO_ID
2009-06-25 14:33:58 -07:00
Romain Guy
1ab621e316 Fixes #1943915. Prevents circular dependency exception when using several NO_ID
views.
2009-06-25 13:31:57 -07:00
Android (Google) Code Review
94e942107b am a1fb3950: Merge change 5394 into donut
Merge commit 'a1fb3950cf46f61800d2ca41d2020037d6b2307e'

* commit 'a1fb3950cf46f61800d2ca41d2020037d6b2307e':
  Fixes #1940605. RelativeLayout was swapping horizontal and vertical
2009-06-25 13:04:23 -07:00
Romain Guy
e24ef6032f Fixes #1940605. RelativeLayout was swapping horizontal and vertical
dependencies.
2009-06-25 13:01:55 -07:00
Android (Google) Code Review
6800050876 am 0bcfc537: Merge change 5386 into donut
Merge commit '0bcfc537e81b959a7d674deea4a5aee7f5c6eb2d'

* commit '0bcfc537e81b959a7d674deea4a5aee7f5c6eb2d':
  Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is
2009-06-25 12:07:12 -07:00
Android (Google) Code Review
0bcfc537e8 Merge change 5386 into donut
* changes:
  Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is targeted.
2009-06-25 12:05:08 -07:00
Romain Guy
b8f8de8516 Fixes #1940839. Prevents NPE in RelativeLayout when a non-existing View is
targeted.
2009-06-25 12:03:56 -07:00
Android (Google) Code Review
ecf2b68d83 am 7941e903: Merge change 5091 into donut
Merge commit '7941e903c973af66075bbd4fa4bcadf021a61ccc'

* commit '7941e903c973af66075bbd4fa4bcadf021a61ccc':
  * new screen resolution support impl.
2009-06-24 17:56:05 -07:00
Android (Google) Code Review
7941e903c9 Merge change 5091 into donut
* changes:
  * new screen resolution support impl.   * use full window for activities, and shift & clip the content   * refactored the compatibility code, and introdcued Translator class to handle cooridnate translations.   * removed a workaround to handle an activity with configChagne=rotation in old implementation.   * I'll fix background issue on rotation in next CL.
2009-06-24 17:53:57 -07:00
Android (Google) Code Review
d2341b3892 am 69e1f472: Merge change 5289 into donut
Merge commit '69e1f472c33e241f729c470285a5680866ede75c'

* commit '69e1f472c33e241f729c470285a5680866ede75c':
  Fix TextView's fading edge when compound drawables are setup.
2009-06-24 17:39:19 -07:00
Romain Guy
076dc9fa57 Fix TextView's fading edge when compound drawables are setup.
TextView was not correctly taking into account the extra space taken
by compound drawable when drawing the fading edge of a marquee'd
text.
2009-06-24 17:17:51 -07:00
Romain Guy
372cecd692 am 95607038: Reverse the order in which RelativeLayout measures and positions children.
Merge commit '956070383945db5f842ec05e507fd0233705738c'

* commit '956070383945db5f842ec05e507fd0233705738c':
  Reverse the order in which RelativeLayout measures and positions children.
2009-06-24 15:45:37 -07:00
Romain Guy
6b21d36293 am a0fd1d74: Fix NPE in RelativeLayout.
Merge commit 'a0fd1d742d8edaf6c7e79bdd16a9b0c44fda4503'

* commit 'a0fd1d742d8edaf6c7e79bdd16a9b0c44fda4503':
  Fix NPE in RelativeLayout.
2009-06-24 15:45:27 -07:00
Android (Google) Code Review
bed64a2c42 am 83f6b130: Merge change 5237 into donut
Merge commit '83f6b130181982eb653621c2c4028feae36f1ffb'

* commit '83f6b130181982eb653621c2c4028feae36f1ffb':
  Calling setItemChecked(p, true) twice would toggle the selection in ListView.
2009-06-24 15:45:03 -07:00
Android (Google) Code Review
217b208ebd am a4335ee8: Merge change 5236 into donut
Merge commit 'a4335ee8a7ce9e45b1d3b7a0eb7aefa16b7024b1'

* commit 'a4335ee8a7ce9e45b1d3b7a0eb7aefa16b7024b1':
  RelativeLayout was ignoring some dependencies.
2009-06-24 15:44:51 -07:00
Romain Guy
9560703839 Reverse the order in which RelativeLayout measures and positions children.
This fixes RelativeLayouts with height=wrap_content.
2009-06-24 14:38:34 -07:00