mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-15 14:05:05 -05:00
make it possible to get to global settings from the folder list
This commit is contained in:
parent
853e9532a9
commit
8f1d535630
@ -56,11 +56,22 @@
|
|||||||
android:title="@string/check_mail_action"
|
android:title="@string/check_mail_action"
|
||||||
android:icon="@drawable/ic_menu_refresh"
|
android:icon="@drawable/ic_menu_refresh"
|
||||||
/>
|
/>
|
||||||
|
<item
|
||||||
|
android:id="@+id/settings"
|
||||||
|
android:title="@string/preferences_action"
|
||||||
|
android:icon="@drawable/ic_menu_preferences">
|
||||||
|
<menu>
|
||||||
<item
|
<item
|
||||||
android:id="@+id/account_settings"
|
android:id="@+id/account_settings"
|
||||||
android:title="@string/account_settings_action"
|
android:title="@string/account_settings_action"
|
||||||
android:icon="@android:drawable/ic_menu_preferences"
|
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
|
<item
|
||||||
android:id="@+id/send_messages"
|
android:id="@+id/send_messages"
|
||||||
android:title="@string/send_messages_action"
|
android:title="@string/send_messages_action"
|
||||||
|
@ -20,6 +20,7 @@ import android.widget.AdapterView.AdapterContextMenuInfo;
|
|||||||
import android.widget.AdapterView.OnItemClickListener;
|
import android.widget.AdapterView.OnItemClickListener;
|
||||||
import com.fsck.k9.*;
|
import com.fsck.k9.*;
|
||||||
import com.fsck.k9.Account.FolderMode;
|
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.AccountSettings;
|
||||||
import com.fsck.k9.activity.setup.FolderSettings;
|
import com.fsck.k9.activity.setup.FolderSettings;
|
||||||
import com.fsck.k9.controller.MessagingController;
|
import com.fsck.k9.controller.MessagingController;
|
||||||
@ -486,6 +487,10 @@ public class FolderList extends K9ListActivity
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void onEditPrefs()
|
||||||
|
{
|
||||||
|
Prefs.actionPrefs(this);
|
||||||
|
}
|
||||||
private void onEditAccount()
|
private void onEditAccount()
|
||||||
{
|
{
|
||||||
AccountSettings.actionSettings(this, mAccount);
|
AccountSettings.actionSettings(this, mAccount);
|
||||||
@ -556,6 +561,11 @@ public class FolderList extends K9ListActivity
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
case R.id.app_settings:
|
||||||
|
onEditPrefs();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
case R.id.empty_trash:
|
case R.id.empty_trash:
|
||||||
onEmptyTrash(mAccount);
|
onEmptyTrash(mAccount);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user