History log of /frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
46dfe0c53492ef0cb59873123ca141906fbb7dcc 03-Nov-2014 Chris Banes <chrisbanes@google.com> Bring list menu fully into appcompat

We no longer delegate upto the Window to display
list menu items.

We now include more PhoneWindow. YAY.

BUG: 18004449
BUG: 17470603

Change-Id: Ieb072b6ac02db7a1438ab3ebfe2ba1cc29717a77
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
dea1122145ed85590d298a3a9d88ba9f9e2f5f46 03-Sep-2014 Chris Banes <chrisbanes@google.com> Fix Keyboard shortcuts

BUG: 17070243
Change-Id: I2e726b6149fbbd14244939dc2adda4230cbd6659
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
024e4dfcc97766bde6941207af41f7703d35c93f 11-Aug-2014 Chris Banes <chrisbanes@google.com> Merge "Implement windowOverlayActionMode" into lmp-dev
0bf48858279237f95d6aad565a074490745491cd 08-Aug-2014 Chris Banes <chrisbanes@google.com> Don't wrap a created action mode if it's null

BUG: 16870451
Change-Id: I98e803dedcb6d9e74688d2b098393fa8b2b9815d
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
de9f38cc4a30b33ac46b105edf470fbc4a044e99 07-Aug-2014 Chris Banes <chrisbanes@google.com> Implement windowOverlayActionMode

Allows the action mode to overlay the Toolbar

BUG: 16824727
Change-Id: If4d90e81bb44bd7f8b98ea0dc4d9a3b04700bbe3
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
4c2a95906254748cb9a843b061288265d6e185a9 01-Aug-2014 Chris Banes <chrisbanes@google.com> Fix ActionMode behavior in appcompat

This CL fixes a few issues. First is that the action mode
isn't visible when started.
Second, ToolbarActionBar wasn't hooked up to start an action
mode.
Third, we know wrap any implicit action modes (textIsSelectable, etc)
in a support action mode so that the styling is consistent.

BUG: 16721002
Change-Id: Iba7e7b7ab2589a4b1f759edb21f79caab16f2459
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
49c78900da0d43140fb602431fb93212bd7f6c70 15-Jul-2014 Chris Banes <chrisbanes@google.com> Update internal Action Bar implementation to L

This CL brings all of the internal widgets and helpers
for the Action Bar up to date with L. We now only use the
unbundled ActionBar/ToolBar implementation. This is to ease
integration and make styling simpler.

Change-Id: I267c9ee90b5707d997910c57242e26130f2dbcf8
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
4bce6280c64bf2b1d2269b960c272ad0fa9c76dc 06-Jan-2014 Chris Banes <chrisbanes@google.com> Fix AndroidRuntimeException when rotating Honeycomb device

The problem is caused by always calling requestFeature() on Honeycomb
without checking if there is a content view added already. This CL
fixes by moving the feature request to the Activity theme.

https://code.google.com/p/android/issues/detail?id=60841

Change-Id: Ia4de53644ef8a02feaac80ec949f032f84129113
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
8123e4b3d19031e34a60c0db202f0b3d100eb9d8 03-Jun-2013 Chris Banes <chrisbanes@google.com> Ensure native Action Mode position on HC

- Added a new layout to the decor for v11+
which ensures that the compat action bar
is at least invisible when a native action
mode is started.

Bug: 9251554

Signed-off-by: Chris Banes <chrisbanes@google.com>

Change-Id: I0932aaaa0b74166de6cb9134fd96d019ec204119
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
89208232f3b5d1451408d787872504a190bc7ee0 31-May-2013 Chris Banes <chrisbanes@google.com> Remove Native Action Bar support for Honeycomb

- Tweaked config & bool resources so that large & xlarge
match the width qualified resources as much as possible.
- Added CompatTextView which implements textAllCaps for
all platforms.
- Added @hide to internal classes which it was missing

Bug: 9218989

Change-Id: I038d8ab7261d6c1d5cb039cd17903a43d09183c2
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
45d973fcc4c43f5ea00cddd3d9b947d9e8d8fc4e 28-May-2013 Chris Banes <chrisbanes@google.com> ActionBarCompat support for ActionBarDrawerToggle

Bug: 9167781
Change-Id: I927788a093d27e26b8b693766127f1a608d1b540
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
6e6abe6eb358db4c3932752249c8ac61dd3dab21 08-May-2013 Jeff Brown <jeffbrown@google.com> Fix several issues with menu wrappers.

The menu wrappers were being created for the wrong version due to
an upside-down if tree in the menu wrapper factory.

The action provider wrapper code was duplicated and failed to
propagate the visibility changed event correctly. The new JB
API bits were also mixed into the ICS bits.

Added @Override in a few places where it was absent.

Renamed MenuWrapper to MenuWrapperFactory to avoid confusion
in the subtype relation between it and the actual wrapper types.

Simplified the wrapper hierarchy by moving construction of
support wrapper types into this factory instead of having to
override individual createXXX methods on each wrapper type.
This means we can get rid of several types, a possible diamond
inheritance hierarchy involving MenuWrapperHC and SubMenuWrapperHC
and their subtypes and the maintenance hassle of having to update
four places whenever a new version specific subtype needs to
be added.

Added a SupportSubMenu interface type to complete the set
of defined interface types.

Fixed handling of null listeners in a few places.

Bug: 8175766
Change-Id: I8c164893a6025308751a8c05671945874fe047c4
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
9dfa89448924b14898dae4363b3ff79b7a9b8b51 07-May-2013 Chris Banes <chrisbanes@google.com> Fix StackOverflowError in ABC: #8842602

Change-Id: If39d3a00c1d9ba8cc17e159919d4f2521794bde5
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
30837f1095c803f332f4a1c3f0917c8afdd50156 24-Apr-2013 Adam Powell <adamp@google.com> API changes for support action bar menus

Refactor support action bar to use standard framework menu interfaces
instead of additional interfaces. This simplifies the API and results
in fewer disjoint callbacks which could make life difficult for
library authors.

SupportMenu/SupportMenuItem are now private implementation details of
the support lib rather than interfaces used directly by app
developers. Developers must use standard support shim *Compat classes
to access new methods, and these shims are now aware of
SupportMenu/SupportMenuItem and will do the right thing.

Fix up a few other general issues and bugs.

Change-Id: I833dce76485741b680bef84c1c0ed8d81ea57616
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
3a1a7fff9873abbf8097c96f7654a459bf34f223 19-Apr-2013 Jeff Brown <jeffbrown@google.com> appcompat: Add plumbing for fragment options menus.

We make the callbacks available through an interface so that
developers can implement them on any fragment without having
to subclass ActionBarFragment.

The plumbing is mainly transparent to v4 support although we
needed access to a few properties.

Bug: 8661191
Change-Id: I1abce746b7b8443efd406a3e1a4b92c948c678db
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
51e35e07a00e4b56a1ca330323e69ef9258c4e57 04-Apr-2013 Chris Banes <chrisbanes@google.com> Implement Up Navigation in Compat Action Bar

This commits add ancestral navigation to the compat
action bar. It uses the v4 class NavUtils for the
large part:

- Added support versions of up task creation methods
to ActionBarActivity (onCreateNavigateUpTaskStack, etc)
- Moved menu selected logic out of delegates and into
ActionBarActivity.
- Add finishAffinity shim into v4 support.

Change-Id: I2b937434c5820aca162fdfa5665adc33d957bfb9
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
e77f24fdb79c4c0d9d4ae5f7c5e040f4a5bcab42 04-Apr-2013 Chris Banes <chrisbanes@google.com> Merge "Animate Action Bar show/hide" into jb-mr2-dev
a1fae63dbeeef71c2daa25bfcaa2348bffc369aa 03-Apr-2013 Chris Banes <chrisbanes@google.com> Animate Action Bar show/hide

This commit animates the showing or hiding of
the compat Action Bar.

This commit also fixes the hiding of the split
Action Bar (animated or not).

Change-Id: I38f1096be719809722c85ceffec14ebeac291863
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
ed34e2dffd0ce7da89063d06fd3b25687ca367a2 02-Apr-2013 Chris Banes <chrisbanes@google.com> Add Progress Bar support to Action Bar

This commit adds support for displaying a progress
bar on the action:
- Support version of Activity.setProgress* have been
added to ActionBarActivity
- We use the platform's ProgressBar styles, so remove
the now unused drawable.
- As a bit of tidy-up, I renamed the internal version
of requestWindowFeature to match the public name.
- Added ICS version of ProgressBar.java. This was
was needed as ICS added a constructor which we
need.

Change-Id: I865fb3bc3039b30b9f784e1e7e8f5d8d9b5744d3
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
556ac47ce764a4a9320b5ac914536e9da2524176 02-Apr-2013 Chris Banes <chrisbanes@google.com> Mimic PhoneWindow's initial menu creation (compat)

This commit re-works the initial menu creation in
ActionBarActivityDelegateCompat. This means that
supportInvalidateOptionsMenu() can be called anywhere
in onCreate without problem. Fixes 8474759.
As a result, the now unused onPostCreate calls have
been removed.

This is exactly the same change as
Ib376dfc52b51a066a117f0006cd02d50342186ac (which was
approved), but I somehow managed to break my git branch
while rebasing.

Change-Id: I040eff668eb04c68700d8520cd712acf8f61281a
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
5a2bcc375e046c5b6644dcc4d331d3fca0778aed 28-Mar-2013 Chris Banes <chrisbanes@google.com> Tidy up Delegates + Enforce AppCompat theme usage

This commit moves all variables and state into the relevant
delegate classes. This means that ActionBarActivity is now
merely a call proxy and entry point.

As we now have a common class amongst the delegates, I also
fixed the issue where we do not enforce the usage of AppCompat
styles. This will fix issue 8124469.

Change-Id: If055906e754ceda471260f3160009cb384703ecd
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
d8222dedaacae30fa03bee346ebf42ee75b39928 26-Mar-2013 Chris Banes <chrisbanes@google.com> Expose support version of contextual Action Bar

This commit exposes the contextual Action Bar
to developers:

- More drawables imported (sigh).
- Using standard ActionButton style for Close button,
didn't see the point of adding yet more drawables
- Moved ActionMode.java out of internal
- Added ActionModeWrapper for HC+
- Added onBackPressed support
- Added relevant callbacks to ActionBarActivity

Change-Id: I02996621e810db6875c86cc5965ecac769459c16
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
3954d59cb6073615ead9dd34cbdba9e16b8c5b6f 25-Mar-2013 Chris Banes <chrisbanes@google.com> Add Split Action Bar Support

This commit fixes support for the split action bar
on devices running < 3.0:

- Imported ab_bottom* drawables
- Added windowSplitActionBar attri
- Added metadata parsing so which allows per-Activity
enabling of split when narrow:
<meta-data android:name="android.support.UI_OPTIONS"
android:value="splitActionBarWhenNarrow" />

- The Activity delegate has been split out into a
seperate abstract base class for common code.

Change-Id: I9eba5c11aec69f3458de4f84aefc6fbd6c91b4c6
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java
6386aac7ea9be44d23dcea28d9a02110c174e988 25-Mar-2013 Chris Banes <chrisbanes@google.com> Extract platform impls out of ActionBarActivity

At the moment ActionBarActivity is in a bit of a mess
as it contains all of the platform specific delegate
implementations as static inner classes.

This commit extracts out each implementation into it's
own source file. This makes it easier to development,
and makes ActionBarActivity.java more readable.

Change-Id: I9c7ad5861ce62f21bc6c559836f0cea22224ee2b
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivityDelegateHC.java