mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-13 06:38:05 -05:00
astyle
This commit is contained in:
parent
a85c83f696
commit
70a1eef943
@ -2268,20 +2268,20 @@ public class MessageList
|
|||||||
* from.
|
* from.
|
||||||
*/
|
*/
|
||||||
holder.preview.setText(message.sender + " " + message.preview,
|
holder.preview.setText(message.sender + " " + message.preview,
|
||||||
TextView.BufferType.SPANNABLE);
|
TextView.BufferType.SPANNABLE);
|
||||||
Spannable str = (Spannable)holder.preview.getText();
|
Spannable str = (Spannable)holder.preview.getText();
|
||||||
|
|
||||||
// Create our span sections, and assign a format to each.
|
// Create our span sections, and assign a format to each.
|
||||||
str.setSpan(
|
str.setSpan(
|
||||||
new TextAppearanceSpan(
|
new TextAppearanceSpan(
|
||||||
null,
|
null,
|
||||||
Typeface.BOLD,
|
Typeface.BOLD,
|
||||||
-1,
|
-1,
|
||||||
holder.subject.getTextColors(),
|
holder.subject.getTextColors(),
|
||||||
holder.subject.getLinkTextColors()),
|
holder.subject.getLinkTextColors()),
|
||||||
0,
|
0,
|
||||||
message.sender.length(),
|
message.sender.length(),
|
||||||
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
|
Spannable.SPAN_EXCLUSIVE_EXCLUSIVE
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -2984,7 +2984,7 @@ public class MessageList
|
|||||||
if (mController.isMoveCapable(message) == false)
|
if (mController.isMoveCapable(message) == false)
|
||||||
{
|
{
|
||||||
Toast toast = Toast.makeText(this,
|
Toast toast = Toast.makeText(this,
|
||||||
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
||||||
toast.show();
|
toast.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3019,7 +3019,7 @@ public class MessageList
|
|||||||
if (mController.isMoveCapable(message) == false)
|
if (mController.isMoveCapable(message) == false)
|
||||||
{
|
{
|
||||||
Toast toast = Toast.makeText(this,
|
Toast toast = Toast.makeText(this,
|
||||||
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
||||||
toast.show();
|
toast.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3116,7 +3116,7 @@ public class MessageList
|
|||||||
if (mController.isCopyCapable(message) == false)
|
if (mController.isCopyCapable(message) == false)
|
||||||
{
|
{
|
||||||
Toast toast = Toast.makeText(this,
|
Toast toast = Toast.makeText(this,
|
||||||
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
||||||
toast.show();
|
toast.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -3150,7 +3150,7 @@ public class MessageList
|
|||||||
if (mController.isCopyCapable(message) == false)
|
if (mController.isCopyCapable(message) == false)
|
||||||
{
|
{
|
||||||
Toast toast = Toast.makeText(this,
|
Toast toast = Toast.makeText(this,
|
||||||
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
R.string.move_copy_cannot_copy_unsynced_message, Toast.LENGTH_LONG);
|
||||||
toast.show();
|
toast.show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -126,14 +126,16 @@ public class MimeBodyPart extends BodyPart
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
int first = contentId.indexOf('<');
|
int first = contentId.indexOf('<');
|
||||||
int last = contentId.lastIndexOf('>');
|
int last = contentId.lastIndexOf('>');
|
||||||
if (first != -1 && last != -1) {
|
if (first != -1 && last != -1)
|
||||||
return contentId.substring(first+1, last);
|
{
|
||||||
}
|
return contentId.substring(first+1, last);
|
||||||
else {
|
}
|
||||||
return contentId;
|
else
|
||||||
}
|
{
|
||||||
|
return contentId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2068,7 +2068,8 @@ public class LocalStore extends Store implements Serializable
|
|||||||
{
|
{
|
||||||
Cursor cursor = null;
|
Cursor cursor = null;
|
||||||
cursor = mDb.query("messages", new String[] { "html_content" }, "id = ?", new String[] { Long.toString(messageId) }, null, null, null);
|
cursor = mDb.query("messages", new String[] { "html_content" }, "id = ?", new String[] { Long.toString(messageId) }, null, null, null);
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
if (cursor.moveToNext())
|
if (cursor.moveToNext())
|
||||||
{
|
{
|
||||||
String new_html;
|
String new_html;
|
||||||
@ -2081,8 +2082,12 @@ public class LocalStore extends Store implements Serializable
|
|||||||
mDb.update("messages", cv, "id = ?", new String[] { Long.toString(messageId) });
|
mDb.update("messages", cv, "id = ?", new String[] { Long.toString(messageId) });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally {
|
finally
|
||||||
if (cursor != null) { cursor.close(); }
|
{
|
||||||
|
if (cursor != null)
|
||||||
|
{
|
||||||
|
cursor.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user