1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-02 00:25:10 -04:00

minor astyling

This commit is contained in:
Jesse Vincent 2010-07-10 16:41:48 +00:00
parent 0f17fc4a83
commit ab8cdb3522
6 changed files with 15 additions and 12 deletions

View File

@ -319,7 +319,7 @@ public class FolderList extends K9ListActivity
finish();
}
else if (intent.getBooleanExtra(EXTRA_FROM_SHORTCUT, false) &&
!K9.FOLDER_NONE.equals(mAccount.getAutoExpandFolderName()))
!K9.FOLDER_NONE.equals(mAccount.getAutoExpandFolderName()))
{
onOpenFolder(mAccount.getAutoExpandFolderName());
finish();

View File

@ -57,7 +57,7 @@ public class K9Activity extends Activity
Configuration config = new Configuration();
config.locale = locale;
context.getResources().updateConfiguration(config,
context.getResources().getDisplayMetrics());
context.getResources().getDisplayMetrics());
}
@Override

View File

@ -34,7 +34,8 @@ public class LauncherShortcuts extends K9ListActivity implements OnItemClickList
super.onCreate(icicle);
// finish() immediately if we aren't supposed to be here
if (!Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction())) {
if (!Intent.ACTION_CREATE_SHORTCUT.equals(getIntent().getAction()))
{
finish();
return;
}

View File

@ -527,7 +527,8 @@ public class MessageList
mState.putInt(EXTRA_LIST_POSITION, mListView.getSelectedItemPosition());
}
public void restoreListState() {
public void restoreListState()
{
if (mState == null)
{
return;
@ -2508,7 +2509,7 @@ public class MessageList
LocalMessage message = (LocalMessage) m;
Date date = message.getSentDate();
this.compareDate = message.getInternalDate();
if (this.compareDate == null)
if (this.compareDate == null)
{
this.compareDate = message.getSentDate();
}

View File

@ -1943,7 +1943,7 @@ public class MessageView extends K9Activity implements OnClickListener
{
mHandler.networkError();
}
if ((MessageView.this.mMessage == null) ||
if ((MessageView.this.mMessage == null) ||
!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL))
{
mMessageContentView.loadUrl("file:///android_asset/empty.html");
@ -2150,9 +2150,9 @@ public class MessageView extends K9Activity implements OnClickListener
try
{
mToggleScrollView.setScrolling(false);
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
shiftPressEvent.dispatch(view);
}
catch (Exception e)

View File

@ -1631,13 +1631,13 @@ public class MessagingController implements Runnable
{
if (isMessageSuppressed(account, folder, message ))
if (isMessageSuppressed(account, folder, message))
{
if (K9.DEBUG)
{
Log.d(K9.LOG_TAG, "Message " + message.getUid() + " was suppressed "+
"but just downloaded. "+
"The race condition means we wasted some bandwidth. Oh well.");
"but just downloaded. "+
"The race condition means we wasted some bandwidth. Oh well.");
}
progress.incrementAndGet();
@ -2752,7 +2752,8 @@ public class MessagingController implements Runnable
t.printStackTrace(ps);
ps.close();
if (subject == null) {
if (subject == null)
{
subject = getRootCauseMessage(t);
}