History log of /frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a1ac6a09252a8a615230f08767ab6153bd23a165 24-Jan-2015 Svetoslav <svetoslavganov@google.com> Accessibility: Ignore overlapping siblings when computing a click location

To click a view we were computing a click location by ignoring overlapping
views that are actionable. However, detection whether a view is actionable
is not always possible as the view may handle touch events directly. This
leads to unhandled edge cases. We are taking a conservative approach and
ignore all overlapping siblings regardless if clickable. This is also has
limitations but hopefully less frequent edge cases.

bug:18889611

Change-Id: Icea0b7b3e2d4ed53e50e01cb6a99b880be560b14
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
41fceb462b6eefbaa3a4d4e56b962fdb2910a6f5 23-Jan-2015 Svetoslav <svetoslavganov@google.com> Accessibilty: Cannot click on views in a scrollable container covered by the toolbar.

In accessibility mode we calculate a point where to click in the accessibility
focused view as a bridge-gap solution before switching to accessibility click
actions. We cannot detect whether a view is covered by another one that consumes
all touch events, and therefore we may click on the wrong target. This was the
case with the toolbar. As a result a partially scrolled view in a scrollable
container covered by a toolbar cannot be activated and this is not an edge case.

bug:18986806

Change-Id: Ib41470c39806cec13e9b00b319879cd7f3412ab5
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
2bbad0cddce213ffd3d1e0909f2dc74dd0038ba7 17-Sep-2014 Yigit Boyar <yboyar@google.com> Handle action mode changes properly for actionbar tabs

Bug: 17513613
Change-Id: I4ebcadc618558153b72bf577232adc3e616adb6b
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
9dbe94d8cdd91c948160ca08c9028df455826c08 15-Sep-2014 Adam Powell <adamp@google.com> Merge "Magic null-background filling for PhoneWindows" into lmp-dev
f849a5e16d016fb6ae081a4575ce67f4ce688e3a 12-Sep-2014 Adam Powell <adamp@google.com> Magic null-background filling for PhoneWindows

In the past it's been a recommended approach to avoiding overdraw for
apps to set their window background to null at runtime if their
content view fully covers their window surface. The problem with this
is the IME.

The IME can force a resize of the window at unexpected times and
unless an app has been configured to fit system windows and manually
cover the padded area that the IME window covers, the asynchronous
nature of the IME-show process can leave surface buffer garbage
visible to the user. In previous platform versions this wasn't an
issue since pre-renderthread we would always animate a crossfade from
the closed to open state. This animation was always a bit of a hack
since it could break the contract of requestLayout/invalidate on the
view hierarchy - it could result in a draw happening into the saved
"before" state of the crossfade before a pending layout.

Now that this has been cleaned up the buffer garbage is sometimes
visible.

To prevent this, PhoneWindow now detects the state of a null window
background and draws solid rects into the area not covered by a
window's content. Which color is determined by the window context's
theme, though this is not a public API available to apps.

Bug 17006497

Change-Id: I714439a1608c4ae135f3d9d49bb165330d9fbe9f
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
ccd3da23c6dbdda2af5c5d746652e4b240cb4f50 13-Sep-2014 Chet Haase <chet@google.com> set correct bounds in ActionBar based on visibility of ActionBarView

ActionBarContainer was setting the bounds of its background assuming the
visibility of the ActionBarView. But that view becomes GONE when the
ActionBarContextView is visible, causing artifacts such as wrong shadows
when resized (as in custom configuration changes).

Issue #17280341 Quantum: drop shadow on CAB has wrong width after rotation on L, when configuration change is handled by the app

Change-Id: I07e57f00e27b41d5370cb9440b35734a8ec10f3a
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
2b7ff72683b71e87c327eb781dfbcc5d6fb5c9f9 22-Aug-2014 Adam Powell <adamp@google.com> Fix (another) measurement issue in ActionBarContainer

Or, the patch in which we discover how many silly bugs adamp caused in
e77b6590.

Change-Id: Iaacd3792d161e068dee74b897872e9ab2f155aca
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
a12aaa75df2a7611f38050e2111a767a20a91b1b 22-Aug-2014 Adam Powell <adamp@google.com> Add a missing condition when checking measurement for ActionBarContainer

It even said "non-tab" right there.

Bug 17202141

Change-Id: Iacc7ec9610d2639aab59dd57ba7194178fb6391f
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
635c21b06194cd1b426d1936e7fdf7db34b5bb98 21-Aug-2014 Adam Powell <adamp@google.com> Fix measurement regression in ActionBarContainer

Make sure that we take into account all child views (including
ActionBarContextViews) when measuring the action bar container to
determine the measurement influence of an additional tab bar.

Bug 16982971

Change-Id: I53ba7e9a4c9e36d97c6385d2007a3ee0a4e2bc77
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
1e610d479f091f1b09f2a7e5201711bf4d311f6f 13-Aug-2014 Chris Craik <ccraik@google.com> Fix action bar background drawing

bug:16940717

Fixes regression from 0de8add60e0d40c59def41663acae4d57d0b4b15

Change-Id: I7ec30a9c0c9422874cad106a2caeb7dcbe75e1b6
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
77b5cad3efedd20f2b7cc14d87ccce1b0261960a 31-Jul-2014 Chris Craik <ccraik@google.com> Add outline alpha

bug:16140822
bug:16566746

This allows background drawables to alter the opacity of a shadow
being cast with their own alpha values.

Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
e021e6ed8931a0a8296af182fc9b0c76b64fb0c4 24-May-2014 Adam Powell <adamp@google.com> Toolbar factoring and ActionBar functionality integration

Toolbars now can act in the role of ActionBar with the exception of
navigation modes. Expandable action views are now supported as well as
populating menu items from a host window.

Change-Id: If477db9c7ad9f95723f28cf73cbf03a07ce9d6ad
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
e43340c80dc66c45edc793ecd0343774aa34d108 18-Mar-2014 Adam Powell <adamp@google.com> android.widget.Toolbar

Add the new Toolbar widget for use in app layouts.

ActionBar can now be used as a point of control for either a
traditional window decor action bar or for a Toolbar that appears
inline in an Activity's layout.

ToolbarActionBar is currently WIP.

Change-Id: I0da093e5645840f4fd032aa34efa0ae5f1825ff2
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
7f610fed107b158c144dca1b20a44ee91eb8c934 19-Feb-2014 Alan Viverette <alanv@google.com> Fix for reveal animated drawables

Includes fixes for RevealDrawable clipping, touch feedback constant
state, and action bar background display lists.

BUG: 13065159
Change-Id: Ie4bf03f59da69047e18a8fe9233c3d24b0160576
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
32fa567b52b4082a1f5d2672e792c77819e435d7 17-Jun-2013 Adam Powell <adamp@google.com> Don't flip action bar main content and tabs

Nobody ever used or liked this "feature" anyway. Onward and upward!

Change-Id: Ica65c413d13ddb998992c7d8761ad5134f75e4fd
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
e8c8ae401b6f0d894a766a1601f55f0fe567df02 09-Feb-2013 Adam Powell <adamp@google.com> Fix setting action bar backgrounds after layout

Fix a bug that would prevent the drawable bounds from being set
correctly for action bar containers.

Change-Id: I396aa40e3d8f6e3b47bcd438e1f26bbfc7b20a7f
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
4457e85a7090ad51726d50a4daf981d917cceedd 19-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6427629 Clean up layout direction APIs

- canResolveXxx() should be hidden
- resetResolvedXxx() should be hidden
- resolveDrawables(), resolveLayoutDirection(), resolvePadding(), resolveTextAlignment(), resolveTextDirection() should be hidden
- onResolvedXxx() should be merged into one callback
- fix also an issue with setting the layout direction of the drawable in ImageView
- fix also an issue with checking if TextAlignment can be resolved

Change-Id: I1402269ddf8632525f5550f80e5610e1a7b4034d
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
a7cc06d82e45918c37429a59b14545c6a57db4e4 02-Aug-2012 Adam Powell <adamp@google.com> Fix drawable handling for ActionBarContainer

ActionBarContainer drawables for primary/stacked/split backgrounds
will now properly respect callbacks, layout direction, etc.

Bug 6905932

Change-Id: I20a089861c66a2a378f4b70c0b6cb4bb27476049
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
7d09f04363cdda6a3cf8b2ad1b67c9a07fa8975f 10-Oct-2011 Adam Powell <adamp@google.com> Bug 5430909 - Overlay action bar should consume hover events

Otherwise these will incorrectly fall through to the view below.

Change-Id: I97280c41b2080f3f156554c6eb111af246e140d0
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
f88b915567a37c481c4c50a6cc57e1ec0e7cf50d 07-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5258435 - ActionBar.setBackgroundDrawable

Fix this call to work properly and add methods for setting
split/stacked bar backgrounds to match existing styleable elements.

Change-Id: I8c6b1c598af1110f84a9098683d8e0226daf2e27
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
af6b97ebe0e6a67d1691c4d7789c7bc312c1e13e 12-Aug-2011 Adam Powell <adamp@google.com> Fix action bar tabs collapsing when they shouldn't.

Change-Id: Ib0a91722b580802d2b5e3b07c4e57397665a3394
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
f5645cbafe7eed33452d888f16726bee8a0cd9fe 11-Aug-2011 Adam Powell <adamp@google.com> Fix bug 5122319 - When action bar tabs run out of space they should
collapse in to a spinner.

When tabs are not given the option of dropping to their own row,
collapse them into a spinner when they would measure too large to be
visible all at once.

Fix bug 5095167 - zombie tabs return when they shouldn't when activity
handles its own orientation changes

Change-Id: I074419d99a22aa5dd1cbc00a66e600ec5cb0b54a
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
45c0b1954d7dfa6e2590ed76b915a98ae971414c 29-Jul-2011 Adam Powell <adamp@google.com> Fix bug 5079507 - ICS (phone) : ActionBar tabs don't correctly resize
if activity handles orientation change

Make sure that bar content height and sizing/layout parameters are
properly updated after a configuration change.

Change-Id: I886df5cd9a655ba1bd34fab2b48e8b5be67fcc32
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
a72ef62e5c329a19eab9935acba816fc1369c637 07-Jul-2011 Adam Powell <adamp@google.com> Add style/theme definitions for solid action bar configurations.

Change-Id: I540e12ad3d8fc779dac24402286d995f542b5d25
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
f6ce6a9bacbb220c6ea7b552c481237f23e64ae7 29-Jun-2011 Adam Powell <adamp@google.com> Fix some issues with the action bar and action modes.

Fix bug 4976004 - bad title measurement for split action modes

Fix bug 4902960 - action modes leaving a hidden action bar in a bad state

Sync with design for the behavior of various permutations of action
bar configuration + modes.

Change-Id: Id75f6b5911b761fabc5fef2cc2600ce197cf9a92
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
310849abb1a0763ea9912b59187f0a4271efaa2e 09-Jun-2011 Adam Powell <adamp@google.com> Bug 4563099 - Action bar tabs - place second row tabs on top in the
absence of home/up

Change-Id: I9d656962161f0cb26cecbc85991b347d2e951c76
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
d21aa12e8eb9d46ee92bf408b4b48386c6bf062d 27-May-2011 Adam Powell <adamp@google.com> Action bar tab layout tweaks.

Let tabs consume the full action bar when the menu is empty and other
elements are disabled when the tab bar would normally split onto a
second row..

Fix bug 4489724 - bug in ActionBarImpl#cleanupTabs.

Change-Id: I28a235d339137add0b106c6e733a6767fa547810
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
25151e4792e9be8dbb892b7eba7349773b8127af 27-May-2011 Adam Powell <adamp@google.com> Fix bug 4487948 - action bar tabs + configuration change = :(

Change-Id: If7f622865ae5597cd9fb664a2952481da5c7e09a
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
640a66eac612b850b5dabd3b93bd94f83ed2d567 29-Apr-2011 Adam Powell <adamp@google.com> Refactoring of action bar internals

Split action bar implementation details. Factor out common components
into AbsActionBar. Layout rules for the lower half of split action
bars.

Change-Id: I6bc39ba6c343055597880a7d4663dd8f30aa4999
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
dae7824c4b78d02159c6ad0896f246942d7b3d8c 26-Apr-2011 Adam Powell <adamp@google.com> Action bar work for phones

Drop tabs to a second row at < w480dp

Make 9-patches for the cab's "done" button thinner

Add a "disable home" display option to the action bar to turn off
focus and touch feedback when tapping home would do nothing

Change-Id: Ib2eedf311655f02055357321e2e9ad5b9037fed1
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
01feaee3d9767ef1185783877e92244f14d7d4ba 11-Feb-2011 Adam Powell <adamp@google.com> Fix bug 3372468 - ActionBar menu shouldn't be clickable after
ActionBar.hide() is called

Action bar will capture touch events and prevent focus from passing to
its children while animating out.

Change-Id: I4501f785ead2afa34f020f9bc1a1121932f3c047
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
6ecf3d1690789ace1a667093ad6bbdd6cd35bda7 19-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3292288 - Make Action Bar trap taps

Change-Id: I517855fb6cc50171dc247ede4537ed8ec58d7c91
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java
45f1e08c348ccb129bcc25e438c05421f7123f41 10-Dec-2010 Adam Powell <adamp@google.com> Fix bug 3259354 - Handle ActionBar backgrounds better for interacting
with action modes.

Tweak ActionBar/mode transition animation to look better with a
variety of action bar styles.

Fix bug 3273773 - ActionBar disappearing while displaying
popupwindow. Some SurfaceFlinger optimizations require a relayout to
recalculate the bounds of overlaid views.

Fix bug 3266010 - Cancel animations properly when switching between
modes.

Change-Id: Ic431176b11115a2211bd0a46d09c8998aefe58d6
/frameworks/base/core/java/com/android/internal/widget/ActionBarContainer.java