Commit Graph

90 Commits

Author SHA1 Message Date
Eric Fischer
1dc38caf5f am 88f2acb0: Merge change Iec1f8a2e into eclair
Merge commit '88f2acb066f2b66a01807ad4f3d26ef575a1bf37' into eclair-plus-aosp

* commit '88f2acb066f2b66a01807ad4f3d26ef575a1bf37':
  Add Turkish accented letters for G and S on the hard keyboard.
2009-09-30 21:15:06 -07:00
Eric Fischer
ec1f8a2ece Add Turkish accented letters for G and S on the hard keyboard.
Bug 2158331
2009-09-30 18:03:47 -07:00
Cary Clark
ed843820f7 am eaa18dec: scroll text field with touch
Merge commit 'eaa18dec91b6dd0ce3191a9ab65cdc95ef68b935' into eclair-plus-aosp

* commit 'eaa18dec91b6dd0ce3191a9ab65cdc95ef68b935':
  scroll text field with touch
2009-09-29 12:51:19 -07:00
Cary Clark
eaa18dec91 scroll text field with touch
Add a hidden public method to text/method/Touch.java that
computes the maximum scroll amount for a text field.

Remove 'faketouch' code; it causes a crash and is
no longer required.

Pass the percentage of the current scroll from the UI
thread to webkit. One additional fix is to allow very
small movements which are currently disallowed because
they are smaller than 'smallerSlop' in WebTextView.java.

Companion fix is in external/webkit.

Fixes http://b/issue?id=2133049
2009-09-29 15:42:37 -04:00
Debajit Ghosh
6351cf72a5 am 193a6261: Merge change 26537 into eclair
Merge commit '193a6261894619985866220c320017f0831d6055' into eclair-plus-aosp

* commit '193a6261894619985866220c320017f0831d6055':
  add hashCode() and equals() to Rfc822Token, as well as a convenience tokenizer method to Rfc822Tokenizer, as part of a calendar guest bugfix.
2009-09-23 13:45:55 -07:00
Debajit Ghosh
78a5b8106a add hashCode() and equals() to Rfc822Token, as well as a convenience tokenizer method to Rfc822Tokenizer, as part of a calendar guest bugfix. 2009-09-23 10:44:18 -07:00
Dianne Hackborn
3ffe6b12c7 am 7f3fb7de: Merge change 26130 into eclair
Merge commit '7f3fb7dec2afdffa37e3067ca8a5b9d01809a9ce' into eclair-plus-aosp

* commit '7f3fb7dec2afdffa37e3067ca8a5b9d01809a9ce':
  Turn animations on by default.
2009-09-21 17:40:06 -07:00
Dianne Hackborn
bfe319e06a Turn animations on by default.
Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
2009-09-21 17:26:41 -07:00
Debajit Ghosh
6ce4af8587 am 70db3a20: Merge change 25414 into eclair
Merge commit '70db3a20cfa73fad0794679dda4102461a88057b' into eclair-plus-aosp

* commit '70db3a20cfa73fad0794679dda4102461a88057b':
  refactor copy-and-paste email address filtering code.
2009-09-17 11:01:57 -07:00
Android (Google) Code Review
70db3a20cf Merge change 25414 into eclair
* changes:
  refactor copy-and-paste email address filtering code. add a column to Calendar.Events contract class.
2009-09-17 13:53:37 -04:00
Amith Yamasani
aa3620f399 am 12cc9d82: Add a new flag for IMEs to disable suggestions for certain fields.
Merge commit '12cc9d82a6f3bd2aebad8ed97a29e2cbad3ec77a' into eclair-plus-aosp

* commit '12cc9d82a6f3bd2aebad8ed97a29e2cbad3ec77a':
  Add a new flag for IMEs to disable suggestions for certain fields.
2009-09-17 08:44:53 -07:00
Eric Fischer
b3278a5c8a am 0828beee: Merge change 25386 into eclair
Merge commit '0828beee503b99a8f38f456416592d4ed6c799ae' into eclair-plus-aosp

* commit '0828beee503b99a8f38f456416592d4ed6c799ae':
  Add one more hardware keyboard character popup: \ if you hold /
2009-09-17 08:42:29 -07:00
Debajit Ghosh
4c8b3594a6 refactor copy-and-paste email address filtering code.
add a column to Calendar.Events contract class.
2009-09-16 20:38:18 -07:00
Amith Yamasani
12cc9d82a6 Add a new flag for IMEs to disable suggestions for certain fields. 2009-09-16 18:51:46 -07:00
Eric Fischer
cebe347e7f Add one more hardware keyboard character popup: \ if you hold / 2009-09-16 16:26:48 -07:00
Eric Fischer
dda648f00a am b6a7ea54: Merge change 25153 into eclair
Merge commit 'b6a7ea540ef9537bcedc707a87514e63438a533a' into eclair-plus-aosp

* commit 'b6a7ea540ef9537bcedc707a87514e63438a533a':
  Reconcile the character popups for the hard and soft keyboards.
2009-09-15 16:48:12 -07:00
Eric Fischer
4ef29959bd Reconcile the character popups for the hard and soft keyboards.
Have the hardware keyboard popups for digits and symbols include
all the same characters as the soft keyboard has for those keys.

Bug 2056195
2009-09-15 16:04:39 -07:00
Eric Fischer
76d82371a9 am 13bc4ad1: Merge change 24902 into eclair
Merge commit '13bc4ad18bc401c2a80e7dde8cba18841d709a78' into eclair-plus-aosp

* commit '13bc4ad18bc401c2a80e7dde8cba18841d709a78':
  Add "rtsp" to the list of URL schemes that get linkified.
2009-09-14 12:02:13 -07:00
Eric Fischer
7a4be89f5a Add "rtsp" to the list of URL schemes that get linkified.
Bug 1845298
2009-09-14 11:48:50 -07:00
Amith Yamasani
e8ffb1da28 am e989496e: Merge change 24194 into eclair
Merge commit 'e989496e2bb7a64abe7336db1e728095ebc83a0c' into eclair-plus-aosp

* commit 'e989496e2bb7a64abe7336db1e728095ebc83a0c':
  Make the hardkeyboard long press dialog look the same as that of soft keyboard.
2009-09-08 15:36:28 -07:00
Amith Yamasani
38d838d3ae Make the hardkeyboard long press dialog look the same as that of soft keyboard.
New assets for transparent buttons and background.
2009-09-08 14:25:25 -07:00
Jean-Baptiste Queru
85a2c7f1ca merge from open-source master 2009-09-01 11:46:14 -07:00
Eric Fischer
b7559e0280 am 56205fea: Merge change 23345 into donut
Merge commit '56205fea879543a50bb797016832416a8b48cabb' into eclair

* commit '56205fea879543a50bb797016832416a8b48cabb':
  Fix an emoji-measuring bug that caused an exception when editing a contact.
2009-09-01 11:18:43 -07:00
Eric Fischer
a82e99a89b Fix an emoji-measuring bug that caused an exception when editing a contact.
It was measuring the text to try to determine the size that it needed to
scale the emoji character to.  Unfortunately it was accidentally trying
to measure the character under the cursor instead of the emoji character
itself, which is wrong, but more seriously doesn't work at all when the
cursor is at the end of the line.

This was already fixed before in change 144474, but that change never got
merged over to donut.  So this merges it now.

Bug 2087915

Change-Id: Ib4804d330a029a966207b3b07271f84e6b2652c0
2009-09-01 10:28:11 -07:00
Dianne Hackborn
4a51c20ce6 I am getting tired of the java doc warnings, so fix them.
Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
2009-08-24 17:37:32 -07:00
Android Code Review
f4a2a7de88 Merge change 10712
* changes:
  Clarify use of InputType flags
2009-08-24 15:27:08 -07:00
Eric Fischer
86fcef87b8 Don't use BoringLayout to display text that has paragraph-style markup.
BoringLayout assumes it doesn't have to do any work to calculate the
line height.  In this case, though, there may actually be work to be
done, so have it fall back to StaticLayout to do the more thorough job.

Bug 2051050
2009-08-17 17:16:44 -07:00
Eric Fischer
f16da4555f Add brackets, braces, and backslash to alt-space character entry popup.
Bug 2024806
2009-08-13 13:30:17 -07:00
Eric Fischer
a9f1dd021f Make <font size> and <font height> in string resources respect density.
This unfortunately requires API changes because the existing text markup
classes had no access to the screen density.

TextPaint gains a "density" field so that TextView can pass the density
along.  AbsoluteSizeSpan gains a new flag to indicate that its argument
is in dip instead of in physical pixels.  LineHeightSpan gains an inner
interface whose chooseHeight() method includes a TextPaint argument so
it can get at the density.  And when StringBlock creates the markup
objects, it now uses the density-aware versions.

Bug 1976971, Bug 2031746
2009-08-12 16:04:10 -07:00
Jean-Baptiste Queru
5c1207be90 donut snapshot 2009-07-31 17:38:20 -07:00
Android (Google) Code Review
cdc50d779b am c6eb5ac9: Merge change 9071 into donut
Merge commit 'c6eb5ac988518f41938c4f021003d6c202d84819'

* commit 'c6eb5ac988518f41938c4f021003d6c202d84819':
  Fix issue #2018454: NullPointerException in ImageSpan constructor
2009-07-30 09:57:32 -07:00
Dianne Hackborn
0cd6376fa1 Fix issue #2018454: NullPointerException in ImageSpan constructor 2009-07-29 17:55:58 -07:00
Jean-Baptiste Queru
a8675f67e3 donut snapshot 2009-07-29 14:25:07 -07:00
Android (Google) Code Review
9d5750636b Merge change 8593
* changes:
  When you double-tap a word in an EditText, select the word.
2009-07-27 13:49:21 -07:00
Eric Fischer
a6e5045489 When you double-tap a word in an EditText, select the word.
Bug 1978109
2009-07-24 18:15:18 -07:00
Dianne Hackborn
e2dba02441 am 11ea3347: Allow for screen density drawables in compatibility mode.
Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
  Allow for screen density drawables in compatibility mode.
2009-07-24 16:08:56 -07:00
Android (Google) Code Review
41220f2c5b am 7c187de1: Merge change 8462 into donut
Merge commit '7c187de14f6b5ec6d90bc8e26265a2ca2824e39a'

* commit '7c187de14f6b5ec6d90bc8e26265a2ca2824e39a':
  Make the DatePicker respect the date format setting if the date is numeric.
2009-07-24 16:08:45 -07:00
Dianne Hackborn
11ea33471e Allow for screen density drawables in compatibility mode.
This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode.  In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable.  For
the small rare chance of them breaking, it worth getting the correct
graphics.  Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
2009-07-24 10:47:15 -07:00
Eric Fischer
03a8017d0f Make the DatePicker respect the date format setting if the date is numeric.
In some locales, there are no abbreviated month names; the abbreviated
date formats are essentially numeric.  If the user is in such a locale,
have the DatePicker respect the date format setting so that the order
of the fields will match other numeric-only dates.

In locales that have abbreviated month names, continue to use the order
that is normal in spelled-out dates.

And update the order in updateDate() so that the new order is reflected
if you change the order setting and immediately go to change the date
without leaving and returning to the Date & Time settings in between.

At the same time, change DateFormat.getDateFormatOrder() back to working
the way it did in cupcake (prioritizing the date order preference over
the locale), even though the DatePicker no longer calls the method.

Bug 1805085
2009-07-23 18:48:44 -07:00
Jean-Baptiste Queru
cf4550c319 donut snapshot 2009-07-21 11:16:54 -07:00
Kenny Root
d3badad3aa Clarify use of InputType flags
Some developers were confused about how to use the inputType field
and were omitting the class type when setting variations.

There are places in the framework where it specifically checks for
a class and variation before it invokes the desired behavior.

For instance, in EditText when setting the input type to a visible
password, it specifically checks for this condition:
inputType == (TYPE_CLASS_TEXT | TYPE_TEXT_VARIATION_VISIBLE_PASSWORD)
2009-07-18 15:33:28 -05:00
Android (Google) Code Review
cad18157e7 am c93af6dc: Merge change 7441 into donut
Merge commit 'c93af6dc5bc78f02d4ee549890da12dc669fc2fe'

* commit 'c93af6dc5bc78f02d4ee549890da12dc669fc2fe':
  Allow system colors in <font> tags
2009-07-16 17:53:44 -07:00
Bjorn Bringert
9cab7f7684 Allow system colors in <font> tags
Fixes http://b/issue?id=1970693
2009-07-15 22:47:03 +01:00
Android (Google) Code Review
c885577145 am b0b815da: Merge change 5845 into donut
Merge commit 'b0b815da8c487bbfac6b2eadc91c619682720a71'

* commit 'b0b815da8c487bbfac6b2eadc91c619682720a71':
  Always clear the TextView drag state whenever a touch begins.
2009-07-01 22:44:33 -07:00
Eric Fischer
58b971d733 Always clear the TextView drag state whenever a touch begins.
Apparently it can sometimes miss a touch release, which would prevent
the longpress menu from appearing if the location of the new touch was
too far from the location of the previous touch.

Bug 1673223
2009-06-30 15:22:51 -07:00
Michael Chan
becfc9de9e Added a Formatter parameter to DateUtils.formatDateRange
DateUtils.formatDateRange is using String.format which isn't efficient for
formatting large number of strings. I have added the Formatter parameter which
allows the caller to reuse the formatter of subsequent calls for faster
performance.
2009-06-30 11:48:39 -07:00
Eric Fischer
5669ce59aa Work around the Czech lack of abbreviated month names.
Make the date formats that want abbreviated month names use either
the full name or a numeric format.
2009-06-18 11:34:06 -07:00
Eric Fischer
7351dd113f Use locale-appropriate formatting to display application sizes like "252KB".
In particular allow the French and Polish translators to put a space between
the number and the unit.
2009-06-12 16:06:37 -07:00
Eric Fischer
3287695823 Make the date format preference work again.
It is only used for numeric dates -- spelled-out dates have such a complex
variety of formats that they can only be meaningfully formatted from
locale strings.

In addition, the preference is left null when initializing, on the assumption
that the locale will still specify a more useful numeric format than we can
guess as part of a build-wide configuration.

But if the user has specified a format, the date will be formatted in the
order they asked for, with locale-appropriate punctuation substituted in.
2009-06-12 10:06:24 -07:00
Eric Fischer
af0e7a7394 Hook the 12- or 24-hour time format checkbox back up.
The format strings are newly generated from CLDR.  The code is once again
the same as in cupcake: do the natural thing for the locale if the user
has never specified, but follow the checkbox if the user has ever set it.
2009-06-11 13:37:04 -07:00