87a8982af83168453b6dc219fe984bff68047beb |
|
15-Aug-2014 |
Andy Huang <ath@google.com> |
Peek mode for 2-pane landscape Peek mode allows CV fragments to be visible but not marked viewed and read. TPC keeps a global flag for whether the current conversation should be peeked vs marked read. I have tried to manually reset the flag in the 6 cases that cause the current conversation to change: 1. tap another conversation (don't peek) 2. swipe to another conversation (don't peek) 3. keyboard-advance to another conversation (peek) 4. auto-advance=newer|older (don't peek) 5. auto-advance=list (go older & peek) 6. empty CV and a list cursor has loaded (peek at i=0) Swipe, in particular, required a new onConversationViewSwitched() call in CPA because onPageSelected() is triggered both when swiping around in the view pager AND when simply setting the initial page as part of constructing a view pager. Thankfully, there is only ever one copy of this peek flag in the app, in TPC, since AAC/TPC is where all the work is done both to mark conversations seen and to switch to new conversations. Rotation to portrait on tablets now requires tearing down a ViewPager; this code and thought process is documented here: http://go/xqaxk TODO: selected indicator for transition from peek->read state in-place TODO: touches in CVF should mark it read Bug: 17291366 Change-Id: I24f71a2b7985773814d8caad9f3ab3fe5c3609c8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
ea61dab12099606a1d385e1003dde46bf0f47d4b |
|
06-Oct-2014 |
Jin Cao <jinyan@google.com> |
Remove retry UI state and enable delete for sending Until the "Failed" state is fully implemented, we are going to stick with the old behavior and remove the new Retrying UI state. We'll also enable delete for Sending items so users can delete messages that are perpetually sending. b/17814043 Change-Id: I6e510a553123fa5fdf6bada0fae92bb3e82ec798
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
1e5bccefa627306120fbfd783838e1ef8b7fe0d8 |
|
30-Sep-2014 |
Jin Cao <jinyan@google.com> |
Disable unused menu items Since we now have keyboard shortcuts, it's no longer enough to simply set menu items invisible. For menu items that are no longer valid, use both setVisible and setEnabled. b/17692730 Change-Id: Iad9fb9b6638a68a4650cba699ea430c5c6e6e0fe
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
a6b45218b8d90d7fc3a5ca0901293c71df404553 |
|
18-Sep-2014 |
Jin Cao <jinyan@google.com> |
New keyboard shortcuts Does not include ctrl+ENTER for SEND & we need a new key for REPLY since we are not supporting shift. b/17070243 Change-Id: Ia5f179336dfc2b6631e1a5f26ee888f82f4873c0
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
1af562a320b7aef08c3c94a63a9b9520147e64c5 |
|
09-Sep-2014 |
Jin Cao <jinyan@google.com> |
Enable keyboard shortcuts Alphabetic shortcuts require quertymode = true. b/17070243 Change-Id: I3b37b8e94cb1d02df6a9998e4f91049da5464fc8
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
d03347378e0eb563bcd350c238823f12fdb23684 |
|
02-Sep-2014 |
Jin Cao <jinyan@google.com> |
Use custom toolbar only for tablets and fix line size - only use custom toolbar for tablets so phones won't get any bugs associated with it. - for tablet toolbar title, set it to single line and ellipsize properly in case of long title. - also align title text accordingly. b/17332114 b/17331396 b/17360830 Change-Id: Ib7eecf684303a877a228d7453e2df8825842b6ba
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
77db7fda313ed4c001eb05fb6b619f9f2798c635 |
|
27-Aug-2014 |
Rohan Shah <shahrk@google.com> |
Show current folder on tablet landscape When in conversation view mode, we were not showing any text on the title bar (setEmptyMode). Changed it to be visible if in landscape by checking the is_tablet_landscape boolean (renamed), which we currently use with TwoPaneController. Bug: 16985409 Change-Id: I9a35b3b46f024584e1c47936def5aa854c52813d
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
090ea0188eec1cd29d84d5890cbba6aebfa6b6ce |
|
24-Aug-2014 |
Jin Cao <jinyan@google.com> |
Add custom view for toolbar to reposition search icon Remove search from the default menu items and add the search button to a custom view so we can position it ourselves. This involved extending the toolbar class because custom views cover up the toolbar title by default. b/17070560 Change-Id: Iba7d127a58b8061d84228732fcadbd82665d0835
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
c6801eb828627c37b8992584767c095dfe11df62 |
|
13-Aug-2014 |
Jin Cao <jinyan@google.com> |
Quantum search - version 1 I apologize in advance for this huge CL. - New icons (yay!) - Abandon framework search and handle in-app search functionality ourselves. This is made possible because we use Toolbar and can position any custom view on top. - Remove all previous search related attributes, including search providers, searchable, search authority, default search menu item layout, etc. - Cleaned up the recent history provider to contain only the functionalities we need - query, add, and delete. Instead of using the framework to add recent queries, we directly insert into our database. Since the provider no longer needs to extend ContentProvider, removed some unnecessary callbacks such as onCreate. - Custom quantum search views: - Top search bar, this is inserted in a FrameLayout on top of Toolbar. The search bar interacts with the suggestion list and AbstractActivityController via the QuantumSearchViewController interface. - Suggestions list, this is inserted in the FrameLayout that typically contains the main content pane for either one-pane or two-pane layouts. Again, this interacts with the action bar via the controller. - Voice search, this is simply an implicit intent that converts speech to text. b/16518233 Change-Id: I589c40e6c6e3d8c719856b735d0c53e8db986e65
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
69419bb35240747d14765d4c74d4c2de58f4f8c5 |
|
16-Aug-2014 |
Rohan Shah <shahrk@google.com> |
Disable Change Folder if account does not support it Added a TODO for cleaning up SelectedConversationsActionMenu. Bug: 17070852 Change-Id: I03224f7e2b32b3fb623df5982a8959a70d5a01e6
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
52882ff08fe9420fe2dbb3f681545a330222e9c8 |
|
27-Jul-2014 |
Andrew Sapperstein <asapperstein@google.com> |
switch to appcompat. b/16664350 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
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
512821c11d89d49908f3cfdee0b582601f500f3d |
|
31-May-2014 |
Jin Cao <jinyan@google.com> |
Support "deleting" in outbox - Allow only failed items in Outbox to be swiped away/deleted. - Same applies for multi-selection. - "Deleting" in Outbox means remove the outbox label from the failed message and applying the drafts label. This needs to be implemented by both Gmail and Email providers. - Added new ConversationOperation for this new action. b/4080109 Change-Id: Ia9c8e386c7c65693f72fda85a49cb6a1b7d1fec1
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|
2d86d1123c4183024222dd2eb60f7cbdc24953fd |
|
25-Jul-2014 |
Andrew Sapperstein <asapperstein@google.com> |
Action bar styling. Restores back button and drawer on old versions. b/16510684 b/16167419 Change-Id: I6b48a2d350330403ebf72304d74be957b6de7cb4
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ActionBarController.java
|