History log of /frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f3ad1351d8b40ec5defe35e79d3430ad3c384b6d 27-Nov-2014 Chris Banes <chrisbanes@google.com> Refactor AppCompat's Activity structure

- The activity delegates now have a public abstract class
called AppCompatDelegate. Any Activity can create one,
but they must call through to the delegate at certain
lifecycle methods.
- Related, I've reduced the number of manual lifecycle
calls needed by using Window.Callback where possible.
- Activities can implement the the new AppCompatActivityCallback
interface to receive certain callbacks.
- AppCompatActivity does all of this automatically
- ActionBarActivity is now a deprecated alias for AppCompatActivity
- Removed support for the v4 Drawer Toggle
- Remove our internal callback in favor of using Window.Callback
directly

BUG: 18547959

Change-Id: I8ece4372fa2abbc5b5246544643fafe0e22874be
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
fd1eb27a3700de31507de34fd1bcc51830fe876c 24-Oct-2014 Chris Banes <chrisbanes@google.com> Backport android:theme functionality for all Views

Also make the tinted widgets public so that developers
can extend from them.

BUG: 18367946
BUG: 18112118

Change-Id: Id47e21e960f3539304f0c1c023eebdff6c429c8d
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
c826d759805928c84b20e646e442d55483e003c8 27-Nov-2014 Chris Banes <chrisbanes@google.com> Make sure that the decor is installed by onPostCreate()

BUG: 18525402
Change-Id: I196451786ad5dd47922fbed03f10ca7344957cc1
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
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/ActionBarActivity.java
1c7a431337d8794b8c72291a281d7ebed0d2b397 22-Oct-2014 Chris Banes <chrisbanes@google.com> Fix Tinted Views being inflated with the wrong theme

Depends on Ibb7de7a3c49a1da22cd008aa6ae1791cc651fb3c

BUG: 18048105

Change-Id: Id57fb56f4d7a62f76c4ca6160ebfdc5ac561f37a
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
b73824b81c57b0a6821be9296a053ce4e516e583 23-Oct-2014 Chris Banes <chrisbanes@google.com> Revert "Add kill-switch for AppCompat's compatible widget styles"

This reverts commit c14b3a18fb92466a674e44ede2a6cd4c10caf3a0.

Change-Id: Ibb7de7a3c49a1da22cd008aa6ae1791cc651fb3c
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
c14b3a18fb92466a674e44ede2a6cd4c10caf3a0 20-Oct-2014 Chris Banes <chrisbanes@google.com> Add kill-switch for AppCompat's compatible widget styles

Added a new theme attribute and ActionBarActivity method
to enabled/disable the default widget styling. This does
not completely disable the tinting functionality, just disables
the default styles (which are used by the tinting functionality).

This means that you can still manually set a
Widget.AppCompat.Blah style on a compatible widget and
still get tinting, which is needed for the internal views.

BUG: 18050902
Change-Id: Iaee8ff5eb2e82106a07e02fbb78e477b0535d49e
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
9b1b5bfac6abfda6c7543fc1b57050649b04f41b 17-Sep-2014 Chris Banes <chrisbanes@google.com> Don't call onCreateOptionsMenu if the Activity has been destroyed

BUG: 17453290
Change-Id: Ic536dee58304652b13de6abaa23873b11c2989b2
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
469286122bcbbecbdd0bef74fb50f9d8920e77b9 02-Sep-2014 Chris Banes <chrisbanes@google.com> Add dynamic Drawable tinting to appcompat

Brings the res folder down to 297kB from 435kB,
saving > 30% of disk space (compressed).

Change-Id: Ia64ceacb5afed7f17203ff17ce5eaa990d58be7c
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
c4b9e0cb716a4caff218b27d86f37ef8117d257b 05-Sep-2014 Chris Banes <chrisbanes@google.com> Menu Callbacks for appcompat Toolbar

BUG: 17326424
Change-Id: I1c06029a62626efe2cd2d88f198b7fbe76e057c2
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.java
239e759c480945ee5c164c7c75cb30ff164caa91 04-Sep-2014 Yigit Boyar <yboyar@google.com> Add ability to disable drawer indicator in new ArrowDrawer

Bug: 17380258
Bug: 17378817
Change-Id: Ia38048abbf0c699c3ea2cda5212296477949164c
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
03fc11b659da1645507062bddda450136e13af35 07-Aug-2014 Chris Banes <chrisbanes@google.com> A few fixes around menu window callbacks

- Fix the fact that we do not call onPrepareOptionsMenu
when the overflow/list options menu is shown.
- Fix the dark panel menu background.
- Fix support for native fragments.

BUG: 16853814
BUG: 16870272

Change-Id: I8e2dfcdc222d1568769364cc6f1ac579421443a5
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
9a6cf0b8185a1193921b7ac706d054b493511ed3 08-Aug-2014 Chris Banes <chrisbanes@google.com> Create ActionBarActivityDelegate as needed

Currently we force apps to call super.onCreate()
before they can do anything (setContentView,
supportRequestWindowFeature, etc). This can break
Activity class hierachies and generally make things
difficult. This CL changes this so that they can
call these methods before calling super.

Change-Id: Iffacbeaee5daaa37b1e941ebe491d163aa0be65f
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
8088261dec5dd277ccace13fe00f280ffa80098c 31-Jul-2014 Chris Banes <chrisbanes@google.com> Fix up navigation click handling

Caused by not calling setMenuPrepared(). Also
cleaned up some of the Activity calls.

BUG: 16665053
Change-Id: I0187563854f7c3487fa19de960b7993746a22d67
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.java
b933f9c89bbe890ff6753559b83c0ecf236472dd 21-Mar-2014 Tor Norbye <tnorbye@google.com> Add tools metadata annotations to the appcompat library

Change-Id: Ibe3076675d874ba05e57a0175706e41c3d801819
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
d64322f4b9686fabfd5a03f402d50a8e3fe5aded 28-Aug-2013 Chris Banes <chrisbanes@google.com> Fix onContentChanged not being called in appcompat

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

Change-Id: I66c9ae04b637ef0423451b24cb2f08c3798214ac
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
2bc5191a8cc331b404724759a015949a4b5499fb 18-Jul-2013 Chris Banes <chrisbanes@google.com> Fix ABC ActionProvider visibility refresh

The problem was <4.1's version of Activity.onPreparePanel
checks to see if menu.hasVisibleItems() == true, whereas v4.1+
just ignores this and lets the menu presenter handle it.

Bug: 9907372

Change-Id: Iea3fc048a1f147d1261dbd25615ccb92756b656c
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
9dcd2e58138ca4eb4b18f80b50e8979329e859d6 17-Jul-2013 Scott Main <smain@google.com> javadoc edits for support library

Change-Id: Ie8f228036dc9d33315430490a2e03e9c504ada71
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
904507029cd8ea2d070b6df0911b2dd36b7075a6 25-Jun-2013 Chris Banes <chrisbanes@google.com> DO NOT MERGE Fix overwriting Action Bar title

This commit fixes the Action Bar title being overwritten by
the Activity title. The wrong method on ActionBarView was
being called from Activity.onTitleChanged(), which didn't
check to see if a title had been explicitly set.

Bug: 9569582
Change-Id: I8c03fa03fc6fe34852896841fec52a3d24c080e6
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.java
725c4409c9d876a688466249ec7d2f1bdafa5fda 30-May-2013 Jeff Brown <jeffbrown@google.com> Fix Theme.AppCompat.Light.DarkActionBar styling.

The base themes need to propagate appcompat attributes such as
actionBarWidgetTheme back into their framework counterparts to
ensure that the correct styles are applied.

This change specifically fixes one such problem but there will be
others to be resolved later as part of this bug.

Fix visibility of a couple of overridden methods in
ActionBarActivity to match that of the base class.

Bug: 9196417
Change-Id: I0799f22234109b1d6f4ef8c1bb39bc7530054c06
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.java
6f9952fd5a1dc66c584b26b9062ba6efd69ebcc7 13-May-2013 Chris Banes <chrisbanes@google.com> Tidy up Up Navigate for ActionBarActivity

These came about as part of IOSched testing yesterday.

- Split out the relevant NavUtils calls into seperate
methods allowing apps to override.
- More closely emulate v16's shouldUpRecreateTask() in
base NavUtils
- Adds an interface to TaskStackBuilder which allows
ActionBarActivity to provide the parent intent.

Change-Id: I4e158f6fa9e274f0a38ccfe0a98fc0e7cc4457b9
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
03527a1c5ca870353671fd8b97a08a989fe62012 30-Apr-2013 Chris Banes <chrisbanes@google.com> Fix provided MenuInflater for Fragments

This commit fixes the type of MenuInflater that is
given to fragments when using ActionBarActivity.
Currently, the platform version of MenuInflater is
passed through, whereas SupportMenuInflater should be.

Change-Id: I7a4504aeae2795e8d9d6f4cd4ecd20b8d4ea7602
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.java
b522f57d119f63f3c397ecfec94aaf6459e9f136 04-Apr-2013 Chris Banes <chrisbanes@google.com> Override and final-ise Menu methods

This commit overrides and final-ises the standard
framework methods in ActionBarActivity. They should
not be overriden by devs as they are no longer called.

Change-Id: I18d0601bfa6b37cf247dea16ec767ac0dcf9afbf
Signed-off-by: Chris Banes <chrisbanes@google.com>
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.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/ActionBarActivity.java
e6072e2d918169bd827cf7431347fb648124c227 21-Mar-2013 Jeff Brown <jeffbrown@google.com> Clean up action bar support library.

Small initial refactoring. More to come.

Added a SearchActionProvider to make it easy to embed
SearchViewCompat within a support library action bar.

Bug: 8175766
Change-Id: I4ddb16d8fce5d638a76027446128f7462c2095ce
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java
da10fdd1400ecfd8d7f2e55651dd528d0614dfc5 19-Mar-2013 Jeff Brown <jeffbrown@google.com> Move appcompat library to v7 package.

Moved most of the options menu related functionality out of v4
support lib into appcompat where it belongs. These two libraries
have very different design philosophies and it is important that
they remain untangled.

The support action bar options menu is broken by this change but
will be fixed in later patches after some refactoring to more
fully express the facade-like nature of the appcompat library.

Collapsed the appcompat eclair, honeycomb and ics folders into
one src folder because the layering did not make any sense.
All of these folders were providing portions of the API.
The layering will be reconstructed and improved in later patches.

Moved implementation types into an internal package within appcompat
to prevent them from leaking into the API.

Changed the base package name to android.support.v7, similar
to the gridlayout support lib.

Bug: 8175766
Change-Id: I538cbe08310e63e96a2a9fed0b8636eeda530f2c
/frameworks/support/v7/appcompat/src/android/support/v7/app/ActionBarActivity.java