1133 Commits

Author SHA1 Message Date
Adam Powell
dc494e1e48 am a1487347: Merge "Fix bug 3362446 - NPE in legacy menus" into honeycomb
* commit 'a1487347f5ba24648303bf8c9e455ca2ef0de7ea':
  Fix bug 3362446 - NPE in legacy menus
2011-01-17 13:29:03 -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
74871f9c37 am db7f3867: Merge "Start renaming FragmentTransaction.openTransaction() to beginTransaction()." into honeycomb
* commit 'db7f38673c33ba55801019007ff18fa4c57f75e0':
  Start renaming FragmentTransaction.openTransaction() to beginTransaction().
2011-01-17 12:35:59 -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
dd9946e78a am 9512d6aa: Merge "Fix bug 3360954 - Text overlaid on menu icons" into honeycomb
* commit '9512d6aa206f8bb44ab52b6dfe5ee8cb5c2960ea':
  Fix bug 3360954 - Text overlaid on menu icons
2011-01-17 12:10:53 -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
4b8bb8b01a am 70359ce2: Merge "Fix bug 3050138 - Action bar does not display correctly when many action items are added" into honeycomb
* commit '70359ce27d39222ef023078e5a461aee28bb7be1':
  Fix bug 3050138 - Action bar does not display correctly when many action items are added
2011-01-16 17:31:32 -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
Jim Miller
3530ebe451 resolved conflicts for merge of 578e73da to honeycomb-plus-aosp
Change-Id: I334ae5382220a84881521885b6e3c3991fd8bbb0
2011-01-16 16:55:28 -08:00
Jim Miller
578e73dac8 am 6687ecb4: Merge "Fix 3106227: use WeakReferences for receivers in DigitalClock class" into gingerbread
* commit '6687ecb447025a1c56253d0fd67ad30af070db17':
  Fix 3106227: use WeakReferences for receivers in DigitalClock class
2011-01-16 16:16:57 -08:00
Jeff Brown
c299302e98 am 7a1c32e7: Merge "Add support for detecting finger orientation." into honeycomb
* commit '7a1c32e719725787acda4885ad7bd8031975e8c7':
  Add support for detecting finger orientation.
2011-01-14 19:20:07 -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
Jim Miller
8b886fab54 Fix 3106227: use WeakReferences for receivers in DigitalClock class
This works around a bug in the framework where LockScreen wouldn't
get GC'd under certain circumstances which would lead to an OOM
crash.  It now uses WeakReferences for observers inside the
DigitalClock container class and unregisters them if the containing
DigitalClock goes away.

Also removed mLive variable which was unused and could potentially
leak the receivers.

Left mAttached for debugging so we can use it to determine if the
calls to onAttachToWindow() and onDetachFromWindow() are grossly
unbalanced which may be the root cause of the original problem.

Have cleanUp() explicitly clear unused references to make
tracing through hprof references easier.

Change-Id: I99a7e0c356001b05eab5aa729564553666febfea
2011-01-14 18:01:12 -08:00
Jeff Brown
9f1ae205b4 am 06bc9721: Merge "Disable soft keyboard when keyboard attached." into honeycomb
* commit '06bc9721d8f5db053b51e1c536e746833ad46036':
  Disable soft keyboard when keyboard attached.
2011-01-14 17:50:12 -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
7bd540ac8e am 8e4d3ba6: Merge "Fix bug 3339039 - Preserve proper behavior for action button text when updated." into honeycomb
* commit '8e4d3ba67824d87d832d90e1d0555456b3e76aca':
  Fix bug 3339039 - Preserve proper behavior for action button text when updated.
2011-01-14 15:43:03 -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
7143ae39d6 am 94613752: Merge "Rework action bar menus." into honeycomb
* commit '946137520d67d3c18ceaba058e622f24b7fbf04d':
  Rework action bar menus.
2011-01-14 13:57:56 -08:00
Adam Powell
946137520d Merge "Rework action bar menus." into honeycomb 2011-01-14 13:56:29 -08:00
Adam Powell
e7d468410b Rework action bar menus.
Fix bug 3328810 - remove icons from action bar overflow menu.  Popup
menus now will not show icons. Give popup menu items a minimum width.
Alter the sizing of popup menus.

Fix bug 3192635 - revise rules for action menu dividers. Dividers now
appear between the overflow button and any other items next to it, and
anywhere they disambiguate touch targets between text and other
content. Action views are on their own and should include their own
dividers if needed.

Remove dividers from around action bar spinners and tabs.

Change-Id: I935b48b473606ac2adde5e2b251bf30ebe2a3da9
2011-01-14 13:55:15 -08:00
Adam Powell
25cb8bcd19 am 2dc59d56: Merge "Fix bug 3347747 - Use a better context when fetching resources for action modes" into honeycomb
* commit '2dc59d56cbfe90fdae745496038352fdada6ee26':
  Fix bug 3347747 - Use a better context when fetching resources for action modes
2011-01-14 12:14:24 -08:00
Adam Powell
48e8ac311b Fix bug 3347747 - Use a better context when fetching resources for
action modes

Change-Id: I0c6595c290a9d41f673944c127d2e9aaf7dc84ce
2011-01-14 12:10:47 -08:00
Adam Powell
431845609f am 16ffa6cb: Merge "Fix bug 3338079 - Dialog styled activity decor" into honeycomb
* commit '16ffa6cb2d31d130bb0b58afca31c461c784ce5d':
  Fix bug 3338079 - Dialog styled activity decor
2011-01-11 15:59:54 -08:00
Adam Powell
32aa2c90ee Fix bug 3338079 - Dialog styled activity decor
Fixed a bug in FastScroller that could cause a crash on an empty list
in always-show mode.

Fix holo light button text color

Change-Id: I7b50043d715b9b870eb34808017d743ba64d2e08
2011-01-11 15:57:07 -08:00
Adam Powell
98b2fec9b5 am 5c5fa339: Merge "Fix bug 3333015 - Overflow menu item submenus do not open" into honeycomb
* commit '5c5fa339b4658287217eb0a4639e6e52d192f0ab':
  Fix bug 3333015 - Overflow menu item submenus do not open
2011-01-10 17:38:59 -08:00
Adam Powell
f0ad6e6eaf Fix bug 3333015 - Overflow menu item submenus do not open
Submenus of action bar menus will open as new menus.

Change-Id: I924b87bbea91b0df5e3608ec894530302c0e1d8d
2011-01-10 17:14:51 -08:00
Jim Miller
b3a82ebd6e am 730f0b23: Merge "Fix 3299611: Use system font for AM/PM indicator" into honeycomb
* commit '730f0b238a20362ff0ae6bdfbd069f0996fc1b39':
  Fix 3299611: Use system font for AM/PM indicator
2011-01-09 16:10:19 -08:00
Jim Miller
81f9b286d1 Fix 3299611: Use system font for AM/PM indicator
This fixes a bug where translations wouldn't pick up the proper
AM/PM indicator because AndroidClock.ttf doesn't contain the
full Android character set for translations.

Change-Id: I61737bae7383946906a4e6b776afa7463da9355d
2011-01-09 16:03:27 -08:00
Adam Powell
033553c294 am 00bba682: Amendment to fix for bug 3332414
* commit '00bba682efedbe121f31c98697f91101b1c22b82':
  Amendment to fix for bug 3332414
2011-01-08 15:55:59 -08:00
Adam Powell
00bba682ef Amendment to fix for bug 3332414
Change-Id: Id3047f6ea6f8f5c68318057798e285cc1e06d094
2011-01-08 15:53:38 -08:00
Adam Powell
c73af594b0 am d1af7720: Merge "Bug 3332414 - UI glitch in CAB options" into honeycomb
* commit 'd1af77207c5c17b55aea78174633539b73abcf89':
  Bug 3332414 - UI glitch in CAB options
2011-01-08 15:28:41 -08:00
Adam Powell
dd10b66601 Bug 3332414 - UI glitch in CAB options
Change-Id: Ic066f968b0125276c315f31adbd96420e528362f
2011-01-08 15:17:30 -08:00
Adam Powell
6de1301b49 am 947f7824: Fix bug 3245465 - Themed dialog icons
* commit '947f7824118f0e9b642df8760a8725a7eda59318':
  Fix bug 3245465 - Themed dialog icons
2011-01-08 13:22:47 -08:00
Adam Powell
947f782411 Fix bug 3245465 - Themed dialog icons
Added light/dark versions of holo dialog icons. Apps using
AlertDialogs that wish to use the system dialog icon should use
setIconAttribute(android.R.attr.alertDialogIcon) instead of
setIcon(android.R.drawable.ic_alert_dialog).

Change-Id: I40793a3164478be5ffa045ededfcab8210753a4b
2011-01-08 13:09:51 -08:00
Dianne Hackborn
4bc6bb85df am 97b0b7bb: am 3ea5728e: Tweak level at which we reset battery stats to 90%.
* commit '97b0b7bbd41bf3bc6095a513c329e1143300ec3a':
  Tweak level at which we reset battery stats to 90%.
2011-01-08 06:49:05 -08:00
Adam Powell
5e3f284baa Fix bug 3200615 - "MenuPopupHelper cannot be used without an anchor"
Add protection against views disappearing before previously posted
Runnables attempt to show a menu anchored to them.

Change-Id: Ia2a322e76665e61feb5bdb92377d5066cb6d5b04
2011-01-07 17:22:25 -08:00
Adam Powell
d16c9884bb Fix bug 3330223 - onCreateOptionsMenu() unable to getActionView()
immediately after orientation change

Inflate action view layout resource earlier so that calls to
getActionView are valid immediately after menu inflation.

Change-Id: I8023328b1a77670ac42a783f6e4b46aa5c2a798e
2011-01-07 11:33:41 -08:00
Dianne Hackborn
97b0b7bbd4 am 3ea5728e: Tweak level at which we reset battery stats to 90%.
* commit '3ea5728e703554f8ba0bb3aa1367d6dc45d704bb':
  Tweak level at which we reset battery stats to 90%.
2011-01-06 20:28:44 -08:00
Adam Powell
345a9f4e6d Fix bug 3212471 - Widget.Holo.ActionButton style and friends now 76% more useful
Change-Id: Ideb37c8a31e37df8fcfc549d12b4b6cafc983ca1
2011-01-06 16:03:30 -08:00
Dianne Hackborn
c1b40e361c Implement issue #3326435: Battery stats improvements
Keep track of discharge while screen is on vs. off.

Checkin looks like:

5,0,u,dc,1,1,1,0

The last four numbers are, from left:

- Maximum battery drain over time period.
- Minimum battery drain over time period.
- Battery drain while screen was on.
- Battery drain while screen was off.

Change-Id: Ie4026a7cc8aabb2a6d47d03d2e278aa51c2d5ddf
2011-01-05 21:02:01 -08:00
Dianne Hackborn
3ea5728e70 Tweak level at which we reset battery stats to 90%.
Change-Id: I81151809100912c7956536d5d47279d2c2fea8c4
2011-01-05 19:14:53 -08:00
Adam Powell
3f476b3404 Revisiting ActionBar API and layout.
Fix several bugs where ActionBar was ignoring LayoutParams in action
views.

Add convenience methods for toggling display options flags.

Add layout resource version of ActionBar#setCustomView

Fix a bug preventing actionViewClasses from being loaded properly in
menu xml.

Change-Id: I0d9a0b635fd9cfc020bac69369c0c7749c226349
2011-01-05 11:41:26 -08:00
Adam Powell
a5fd28f7eb Merge "Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared container" 2011-01-03 16:56:23 -08:00
Adam Powell
654e4e4161 Fix bug 3300456 - Prevent duplicate action bar backgrounds in shared
container

Change-Id: I8edb99739be43c7ee82eb4dc4b82a9be17f92d0c
2011-01-03 16:33:50 -08:00
Amith Yamasani
7179dfd663 Merge "Fix a layout alignment issue in RingtonePickerActivity." 2011-01-03 14:08:42 -08:00
Amith Yamasani
fe7630e648 Fix a layout alignment issue in RingtonePickerActivity.
Bug: 3307324
2010-12-28 15:27:46 -08:00