mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-02 00:25:10 -04:00
minor astyling
This commit is contained in:
parent
0f17fc4a83
commit
ab8cdb3522
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user