22d1a794cd
- Moved MessageOrderManager code from 2-pabe to the base class. - Most of the code is shared between 1-pane and 2-pane. - Also fixed the bug where we re-created MessageOrderManager every time the user taps newer/older, which was the reson the newer/older button temporarily got disabled when you tapped them. Before this CL we stopped MOM in uninstallMessageViewFragment, but now that we don't reuse fragments this means we stops MOM when we remove the current message view, and re-created a new one when a new message view is created. Now we stop MOM when the right pane gets hidden (2pane) or when showing the mailbox/message list (1pane). - Also removed a now unused callback onMessageShown() from MessageViewFragment. We used to update MOM on this event, but now we do this in installMessageViweFramgment(). Bug 4575586 Change-Id: Idc4aba184f318e0c086afc29dcbe42364e2b51b3
48 lines
1.7 KiB
XML
48 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright (C) 2011 The Android Open Source Project
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
|
<item
|
|
android:id="@+id/send"
|
|
android:orderInCategory="1000"
|
|
android:title="@string/send_action"
|
|
android:showAsAction="ifRoom|withText"
|
|
android:icon="@drawable/ic_menu_send_holo_light"
|
|
android:alphabeticShortcut="s"
|
|
/>
|
|
<item
|
|
android:id="@+id/save"
|
|
android:orderInCategory="1100"
|
|
android:title="@string/save_draft_action"
|
|
android:showAsAction="ifRoom"
|
|
android:alphabeticShortcut="d"
|
|
/>
|
|
<item
|
|
android:id="@+id/discard"
|
|
android:orderInCategory="1200"
|
|
android:title="@string/discard_action"
|
|
android:showAsAction="ifRoom"
|
|
android:icon="@drawable/ic_menu_trash_holo_light"
|
|
android:alphabeticShortcut="q"
|
|
/>
|
|
<item
|
|
android:id="@+id/show_quick_text_list_dialog"
|
|
android:orderInCategory="1300"
|
|
android:title="@string/show_quick_text_list_dialog_action"
|
|
android:alphabeticShortcut="r"
|
|
/>
|
|
</menu>
|