1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

make it possible to get to global settings from the folder list

This commit is contained in:
Jesse Vincent 2010-07-16 01:24:01 +00:00
parent 853e9532a9
commit 8f1d535630
2 changed files with 25 additions and 4 deletions

View File

@ -56,11 +56,22 @@
android:title="@string/check_mail_action"
android:icon="@drawable/ic_menu_refresh"
/>
<item
android:id="@+id/settings"
android:title="@string/preferences_action"
android:icon="@drawable/ic_menu_preferences">
<menu>
<item
android:id="@+id/account_settings"
android:title="@string/account_settings_action"
android:icon="@android:drawable/ic_menu_preferences"
/>
<item android:id="@+id/app_settings"
android:title="@string/global_settings_action"
android:icon="@android:drawable/ic_menu_preferences"
/>
</menu>
</item>
<item
android:id="@+id/send_messages"
android:title="@string/send_messages_action"

View File

@ -20,6 +20,7 @@ import android.widget.AdapterView.AdapterContextMenuInfo;
import android.widget.AdapterView.OnItemClickListener;
import com.fsck.k9.*;
import com.fsck.k9.Account.FolderMode;
import com.fsck.k9.activity.setup.Prefs;
import com.fsck.k9.activity.setup.AccountSettings;
import com.fsck.k9.activity.setup.FolderSettings;
import com.fsck.k9.controller.MessagingController;
@ -486,6 +487,10 @@ public class FolderList extends K9ListActivity
}
private void onEditPrefs()
{
Prefs.actionPrefs(this);
}
private void onEditAccount()
{
AccountSettings.actionSettings(this, mAccount);
@ -556,6 +561,11 @@ public class FolderList extends K9ListActivity
return true;
case R.id.app_settings:
onEditPrefs();
return true;
case R.id.empty_trash:
onEmptyTrash(mAccount);