mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-24 08:38:51 -05:00
This should add the ability to change the "Sent Items" and "Deleted Items/Trash" folders in AccountSetupComposition.java.
This commit is contained in:
parent
3f1f7e3dfe
commit
8b6a8c4bfa
@ -55,5 +55,27 @@
|
|||||||
android:singleLine="false"
|
android:singleLine="false"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_width="fill_parent" />
|
android:layout_width="fill_parent" />
|
||||||
|
<TextView
|
||||||
|
android:text="@string/account_settings_sent_items_label"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="?android:attr/textColorPrimary" />
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/account_sent_items"
|
||||||
|
android:singleLine="false"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
|
<TextView
|
||||||
|
android:text="@string/account_settings_deleted_items_label"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent"
|
||||||
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
||||||
|
android:textColor="?android:attr/textColorPrimary" />
|
||||||
|
<EditText
|
||||||
|
android:id="@+id/account_deleted_items"
|
||||||
|
android:singleLine="false"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_width="fill_parent" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
@ -259,6 +259,9 @@ Welcome to K-9 Mail setup. K-9 is an open source email client for Android based
|
|||||||
<string name="account_settings_sent_items_label">Sent Items Folder</string>
|
<string name="account_settings_sent_items_label">Sent Items Folder</string>
|
||||||
<string name="account_settings_sent_items_summary">Save all sent messages to this folder</string>
|
<string name="account_settings_sent_items_summary">Save all sent messages to this folder</string>
|
||||||
|
|
||||||
|
<string name="account_settings_deleted_items_label">Deleted Items Folder</string>
|
||||||
|
<string name="account_settings_deleted_items_summary">Set the deleted items folder</string>
|
||||||
|
|
||||||
<string name="account_delete_dlg_title">Remove</string>
|
<string name="account_delete_dlg_title">Remove</string>
|
||||||
<string name="account_delete_dlg_instructions_fmt">The account \"<xliff:g id="account">%s</xliff:g>\" will be removed from Email.</string>
|
<string name="account_delete_dlg_instructions_fmt">The account \"<xliff:g id="account">%s</xliff:g>\" will be removed from Email.</string>
|
||||||
|
|
||||||
|
@ -29,7 +29,8 @@ public class AccountSetupComposition extends Activity {
|
|||||||
private EditText mAccountEmail;
|
private EditText mAccountEmail;
|
||||||
private EditText mAccountAlwaysBcc;
|
private EditText mAccountAlwaysBcc;
|
||||||
private EditText mAccountName;
|
private EditText mAccountName;
|
||||||
|
private EditText mAccountSentItems;
|
||||||
|
private EditText mAccountDeletedItems;
|
||||||
|
|
||||||
|
|
||||||
public static void actionEditCompositionSettings(Activity context, Account account) {
|
public static void actionEditCompositionSettings(Activity context, Account account) {
|
||||||
@ -68,6 +69,12 @@ public class AccountSetupComposition extends Activity {
|
|||||||
mAccountSignature = (EditText)findViewById(R.id.account_signature);
|
mAccountSignature = (EditText)findViewById(R.id.account_signature);
|
||||||
mAccountSignature.setText(mAccount.getSignature());
|
mAccountSignature.setText(mAccount.getSignature());
|
||||||
|
|
||||||
|
mAccountSentItems = (EditText)findViewById(R.id.account_sent_items);
|
||||||
|
mAccountSentItems.setText(mAccount.getSentFolderName());
|
||||||
|
|
||||||
|
mAccountDeletedItems = (EditText)findViewById(R.id.account_deleted_items);
|
||||||
|
mAccountDeletedItems.setText(mAccount.getTrashFolderName());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -81,6 +88,8 @@ public class AccountSetupComposition extends Activity {
|
|||||||
mAccount.setAlwaysBcc(mAccountAlwaysBcc.getText().toString());
|
mAccount.setAlwaysBcc(mAccountAlwaysBcc.getText().toString());
|
||||||
mAccount.setName(mAccountName.getText().toString());
|
mAccount.setName(mAccountName.getText().toString());
|
||||||
mAccount.setSignature(mAccountSignature.getText().toString());
|
mAccount.setSignature(mAccountSignature.getText().toString());
|
||||||
|
mAccount.setSentFolderName(mAccountSentItems.getText().toString());
|
||||||
|
mAccount.setTrashFolderName(mAccountDeletedItems.getText().toString());
|
||||||
|
|
||||||
mAccount.save(Preferences.getPreferences(this));
|
mAccount.save(Preferences.getPreferences(this));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user