mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-23 18:02:15 -05:00
Use isFinishing() instead
As suggested by @maniac103 https://github.com/k9mail/k-9/commit/41570e4#commitcomment-7388209
This commit is contained in:
parent
41570e4305
commit
c881207295
@ -99,8 +99,6 @@ public class FolderList extends K9ListActivity {
|
||||
private TextView mActionBarSubTitle;
|
||||
private TextView mActionBarUnread;
|
||||
|
||||
private boolean mIsFinished = false;
|
||||
|
||||
class FolderListHandler extends Handler {
|
||||
|
||||
public void refreshTitle() {
|
||||
@ -282,7 +280,7 @@ public class FolderList extends K9ListActivity {
|
||||
context = this;
|
||||
|
||||
onNewIntent(getIntent());
|
||||
if (mIsFinished) {
|
||||
if (isFinishing()) {
|
||||
/*
|
||||
* onNewIntent() may call finish(), but execution will still continue here.
|
||||
* We return now because we don't want to display the changelog which can
|
||||
@ -323,7 +321,6 @@ public class FolderList extends K9ListActivity {
|
||||
* account, and then the account is deleted or data is wiped, and
|
||||
* then the shortcut is used.
|
||||
*/
|
||||
mIsFinished = true;
|
||||
finish();
|
||||
return;
|
||||
}
|
||||
@ -331,7 +328,6 @@ public class FolderList extends K9ListActivity {
|
||||
if (intent.getBooleanExtra(EXTRA_FROM_SHORTCUT, false) &&
|
||||
!K9.FOLDER_NONE.equals(mAccount.getAutoExpandFolderName())) {
|
||||
onOpenFolder(mAccount.getAutoExpandFolderName());
|
||||
mIsFinished = true;
|
||||
finish();
|
||||
} else {
|
||||
initializeActivityView();
|
||||
|
Loading…
Reference in New Issue
Block a user