1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Added Account Settings to the message list option menu. Did this

because a user that has auto-open set to a particular folder might
never get to the actual folder list which contains the option menu
containing Account Settings.  (There's been one comment in the Market
pertaining to this.)
This commit is contained in:
Daniel Applebaum 2009-10-24 17:10:02 +00:00
parent 99b239fa71
commit ec25d145d6
2 changed files with 15 additions and 0 deletions

View File

@ -75,4 +75,9 @@
android:title="@string/folder_settings_action"
android:icon="@drawable/ic_menu_preferences"
/>
<item
android:id="@+id/account_settings"
android:title="@string/account_settings_action"
android:icon="@android:drawable/ic_menu_preferences"
/>
</menu>

View File

@ -47,6 +47,7 @@ import com.android.email.MessagingListener;
import com.android.email.R;
import com.android.email.Utility;
import com.android.email.MessagingController.SORT_TYPE;
import com.android.email.activity.setup.AccountSettings;
import com.android.email.activity.setup.FolderSettings;
import com.android.email.mail.Address;
import com.android.email.mail.Flag;
@ -598,6 +599,10 @@ public class MessageList extends K9ListActivity {
private void onCompose() {
MessageCompose.actionCompose(this, mAccount);
}
private void onEditAccount() {
AccountSettings.actionSettings(this, mAccount);
}
private void changeSort(SORT_TYPE newSortType) {
sortType = newSortType;
@ -953,6 +958,11 @@ public class MessageList extends K9ListActivity {
FolderSettings.actionSettings(this, mAccount, mFolderName);
return true;
case R.id.account_settings:
onEditAccount();
return true;
default:
return super.onOptionsItemSelected(item);