Commit Graph

411 Commits

Author SHA1 Message Date
Evan Millar
e3ec9977bb FastTrack->QuickContact
Change-Id: I98f2db38e6402bdbe47b941d82c8f33863d1863e
2009-09-30 20:33:17 -07:00
Romain Guy
aa1c6311d6 Fix possible crash in AutoCompleteTextView.
This change makes sure that ACTV will not take action when an event is
received in a popup that just got dismissed.

This change also makes public two XML attributes of ACTV whose corresponding
Java APIs are public.

This change also fixes a couple of typos.

Change-Id: I78f113bc522d199ff3db44fc4cc3a1882afe822e
2009-09-30 11:55:58 -07:00
Android (Google) Code Review
1537a25520 Merge change I46a6d39c into eclair
* changes:
  Remove unused api in QuickContact.java and fix the build.
2009-09-30 14:45:17 -04:00
Evan Millar
f5ac46d302 Remove unused api in QuickContact.java and fix the build.
Change-Id: I46a6d39c8176806c2b5570c75b59ff9631ee53f1
2009-09-30 11:20:25 -07:00
Android (Google) Code Review
1935a3417e Merge change I9d12beeb into eclair
* changes:
  Change FasttrackBadgeWidget->QuickContactBadge and make public.
2009-09-30 13:00:46 -04:00
Evan Millar
c1a2a8296e Change FasttrackBadgeWidget->QuickContactBadge and make public.
Change-Id: I9d12beeba16c2f64742b4a99d0da4ceb73525b5b
2009-09-30 08:33:31 -07:00
Andrei Popescu
020d2e3453 Invoke the OnErrorListener callback when MediaPlayer.setDataSource() throws.
Fixes http://b/issue?id=2156505
2009-09-30 14:54:55 +01:00
Android (Google) Code Review
8eb0f34893 Merge change I67285c9a into eclair
* changes:
  Prevent NPE when doing a fillSpecific layout.
2009-09-29 18:19:05 -04:00
Romain Guy
8bcdc0764f Prevent NPE when doing a fillSpecific layout.
Change-Id: I67285c9a314400da11fdf158c413bf05fe6b982e
2009-09-29 15:17:47 -07:00
Android (Google) Code Review
d35afcda67 Merge change Ib2c6429d into eclair
* changes:
  border for the non-badge case
2009-09-29 17:06:23 -04:00
Android (Google) Code Review
490d5222ae Merge change I6cacaa0d into eclair
* changes:
  Hack to fix issue #2125365: Sports Trivia compatability with Eclair
2009-09-29 13:44:47 -04:00
Mark Wagner
b2c6429d4d border for the non-badge case
If we don't have a uri/email/phone then we do not display the normal
fast track badge.  But in that case we now have an alternate background/border
rather than no background/border.
2009-09-29 09:49:50 -07:00
Dianne Hackborn
afa78967b8 Hack to fix issue #2125365: Sports Trivia compatability with Eclair
Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size.  Only TextView uses this, but that is enough
for the large majority of apps.

Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
2009-09-28 17:33:54 -07:00
Romain Guy
995d8561a6 Do not crash appwdiget host when a pending intent send fails.
Change-Id: Id29ec50dcb4d51589b9732ace6d505fcea9cc787
2009-09-28 16:24:35 -07:00
Romain Guy
b4c547a56c Fix possible NPE in AbsListView.positionSelector().
ListView was being reckless and calling the method with a null object in some
situations.

Change-Id: Ibb595a1ff6f916c699e4af55450966dd7fd8c156
2009-09-28 13:45:00 -07:00
Amith Yamasani
a8c0edb8fb Fix 2143297: Fix transition from password -> visible password 2009-09-28 11:08:57 -07:00
Mike Cleron
f116bf8884 Fading scrollbars return. But you have to opt in. 2009-09-28 10:47:04 -07:00
Mike Cleron
7609764295 Fix 2146581: Make tabs work for donut apps
Use different tab assets with the original coloring scheme
for apps that are not Eclair-aware.
2009-09-25 17:53:56 -07:00
Android (Google) Code Review
63147705bc Merge change 26437 into eclair
* changes:
  Don't show the badge background when we have no uri, email, or phone.
2009-09-22 17:28:59 -04:00
Mark Wagner
f5935a9836 Don't show the badge background when we have no uri, email, or phone.
This will be used in talk and mms in the case of multiple recipients.
2009-09-22 13:49:26 -07:00
Android (Google) Code Review
af1eb14837 Merge change 25465 into eclair
* changes:
  Reset typeface when changing from visible password inputType
2009-09-22 15:25:15 -04:00
Jack Veenstra
7d4200d03f Fix bug with ScrollView so that text entry fields are not hidden by virtual keyboard. 2009-09-21 19:45:14 -07:00
Dmitri Plotnikov
ea36747114 Revert "ContactsContract: Adding joined columns to the Data class definition."
This reverts commit dd768a6a73.
2009-09-18 15:04:58 -07:00
Dmitri Plotnikov
dd768a6a73 ContactsContract: Adding joined columns to the Data class definition.
The rationale is this.  Since all these joined columns are currently on
different classes, we routinely see code like this:

private static final String[] PROJECTION_PHONE = {
        Data._ID,                   // 0
        RawContacts.CONTACT_ID,     // 1
        Phone.TYPE,                 // 2
        Phone.NUMBER,               // 3
        Phone.LABEL,                // 4
        Contacts.DISPLAY_NAME,      // 5
    };

The most noxious line is RawContacts.CONTACT_ID

After this change, the above declaration changes to:

    private static final String[] PROJECTION_PHONE = {
        Data._ID,                   // 0
        Data.CONTACT_ID,            // 1
        Phone.TYPE,                 // 2
        Phone.NUMBER,               // 3
        Phone.LABEL,                // 4
        Data.DISPLAY_NAME,          // 5
    };

Change-Id: I820e68efd6c1364241596f826c4da1b9c2defe11
2009-09-18 13:53:49 -07:00
Bjorn Bringert
ad8da91895 Reset typeface when changing from visible password inputType
Before, when changing a TextView from TYPE_TEXT_VARIATION_VISIBLE_PASSWORD
to a non-password input type, the typeface remained monospaced.

Fixes http://b/issue?id=2126708
"TextView does not restore typeface when changing inputType
from password to text"

Change-Id: Iad704640f69beed10a4b3deec7c38f3eba7b91ee
2009-09-18 12:09:23 +01:00
Jeff Sharkey
0050ee3639 Adopt new FastTrack API for internal widget, fix bugs.
Change internal widget to use new FastTrack API instead of
using SHOW_OR_CREATE.  Also reset the internal Uri when
reused in lists.  Fixes http://b/2087222
2009-09-17 23:59:08 -07:00
Dianne Hackborn
fa82f22f1d Fix issue #2093608: Calendar widget takes a few seconds to launch
Avert your eyes!

The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.

Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
2009-09-17 18:01:35 -07:00
Eric Fischer
fa0d253b77 Make the EditText error popup correctly resize when the view resizes.
It was calling PopupWindow.update() with -1 arguments for the width
and height under the impression that that would cause it to use the
new values that had already been set with setWidth() and setHeight().
But in fact this caused it not to change at all.
2009-09-17 17:01:59 -07:00
Bryan Mawhinney
875fca2e18 Make ACTV use all available space if height is FILL_PARENT.
This prevents the drop down from resizing when the keyboard is shown / hidden, and thus fixes the issue where the 4th item in the list could not be selected when in landscape mode.

Bug: 2096394
Change-Id: Id0e687c897a724379073dcfa82de7ce89ae12035
2009-09-17 13:54:23 +01:00
Dianne Hackborn
9767e41d92 Some improvements for wallpaper configuration.
This introduces a new activity that you can derive from to implement
a wall paper configuration activity.  This is supposed to select
a theme based on whether it is being run to configure a real wallpaper
or a preview, but this is going to be more difficult to do than I
thought. :(

Also fix a problem in the white theme where the list view's background
was being set to white, so it wouldn't work on a transparent bg.

Change-Id: I26d5a8695a3c878a1664eb09900eded57eaff990
2009-09-15 18:59:31 -07:00
Android (Google) Code Review
7bd660012c Merge change 25117 into eclair
* changes:
  Preserve ListView's pressed state when the adapter changes its content while the user is pressing an item.
2009-09-15 16:57:53 -04:00
Romain Guy
3616a412cb Preserve ListView's pressed state when the adapter changes its content while the user is pressing an item.
Change-Id: Id5ac804a4053951430d16cf0d87fc7b64c816717
2009-09-15 13:57:27 -07:00
Evan Millar
e727f18cf2 Add the FasttrackBadgeWidget.
This widget is an extension of ImageView that takes care of the standard
fasttrack badging and on-click behavior. It should be used in any
applications that display contact photos.

This view's name will have to be changed before release, and will be
kept private until the name change is made. At that point the view will
be made public api.

Change-Id: I4704e0e979466929ad7b2ef11911681a5028b4a7
2009-09-15 13:00:49 -07:00
Android (Google) Code Review
678b4c20cb Merge change 25013 into eclair
* changes:
  Various fixed for back key handling.
2009-09-15 00:26:45 -04:00
Dianne Hackborn
8d37426c75 Various fixed for back key handling.
My last change was far from perfect.  Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
2009-09-14 21:21:52 -07:00
Android (Google) Code Review
bd443c01a0 Merge change 24887 into eclair
* changes:
  Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
2009-09-14 21:07:00 -04:00
Dianne Hackborn
83fe3f5592 Last big work on #1991910: Make swipes work with capacitive keys
This takes care of allowing us to cancel the back button.  The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog.  There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses.  This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases.  (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager.  This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
2009-09-14 17:53:52 -07:00
Romain Guy
8c11e31143 Fix a possible NPE in View.
Change-Id: Ieebd176e1f42c78e298aca973e9e5eed2dc3c6d9
2009-09-14 15:15:30 -07:00
Daniel Sandler
eb9fdc21b1 Fix http://b/issue?id=2098873 (drawing glitch in SeekBar).
The underlying ProgressBar implementation doesn't know how
to correctly update the thumb graphic, so AbsSeekBar must
call invalidate() at key moments to ensure things look
correct.  This bug is one such instance: when you pick your
finger up off the seekbar, the "value" of the progressbar
appears not to change, so ProgressBar feels no compunction
to repaint. AbsSeekBar now invalidate()s on ACTION_UP and
ACTION_CANCEL to ensure that the thumb is correctly drawn.
2009-09-14 13:05:43 -04:00
Dianne Hackborn
7ed6ee5692 Fix issue #1983406: Soft keyboard doesn't show up in an EditText with "digits" attribute set
Also pretend to fix #2054990 (com.android.frameworktest: java.lang.NullPointerException
at android.accessibilityservice.AccessibilityService$IEventListenerWrapper.executeMessage(
AccessibilityService.java:215))...  simply by making the variable that apparently was
null final, to assure myself that there is no possible way in the world for it to be
null. :p

Change-Id: I73e337d65b8360721896a0296691257b3e47564b
2009-09-10 18:41:28 -07:00
Android (Google) Code Review
46c158234d Merge change 23105 into eclair
* changes:
  Fix issue 2077333: The volume key will effect both ring and media vol at the same time.
2009-09-01 11:14:00 -07:00
Eric Laurent
4e059280b7 Fix issue 2077333: The volume key will effect both ring and media vol at the same time.
Make sure that the progress bar is refreshed when the max value is changed.
2009-09-01 10:35:15 -07:00
Cary Clark
278ce05b52 accelerate consecutive flings
Use the fact that the scroller keeps track of the current velocity
to accelerate subsequent flings. The current velocity is added to
the new velocity if the flings are in the same general direction
and if the fling animation hasn't been aborted.

This makes it easier to move to the top or bottom of very large
pages (either in overview mode or reading mode) by taking
consecutive flings as a cue from the user that they want to
page faster. The user can stop the fling with any action as
before.

fixes http://b/issue?id=2066090
2009-09-01 09:34:21 -04:00
Romain Guy
6198ae8468 Prevent ListView from scrolling/flinging its content when the content fits on screen.
Change-Id: Id46313bca3ae53b0717cd74a4a6f889a01f9fcb1
2009-08-31 17:45:55 -07:00
Evan Millar
3730bb1cd5 New List and Tab assets.
New tab assets. We decided to do a straight swap and then assess the
damage.

New default dark background color.

New list divider assets.

Change-Id: Ia00a9bb0ee1bad4f955f1c3b5b67526f62572015
2009-08-26 10:56:45 -07:00
Eric Fischer
688b0f1235 am 36d5aaec: Merge change 22322 into donut
Merge commit '36d5aaec2ee1f11ea80639c8194e4aac2be3892d' into eclair

* commit '36d5aaec2ee1f11ea80639c8194e4aac2be3892d':
  Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
2009-08-22 07:43:44 -07:00
Eric Fischer
cc5dfa9ed0 Add FLAG_ACTIVITY_NEW_TASK flag when adding a word to the dictionary.
Without this, the runtime would restart when you tried to add a word
from the search widget.

Bug 2069689
2009-08-21 13:31:54 -07:00
Android (Google) Code Review
4e297203ec Merge change 22154 into eclair
* changes:
  Fix fastscroll overlay size on WVGA by using dip.
2009-08-20 16:49:25 -07:00
Amith Yamasani
1ffaebc41b Fix fastscroll overlay size on WVGA by using dip.
Move constant dimensions to resources.
2009-08-20 16:15:46 -07:00
Android (Google) Code Review
01549b21c4 Merge change 22008 into eclair
* changes:
  When bringing up the media controller view, focus the play/pause button.
2009-08-20 15:08:36 -07:00