1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-02-25 23:21:50 -05:00

Some code cleanup

This commit is contained in:
cketti 2012-09-14 04:08:17 +02:00
parent 2ee3378eef
commit 8018be3e16

View File

@ -456,8 +456,8 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
*/ */
@Override @Override
protected void onPostCreate(Bundle savedInstanceState) { protected void onPostCreate(Bundle savedInstanceState) {
super.onPostCreate(savedInstanceState); super.onPostCreate(savedInstanceState);
setSupportProgressBarIndeterminateVisibility(false); setSupportProgressBarIndeterminateVisibility(false);
} }
@Override @Override
@ -744,11 +744,6 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
} }
} }
/*
if (K9.DEBUG)
Log.d(K9.LOG_TAG, "action = " + action + ", account = " + mMessageReference.accountUuid + ", folder = " + mMessageReference.folderName + ", sourceMessageUid = " + mMessageReference.uid);
*/
updateTitle(); updateTitle();
} }
@ -1689,6 +1684,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
private void sendMessage() { private void sendMessage() {
new SendMessageTask().execute(); new SendMessageTask().execute();
} }
private void saveMessage() { private void saveMessage() {
new SaveMessageTask().execute(); new SaveMessageTask().execute();
} }
@ -1811,6 +1807,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
Toast toast = Toast.makeText(context, txt, Toast.LENGTH_SHORT); Toast toast = Toast.makeText(context, txt, Toast.LENGTH_SHORT);
toast.show(); toast.show();
} }
/** /**
* Kick off a picker for whatever kind of MIME types we'll accept and let Android take over. * Kick off a picker for whatever kind of MIME types we'll accept and let Android take over.
*/ */
@ -3023,6 +3020,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
private static final String FIND_INSERTION_POINT_HEAD_CONTENT = "<head><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\"></head>"; private static final String FIND_INSERTION_POINT_HEAD_CONTENT = "<head><meta content=\"text/html; charset=utf-8\" http-equiv=\"Content-Type\"></head>";
// Index of the start of the beginning of a String. // Index of the start of the beginning of a String.
private static final int FIND_INSERTION_POINT_START_OF_STRING = 0; private static final int FIND_INSERTION_POINT_START_OF_STRING = 0;
/** /**
* <p>Find the start and end positions of the HTML in the string. This should be the very top * <p>Find the start and end positions of the HTML in the string. This should be the very top
* and bottom of the displayable message. It returns a {@link InsertableHtmlContent}, which * and bottom of the displayable message. It returns a {@link InsertableHtmlContent}, which