diff --git a/res/drawable-hdpi/ic_button_archive.png b/res/drawable-hdpi/ic_button_archive.png
new file mode 100644
index 000000000..3850e2d29
Binary files /dev/null and b/res/drawable-hdpi/ic_button_archive.png differ
diff --git a/res/drawable/ic_button_archive.png b/res/drawable/ic_button_archive.png
new file mode 100644
index 000000000..4a410a3c4
Binary files /dev/null and b/res/drawable/ic_button_archive.png differ
diff --git a/res/layout/message_list_batch_buttons.xml b/res/layout/message_list_batch_buttons.xml
index 38b5af0ae..f5e1a213a 100644
--- a/res/layout/message_list_batch_buttons.xml
+++ b/res/layout/message_list_batch_buttons.xml
@@ -26,6 +26,20 @@
android:layout_weight="1"
android:src="@drawable/ic_button_delete"
/>
+
+
Lock-screen notifications
Don\'t display message subject in notification bar when system is locked
+ Batch buttons
+ Configure message list batch buttons
+ Mark read/unread
+ Delete
+ Move to archive
+ Move
+ Flag
+ Unselect
+
Quiet Time
Disable ringing, buzzing and flashing at night
Quiet Time starts
diff --git a/res/xml/global_preferences.xml b/res/xml/global_preferences.xml
index 58c41afdf..02fa3c9a7 100644
--- a/res/xml/global_preferences.xml
+++ b/res/xml/global_preferences.xml
@@ -157,6 +157,7 @@
android:dependency="messagelist_show_contact_name"
/>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
selection = getSelectionFromCheckboxes();
+ onArchive(selection);
+ return;
+ }
+
+ if (v == mBatchMoveButton) {
+ final List selection = getSelectionFromCheckboxes();
+ onMove(selection);
+ return;
+ }
+
synchronized (mAdapter.messages) {
for (MessageInfoHolder holder : mAdapter.messages) {
if (holder.selected) {
diff --git a/src/com/fsck/k9/activity/setup/Prefs.java b/src/com/fsck/k9/activity/setup/Prefs.java
index abfa5391a..2aa0fcd29 100644
--- a/src/com/fsck/k9/activity/setup/Prefs.java
+++ b/src/com/fsck/k9/activity/setup/Prefs.java
@@ -74,7 +74,12 @@ public class Prefs extends K9PreferenceActivity {
private static final String PREFERENCE_QUIET_TIME_ENABLED = "quiet_time_enabled";
private static final String PREFERENCE_QUIET_TIME_STARTS = "quiet_time_starts";
private static final String PREFERENCE_QUIET_TIME_ENDS = "quiet_time_ends";
-
+ private static final String PREFERENCE_BATCH_BUTTONS_MARK_READ = "batch_buttons_mark_read";
+ private static final String PREFERENCE_BATCH_BUTTONS_DELETE = "batch_buttons_delete";
+ private static final String PREFERENCE_BATCH_BUTTONS_ARCHIVE = "batch_buttons_archive";
+ private static final String PREFERENCE_BATCH_BUTTONS_MOVE = "batch_buttons_move";
+ private static final String PREFERENCE_BATCH_BUTTONS_FLAG = "batch_buttons_flag";
+ private static final String PREFERENCE_BATCH_BUTTONS_UNSELECT = "batch_buttons_unselect";
private static final String PREFERENCE_MESSAGEVIEW_MOBILE_LAYOUT = "messageview_mobile_layout";
private static final String PREFERENCE_BACKGROUND_OPS = "background_ops";
@@ -121,6 +126,12 @@ public class Prefs extends K9PreferenceActivity {
private com.fsck.k9.preferences.TimePickerPreference mQuietTimeEnds;
private Preference mAttachmentPathPreference;
+ private CheckBoxPreference mBatchButtonsMarkRead;
+ private CheckBoxPreference mBatchButtonsDelete;
+ private CheckBoxPreference mBatchButtonsArchive;
+ private CheckBoxPreference mBatchButtonsMove;
+ private CheckBoxPreference mBatchButtonsFlag;
+ private CheckBoxPreference mBatchButtonsUnselect;
public static void actionPrefs(Context context) {
Intent i = new Intent(context, Prefs.class);
@@ -342,6 +353,19 @@ public class Prefs extends K9PreferenceActivity {
}
};
});
+
+ mBatchButtonsMarkRead = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_MARK_READ);
+ mBatchButtonsDelete = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_DELETE);
+ mBatchButtonsArchive = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_ARCHIVE);
+ mBatchButtonsMove = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_MOVE);
+ mBatchButtonsFlag = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_FLAG);
+ mBatchButtonsUnselect = (CheckBoxPreference)findPreference(PREFERENCE_BATCH_BUTTONS_UNSELECT);
+ mBatchButtonsMarkRead.setChecked(K9.batchButtonsMarkRead());
+ mBatchButtonsDelete.setChecked(K9.batchButtonsDelete());
+ mBatchButtonsArchive.setChecked(K9.batchButtonsArchive());
+ mBatchButtonsMove.setChecked(K9.batchButtonsMove());
+ mBatchButtonsFlag.setChecked(K9.batchButtonsFlag());
+ mBatchButtonsUnselect.setChecked(K9.batchButtonsUnselect());
}
private void saveSettings() {
@@ -380,6 +404,12 @@ public class Prefs extends K9PreferenceActivity {
K9.setQuietTimeStarts(mQuietTimeStarts.getTime());
K9.setQuietTimeEnds(mQuietTimeEnds.getTime());
+ K9.setBatchButtonsMarkRead(mBatchButtonsMarkRead.isChecked());
+ K9.setBatchButtonsDelete(mBatchButtonsDelete.isChecked());
+ K9.setBatchButtonsArchive(mBatchButtonsArchive.isChecked());
+ K9.setBatchButtonsMove(mBatchButtonsMove.isChecked());
+ K9.setBatchButtonsFlag(mBatchButtonsFlag.isChecked());
+ K9.setBatchButtonsUnselect(mBatchButtonsUnselect.isChecked());
K9.setZoomControlsEnabled(mZoomControlsEnabled.isChecked());
K9.setAttachmentDefaultPath(mAttachmentPathPreference.getSummary().toString());
diff --git a/src/com/fsck/k9/preferences/GlobalSettings.java b/src/com/fsck/k9/preferences/GlobalSettings.java
index d8087fbf4..7a696bb08 100644
--- a/src/com/fsck/k9/preferences/GlobalSettings.java
+++ b/src/com/fsck/k9/preferences/GlobalSettings.java
@@ -196,6 +196,24 @@ public class GlobalSettings {
new V(1, new BooleanSetting(false)),
new V(4, new BooleanSetting(true))
));
+ s.put("batchButtonsMarkRead", Settings.versions(
+ new V(1, new BooleanSetting(true))
+ ));
+ s.put("batchButtonsDelete", Settings.versions(
+ new V(1, new BooleanSetting(true))
+ ));
+ s.put("batchButtonsArchive", Settings.versions(
+ new V(1, new BooleanSetting(false))
+ ));
+ s.put("batchButtonsMove", Settings.versions(
+ new V(1, new BooleanSetting(false))
+ ));
+ s.put("batchButtonsFlag", Settings.versions(
+ new V(1, new BooleanSetting(true))
+ ));
+ s.put("batchButtonsUnselect", Settings.versions(
+ new V(1, new BooleanSetting(true))
+ ));
SETTINGS = Collections.unmodifiableMap(s);