summaryrefslogtreecommitdiff
path: root/src/com/android/mail/ui/RestrictedActivity.java
Commit message (Collapse)AuthorAgeFilesLines
* switch to appcompat. b/16664350Andrew Sapperstein2014-08-041-17/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently only for MailActivity, ComposeActivity, and FolderSelectionActivity. Any activity that inherits from ActionBarActivity must use an Appcompat-derived style. Three styles currently exist: UnifiedEmail.Appcompat, UnifiedEmail.Appcompat.Toolbar, and ShortcutWidgetTheme are all based on appcompat. go/appcompat-material-doc contains the full migration guide. The fast version is: All MenuItem-related work that relates to actions must use the MenuItemCompat-equivalent. Any theming should use the appcompat versions which don't require a namespace prefix. For instance, use actionBarStyle instead of android:actionBarStyle. There are a few missing styles on views that can't use appcompat versions. Those still use style overrides for v21 changes. All others use appcompat versions. A few methods on activity should now use the support equivalents: getSupportActionBar() supportInvalidateOptionsMenu() startSupportActionMode() Change-Id: Ic6f5964f4115ab4bde49c19df5fe49c9086df965
* fix search hard key handlingAndy Huang2013-03-041-5/+0
| | | | | | | | | onSearchRequested(String) -> executeSearch(String) No sense getting this confused with the very-different Activity.onSearchRequested(). Bug: 8309831 Change-Id: I20dfaa854d6dfb1b8a774337ae2ae1b0db17abce
* Check the activity's focus statePaul Westbrook2013-01-131-0/+5
| | | | | | | | | Fragment#isVisible() can return true when it isn't visible to the user, so we need to check the Activity's focus state before marking a conversation as seen. Bug: 7996654 Change-Id: Idd2fe81a7997d3602d485cf68a285740935a95df
* Get the Account through a listenerVikram Aggarwal2012-08-141-7/+1
| | | | | | | | | | Every object that needs an account gets it from the ActivityController by registering for future updates. This should reduce some of the headaches with account objects going out of sync. Fix b/6969950 Change-Id: I0449b482ecd84bdb947304db5f0504c77dd1dc7a
* Make sure we hold on to pending undo ops.Mindy Pereira2012-07-191-0/+4
| | | | | | | | | | | | its possible the converesation list fragment isn't visible yet, since onepanecontroller doens't always have it around. In this case, store the pending action in the activity and show it once the fragments attaches. Fixes b/6779210 Deleting a Conversation in a Label in Conversation View Does Not Show Undo Change-Id: Ib8c41dceef67dcdac1c331ed777daf6dfb0b6702
* show subject and labels in conversation viewAndy Huang2012-03-191-0/+6
| | | | | | | | | | Show labels only for accounts that support multi-folder conversations. Move some classes into smaller 'browse' package. Special-case subject/labels overlay for now. Full adapterization is coming soon when super-collapsed blocks are in. Change-Id: I458009776eb2e3840dd9e441de9e4ead3cc94d0b
* Hookup search in the UI.Mindy Pereira2012-03-071-1/+1
| | | | | | Remove ActionBarView interface and rename MailActionBar to actionbarview. We needed this for pre v-14 support, but no longer. Change-Id: I539b6751313e561311921010b03250df632260bc
* Destructive action dialogs.Mindy Pereira2012-03-011-0/+8
| | | | | | | Use delete/ archive settings to determine if we should show a confirmation dialog. Show confirm discard dialog in Compose and actually discard. Change-Id: I992bdf598af72a62deadfdfe695a64b89fad5c24
* Settings uriPaul Westbrook2012-02-211-0/+5
| | | | | | | Support for the UI provider to specify the uri for the intent that should be used for launching settings Change-Id: Ibcaf35b15774d87436f83475a3971ceae0ede6fd
* Allow RestrictedActivity to return the context of the activity.Vikram Aggarwal2012-02-141-0/+9
| | | | Change-Id: I5b1553e7c034523000dddd60fb9a90239c178cb0
* Adding more ActivityController dependenciesVikram Aggarwal2012-01-241-0/+170
ui.ControllableActivity added from Gmail. One pane layout files brought in. Minor changes to make everything work with the test activity. Change-Id: I8cacd5f36394fe4a786590e2e381369a3afb5494