1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05: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;

View File

@ -2152,7 +2152,7 @@ public class MessageView extends K9Activity implements OnClickListener
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);
}