mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -05:00
Move Account and Folder settings into a submenu. give access to global
preferences from there, too. - many users never leave their inboxes making it hard to get up to Settigns
This commit is contained in:
parent
defaf7bbbf
commit
1bf1643987
@ -118,6 +118,12 @@
|
||||
android:title="@string/mark_all_as_read_action"
|
||||
android:icon="@drawable/ic_menu_inbox"
|
||||
/>
|
||||
<item
|
||||
android:id="@+id/settings"
|
||||
android:title="@string/preferences_action"
|
||||
android:icon="@drawable/ic_menu_preferences">
|
||||
<menu>
|
||||
|
||||
<item
|
||||
android:id="@+id/folder_settings"
|
||||
android:title="@string/folder_settings_action"
|
||||
@ -128,6 +134,12 @@
|
||||
android:title="@string/account_settings_action"
|
||||
android:icon="@android:drawable/ic_menu_preferences"
|
||||
/>
|
||||
<item android:id="@+id/app_settings"
|
||||
android:title="@string/preferences_action"
|
||||
android:icon="@android:drawable/ic_menu_preferences"
|
||||
/>
|
||||
</menu>
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/expunge"
|
||||
android:title="@string/expunge_action"
|
||||
|
@ -25,6 +25,7 @@ import android.widget.AdapterView.AdapterContextMenuInfo;
|
||||
import android.widget.CompoundButton.OnCheckedChangeListener;
|
||||
import com.fsck.k9.*;
|
||||
import com.fsck.k9.MessagingController.SORT_TYPE;
|
||||
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.mail.*;
|
||||
@ -786,6 +787,12 @@ public class MessageList
|
||||
}
|
||||
}
|
||||
|
||||
private void onEditPrefs()
|
||||
{
|
||||
Prefs.actionPrefs(this);
|
||||
}
|
||||
|
||||
|
||||
private void onEditAccount()
|
||||
{
|
||||
AccountSettings.actionSettings(this, mAccount);
|
||||
@ -1219,6 +1226,10 @@ public class MessageList
|
||||
|
||||
return true;
|
||||
|
||||
case R.id.app_settings:
|
||||
onEditPrefs();
|
||||
return true;
|
||||
|
||||
case R.id.batch_copy_op:
|
||||
onCopyBatch();
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user