mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-17 07:30:16 -05:00
minor astyling
This commit is contained in:
parent
0f17fc4a83
commit
ab8cdb3522
@ -319,7 +319,7 @@ public class FolderList extends K9ListActivity
|
|||||||
finish();
|
finish();
|
||||||
}
|
}
|
||||||
else if (intent.getBooleanExtra(EXTRA_FROM_SHORTCUT, false) &&
|
else if (intent.getBooleanExtra(EXTRA_FROM_SHORTCUT, false) &&
|
||||||
!K9.FOLDER_NONE.equals(mAccount.getAutoExpandFolderName()))
|
!K9.FOLDER_NONE.equals(mAccount.getAutoExpandFolderName()))
|
||||||
{
|
{
|
||||||
onOpenFolder(mAccount.getAutoExpandFolderName());
|
onOpenFolder(mAccount.getAutoExpandFolderName());
|
||||||
finish();
|
finish();
|
||||||
|
@ -57,7 +57,7 @@ public class K9Activity extends Activity
|
|||||||
Configuration config = new Configuration();
|
Configuration config = new Configuration();
|
||||||
config.locale = locale;
|
config.locale = locale;
|
||||||
context.getResources().updateConfiguration(config,
|
context.getResources().updateConfiguration(config,
|
||||||
context.getResources().getDisplayMetrics());
|
context.getResources().getDisplayMetrics());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -34,7 +34,8 @@ public class LauncherShortcuts extends K9ListActivity implements OnItemClickList
|
|||||||
super.onCreate(icicle);
|
super.onCreate(icicle);
|
||||||
|
|
||||||
// finish() immediately if we aren't supposed to be here
|
// 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();
|
finish();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -527,7 +527,8 @@ public class MessageList
|
|||||||
mState.putInt(EXTRA_LIST_POSITION, mListView.getSelectedItemPosition());
|
mState.putInt(EXTRA_LIST_POSITION, mListView.getSelectedItemPosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
public void restoreListState() {
|
public void restoreListState()
|
||||||
|
{
|
||||||
if (mState == null)
|
if (mState == null)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -2508,7 +2509,7 @@ public class MessageList
|
|||||||
LocalMessage message = (LocalMessage) m;
|
LocalMessage message = (LocalMessage) m;
|
||||||
Date date = message.getSentDate();
|
Date date = message.getSentDate();
|
||||||
this.compareDate = message.getInternalDate();
|
this.compareDate = message.getInternalDate();
|
||||||
if (this.compareDate == null)
|
if (this.compareDate == null)
|
||||||
{
|
{
|
||||||
this.compareDate = message.getSentDate();
|
this.compareDate = message.getSentDate();
|
||||||
}
|
}
|
||||||
|
@ -1943,7 +1943,7 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
{
|
{
|
||||||
mHandler.networkError();
|
mHandler.networkError();
|
||||||
}
|
}
|
||||||
if ((MessageView.this.mMessage == null) ||
|
if ((MessageView.this.mMessage == null) ||
|
||||||
!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL))
|
!MessageView.this.mMessage.isSet(Flag.X_DOWNLOADED_PARTIAL))
|
||||||
{
|
{
|
||||||
mMessageContentView.loadUrl("file:///android_asset/empty.html");
|
mMessageContentView.loadUrl("file:///android_asset/empty.html");
|
||||||
@ -2150,9 +2150,9 @@ public class MessageView extends K9Activity implements OnClickListener
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
mToggleScrollView.setScrolling(false);
|
mToggleScrollView.setScrolling(false);
|
||||||
|
|
||||||
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
|
KeyEvent shiftPressEvent = new KeyEvent(0, 0, KeyEvent.ACTION_DOWN,
|
||||||
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
|
KeyEvent.KEYCODE_SHIFT_LEFT, 0, 0);
|
||||||
shiftPressEvent.dispatch(view);
|
shiftPressEvent.dispatch(view);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
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)
|
if (K9.DEBUG)
|
||||||
{
|
{
|
||||||
Log.d(K9.LOG_TAG, "Message " + message.getUid() + " was suppressed "+
|
Log.d(K9.LOG_TAG, "Message " + message.getUid() + " was suppressed "+
|
||||||
"but just downloaded. "+
|
"but just downloaded. "+
|
||||||
"The race condition means we wasted some bandwidth. Oh well.");
|
"The race condition means we wasted some bandwidth. Oh well.");
|
||||||
}
|
}
|
||||||
progress.incrementAndGet();
|
progress.incrementAndGet();
|
||||||
|
|
||||||
@ -2752,7 +2752,8 @@ public class MessagingController implements Runnable
|
|||||||
t.printStackTrace(ps);
|
t.printStackTrace(ps);
|
||||||
ps.close();
|
ps.close();
|
||||||
|
|
||||||
if (subject == null) {
|
if (subject == null)
|
||||||
|
{
|
||||||
subject = getRootCauseMessage(t);
|
subject = getRootCauseMessage(t);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user