1150 Commits

Author SHA1 Message Date
Joe Onorato
857fd9b856 Plumb whether an input view is actually visible or not through from the IME
to the status bar.

Bug: 3391067
Change-Id: I049531155bf7ee0b29874916c0b5b0a45b73c09e
2011-01-27 21:19:46 -08:00
Jim Miller
8996cf071a Fix 3381324: Restart ripples when the user moves away from the edge.
This changes the behavior of WaveView to start waves again when
the user moves the halo back towards the center.

Change-Id: Ia3b8fbd091e90e83e0c34b98a3060d3236191d7a
2011-01-26 19:03:49 -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
Joe Onorato
644f9c3ad9 Make FLAG_FULLSCREEN not go into lights out mode anymore.
Change-Id: I4a0aa8789f537717f82df4efb6a35108e1ab1784
2011-01-26 10:32:18 -08:00
Adam Powell
5dcc9bd726 Merge "Fix bug 3387855 - Menu flashes on left side of screen" into honeycomb 2011-01-25 14:46:47 -08:00
Adam Powell
e2b03a62e5 Fix bug 3387855 - Menu flashes on left side of screen
Post popup menu click events rather than executing inline so that the
popup can close undisturbed.

Change-Id: I01481bd37d7921c10c6b8b484eab33f0d25447ff
2011-01-25 14:40:36 -08:00
Jeff Brown
30bc34f191 Fix surface frame size reporting.
The SurfaceHolder provided by the wallpaper service was not reporting
the correct size in getSurfaceFrame().  This broke an optimization in
the ImageWallpaper.  The old code happened to work because calling
lockCanvas on the SurfaceHolder with a null dirty rectangle happened
to have the side-effect of updating the SurfaceHolder's surface frame
size field because it passed mSurfaceFrame as the dirty rect, causing
mSurfaceFrame to be set to the size of the region to be drawn.

However, relying on this side-effect is wrong.  Among other things,
the dirty region could actually be smaller than the surface frame.

This patch fixes WallpaperService, SurfaceView and ViewRoot to ensure
that the surface frame size is always set explicitly and is not modified
by calls to lockCanvas.

Change-Id: I10948f5ec269409ceaf0f7d32b3f6731e9499ebc
2011-01-25 13:10:30 -08:00
Brian Carlstrom
8d37c4efeb Merge "Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle" into honeycomb 2011-01-25 10:58:02 -08:00
Adam Powell
1821ff9022 Fix bug 3178934 - Make MenuBuilder notify its adapters of changes
Change-Id: I28603afbdfdd913aa06f3a07065e27aff1dc524b
2011-01-24 21:45:37 -08:00
Brian Carlstrom
4140faeebb Tracking jarjar of org.bouncycastle to com.android.org.bouncycastle
Bug: 3086427
Change-Id: I7af99fe4c36d9a519777f0499ccab65646313879
2011-01-24 18:17:21 -08:00
Jim Miller
85d3ef337b Merge "Fix 3381304: disable key preview in LockScreen's qwerty keyboard" into honeycomb 2011-01-24 17:03:07 -08:00
Adam Powell
c831e3192c Merge "Fix bug 3382994 - android.view.WindowManager$BadTokenException" into honeycomb 2011-01-24 14:35:11 -08:00
Adam Powell
55767443ad Fix bug 3382994 - android.view.WindowManager$BadTokenException
Remove pending callbacks when ActionMenuView is detached.

Change-Id: Ia61e446f60f10dd82476c00b4c11177182e7db60
2011-01-24 14:28:37 -08:00
Adam Powell
abbcc241c0 Fix bug 3237638 - make it easy to change a "refresh" AB button/icon
into the indeterminate progress icon

This fixes a bug that caused ActionViews to not be updated properly
after a pass through invalidateOptionsMenu/onPrepareOptionsMenu. Apps
can now set/clear action views to display progress spinner widgets or
anything else on demand.

Change-Id: I138eceb504177c6bb5b86d40a68a82973aa841a5
2011-01-24 14:03:16 -08:00
Jeff Brown
033f63a1a5 Fix a regression in the wallpaper drawing.
We should not lock and post the surface if we don't intend to
draw anything into it.

Change-Id: Idfd1cf127bdc1f5e1f5e783a8991d44de90878da
2011-01-23 22:01:49 -08:00
Adam Powell
a6ce081970 Merge "Fix bug 3381275 - Too much padding on the left of a custom nav bar" into honeycomb 2011-01-23 20:52:38 -08:00
Adam Powell
2a7ea67a03 Fix bug 3381275 - Too much padding on the left of a custom nav bar
Hide the title layout if it's empty to omit any included padding.

Change-Id: I01d287c8e214ed3648a47f5ca00b50f78d1659ad
2011-01-23 20:35:28 -08:00
Joe Onorato
4c541b1303 Merge "visibility ("lights out") API." into honeycomb 2011-01-23 19:26:13 -08:00
Joe Onorato
664644d9e0 visibility ("lights out") API.
1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself.  (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
2011-01-23 19:22:52 -08:00
Adam Powell
7ed3d005ac Merge "Fix bug 3380292 - long title in actionbar context mode pushes buttons over edge" into honeycomb 2011-01-23 18:16:09 -08:00
Adam Powell
b0ff6f9955 Fix bug 3380292 - long title in actionbar context mode pushes buttons over edge
Also adjust default web text selection menu to allow overflow, preventing items
from being cut off in portrait or on smaller screens.

Change-Id: I686c9a8daab31a38c2fcb75ee1402f09f568c238
2011-01-23 18:07:45 -08:00
Jesse Wilson
e2be3416f2 Merge "Don't call broken+deprecated SamplingProfiler.writeHprofData" into honeycomb 2011-01-23 16:40:53 -08:00
Jim Miller
7dd879a6a7 Fix 3381304: disable key preview in LockScreen's qwerty keyboard
Change-Id: I679dc9306a95b02bd7319e100c9f8871848fb134
2011-01-23 16:18:01 -08:00
Jeff Brown
fa2e504087 Avoid unnecessarily redrawing the wallpaper.
Added some logic to ImageWallpaper to avoid redrawing the wallpaper
when it is not necessary.  Even with the resize fixes, we were still
redrawing the wallpaper an extra 5 times due to visibility and
offset changes which had no real effect.

Change-Id: Ifa39b7bb8c0f7a6a41bc81e00cc2159440f529c5
2011-01-23 13:14:23 -08:00
Jesse Wilson
db35269ae4 Don't call broken+deprecated SamplingProfiler.writeHprofData
http://b/3381260
Change-Id: I5cf5ef8fbac2ada3669a0f7eff42f834db6573d7
2011-01-23 11:43:45 -08:00
Adam Powell
b3312b88c1 Fix bug 3360851 - actionbar overflow menu button doesn't trigger "audible selection"
Change-Id: I768d35f9752d5f6466708fd191781aa26aefd121
2011-01-21 18:12:02 -08:00
Jim Miller
6465f77537 Fix 3374446: Allow multiple shift keys in Keyboard.
This fixes a bug introduced in 3c6dd8f9 because we now
have two shift keys. The code now tracks a global state
and looks for up to two shift keys.

Update after review and added code to handle extra
invalidate required by additional shift key.

Change-Id: Ic1728dd0ceec089089cd1beca1b0b30565d6e658
2011-01-20 18:20:12 -08:00
Adam Powell
1264c33163 Fix bug 3362375 - API REVIEW: remove unused public 'up' id
Fix bug 3362453 - API REVIEW: android.app.ActionBar

Change-Id: I4e0233cd9355a47682bfe7b4a7fda39801586f1a
2011-01-20 13:25:08 -08:00
Gilles Debunne
a85467bc8d Error popup no longer flickers in TextViews.
The removed lines were committed by the Android Open Source Project.
Their intent was probably: the message was there before, it is identical
after a text change, let's remove it to not annoy the user who already saw it.

The behavior however is that the message is displayed then hidden, then displayed
as the user types.

Bug 3365016

Change-Id: Ie820f8e5465ad8ab5890272c42627686e0d7961b
2011-01-19 18:25:15 -08:00
Dianne Hackborn
7666ebd9f2 Merge "Bee seeing you..." into honeycomb 2011-01-19 11:16:38 -08:00
Winson Chung
81f39eb6e7 Refactoring app widgets to address security/performance issues.
- Moving the service binding to AppWidgetService to prevent arbitrary apps from binding to widget services
- Requiring RemoteViewsServices to require android.permission.BIND_REMOTEVIEWS permission

Change-Id: Id135bafba998299eb278067712b8a5d8487cfd04
2011-01-18 22:57:09 -08:00
Dianne Hackborn
3023afefd4 Bee seeing you...
Change-Id: I023425e1752b91fed36e6b005b7b03816f779d9c
2011-01-18 22:56:42 -05:00
Dianne Hackborn
661b6cfb2b Merge "Okay, new plan for dialogs." into honeycomb 2011-01-18 17:48:22 -08:00
Dianne Hackborn
ef57575887 Okay, new plan for dialogs.
Don't dismiss by default when tapping outside, even for AlertDialog.

If AlertDialog doesn't have any buttons, tapping outside will dismiss it.

Applications can make their own dialogs (or activities looking like
dialogs) can use the existing and new APIs to control this behavior
themselves so that it does the right thing.

Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
2011-01-18 17:35:17 -08:00
Adam Powell
a1e6358a4c Fix bug 3365208 - Contextual Action Bar is not displayed when the context item is changing
Change-Id: I9e7ec4ab14c6008397d26c499ccf478f8875f918
2011-01-18 16:51:22 -08:00
Jim Miller
c6d2a767ce Merge "Fix 3303606: invalidate WaveView after resetting state" into honeycomb 2011-01-17 16:35:52 -08:00
Jim Miller
607d320c9d Fix 3303606: invalidate WaveView after resetting state
This fixes a bug where the unlock state machine was in the
reset state when it awakes which caused it to ignore
the first unlock attempt.  The reason for this is the state
machine didn't run again until the next user input.

We now invalidate the drawing area to ensure the unlock state
machine runs and is ready when LockScreen shows again.

Change-Id: I9f2b279d432ff634ba0b29e606cdc954718a2ad2
2011-01-17 14:52:09 -08:00
Adam Powell
a1487347f5 Merge "Fix bug 3362446 - NPE in legacy menus" into honeycomb 2011-01-17 13:26:50 -08:00
Adam Powell
4192e38827 Fix bug 3362446 - NPE in legacy menus
Change-Id: Icf9a0bec46c74ace3acbc85eea45d1d769b699d1
2011-01-17 13:16:54 -08:00
Dianne Hackborn
db7f38673c Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb 2011-01-17 12:33:50 -08:00
Dianne Hackborn
48e7b45869 Start renaming FragmentTransaction.openTransaction() to beginTransaction().
Change-Id: Ib4a6d824b33cca699b7b25159c491fb610d5f5da
2011-01-17 12:28:35 -08:00
Adam Powell
77769c7a91 Fix bug 3360954 - Text overlaid on menu icons
Change-Id: Ie59a325b7037d93aeec01c862646f900d52e1d7c
2011-01-17 12:06:14 -08:00
Adam Powell
36fced9b21 Fix bug 3050138 - Action bar does not display correctly when many
action items are added

Rules for action bar overflow:

Items are considered for inclusion in the order specified within the
menu. There is a limit of a total count, optionally including the
overflow menu button itself. This is a soft limit; if an item shares a
group ID with an item previously included as an action item, the new
item will stay with its group and become an action item itself even if
it breaks the max item count limit. This is done to limit the
conceptual complexity of the items presented within an action
bar. Only a few unrelated concepts should be presented to the user in
this space, and groups are treated as a single concept.

There is also a hard limit of consumed measurable space. This limit
may be broken by a single item that exceeds the remaining space, but
no further items may be added. If an item that is part of a group
cannot fit within the remaining measured width, the entire group will
be demoted to overflow. This is done to ensure room for navigation and
other affordances in the action bar as well as reduce general UI
clutter.

The space freed by demoting a full group cannot be consumed by future
menu items. Once items begin to overflow, all future items become
overflow items as well. This is to avoid inadvertent reordering that
may break the app's intended design.

Change-Id: I878f6b15619059258c91c01f4fe838feac161d6d
2011-01-16 17:20:23 -08:00
Jeff Brown
7a1c32e719 Merge "Add support for detecting finger orientation." into honeycomb 2011-01-14 19:18:16 -08:00
Jeff Brown
517bb4c859 Add support for detecting finger orientation.
Change-Id: I901fc61f7705fcd7950190dc8782bad616032ee2
2011-01-14 19:12:48 -08:00
Jeff Brown
06bc9721d8 Merge "Disable soft keyboard when keyboard attached." into honeycomb 2011-01-14 17:48:09 -08:00
Jeff Brown
4aed78b505 Disable soft keyboard when keyboard attached.
Also hide menu shortcuts everywhere until we can get around to
redesigning the menu UI to be more consistent.

Bug: 3306545
Bug: 3330748
Change-Id: I4d4e19525cdfc93d9aae0dcaa1e6266fb552c5bc
2011-01-14 17:36:55 -08:00
Adam Powell
9f125d3415 Fix bug 3339039 - Preserve proper behavior for action button text when
updated.

Change-Id: If3529616d5a2b69638b2b0c4070d5ebbb418410c
2011-01-14 15:37:44 -08:00
Adam Powell
946137520d Merge "Rework action bar menus." into honeycomb 2011-01-14 13:56:29 -08:00