mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 09:08:49 -05:00
ran artistic style against src/com/fsck/k9/
This commit is contained in:
parent
34379dc9be
commit
64469e4b4e
@ -493,7 +493,8 @@ public class Accounts extends K9ListActivity implements OnItemClickListener, OnC
|
||||
AdapterContextMenuInfo menuInfo = (AdapterContextMenuInfo)item.getMenuInfo();
|
||||
// submenus don't actually set the menuInfo, so the "advanced"
|
||||
// submenu wouldn't work.
|
||||
if (menuInfo != null) {
|
||||
if (menuInfo != null)
|
||||
{
|
||||
mSelectedContextAccount = (Account)getListView().getItemAtPosition(menuInfo.position);
|
||||
}
|
||||
switch (item.getItemId())
|
||||
|
@ -695,7 +695,10 @@ public class MessageList
|
||||
|
||||
public void cycleVisibleWidgets(boolean ascending)
|
||||
{
|
||||
if (mTouchView == true ) { return;}
|
||||
if (mTouchView == true)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (ascending)
|
||||
{
|
||||
@ -1943,7 +1946,8 @@ public class MessageList
|
||||
view.setId(R.layout.message_list_item);
|
||||
}
|
||||
|
||||
else {
|
||||
else
|
||||
{
|
||||
view = mInflater.inflate(R.layout.message_list_item, parent, false);
|
||||
view.setId(R.layout.message_list_item);
|
||||
View widgetParent;
|
||||
@ -2024,7 +2028,8 @@ public class MessageList
|
||||
|
||||
holder.subject.setText(message.subject);
|
||||
|
||||
if (holder.preview != null) {
|
||||
if (holder.preview != null)
|
||||
{
|
||||
// in the touchable UI, we have previews
|
||||
// otherwise, we have just a "from" line
|
||||
// because text views can't wrap around each other(?)
|
||||
@ -2039,7 +2044,9 @@ Spannable str = (Spannable)holder.preview.getText();
|
||||
str.setSpan(new TextAppearanceSpan(null ,Typeface.BOLD ,-1, holder.subject.getTextColors(), holder.subject.getLinkTextColors()), 0, message.sender.length(), Spannable.SPAN_EXCLUSIVE_EXCLUSIVE);
|
||||
|
||||
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
holder.from.setText(message.sender);
|
||||
holder.from.setTypeface(null, message.read ? Typeface.NORMAL : Typeface.BOLD);
|
||||
|
||||
@ -2058,11 +2065,14 @@ str.setSpan(new TextAppearanceSpan(null ,Typeface.BOLD ,-1, holder.subject.getTe
|
||||
holder.chip.getBackground().setAlpha(0);
|
||||
holder.subject.setText("No subject");
|
||||
holder.subject.setTypeface(null, Typeface.NORMAL);
|
||||
if (holder.preview != null) {
|
||||
if (holder.preview != null)
|
||||
{
|
||||
holder.preview.setText("No sender");
|
||||
holder.preview.setTypeface(null, Typeface.NORMAL);
|
||||
holder.preview.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
holder.from.setText("No sender");
|
||||
holder.from.setTypeface(null, Typeface.NORMAL);
|
||||
holder.from.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);
|
||||
|
@ -1942,7 +1942,8 @@ public class LocalStore extends Store implements Serializable
|
||||
*/
|
||||
public String calculateContentPreview(String text)
|
||||
{
|
||||
if (text == null) {
|
||||
if (text == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -1951,7 +1952,8 @@ public class LocalStore extends Store implements Serializable
|
||||
text = text.replaceAll("^On .*wrote.?$","");
|
||||
text = text.replaceAll("(\\r|\\n)+"," ");
|
||||
text = text.replaceAll("\\s+"," ");
|
||||
if (text.length() <= 160) {
|
||||
if (text.length() <= 160)
|
||||
{
|
||||
return text;
|
||||
}
|
||||
else
|
||||
@ -2169,7 +2171,8 @@ public class LocalStore extends Store implements Serializable
|
||||
return;
|
||||
}
|
||||
|
||||
public String getPreview() {
|
||||
public String getPreview()
|
||||
{
|
||||
return mPreview;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user