Merge pull request #3246 from k9mail/replace_getLastNonConfigurationInstance

Replace usage of getLastNonConfigurationInstance()
This commit is contained in:
cketti 2018-03-10 20:37:46 +01:00 committed by GitHub
commit a82cec7010
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -434,7 +434,7 @@ public class Accounts extends K9ListActivity implements OnItemClickListener {
handler.setViewTitle();
// Handle activity restarts because of a configuration change (e.g. rotating the screen)
nonConfigurationInstance = (NonConfigurationInstance) getLastNonConfigurationInstance();
nonConfigurationInstance = (NonConfigurationInstance) getLastCustomNonConfigurationInstance();
if (nonConfigurationInstance != null) {
nonConfigurationInstance.restore(this);
}

View file

@ -351,7 +351,7 @@ public class FolderList extends K9ListActivity {
@SuppressWarnings("unchecked")
private void restorePreviousData() {
final Object previousData = getLastNonConfigurationInstance();
final Object previousData = getLastCustomNonConfigurationInstance();
if (previousData != null) {
adapter.mFolders = (ArrayList<FolderInfoHolder>) previousData;

View file

@ -446,7 +446,7 @@ public class MessageCompose extends K9Activity implements OnClickListener,
setTitle();
currentMessageBuilder = (MessageBuilder) getLastNonConfigurationInstance();
currentMessageBuilder = (MessageBuilder) getLastCustomNonConfigurationInstance();
if (currentMessageBuilder != null) {
setProgressBarIndeterminateVisibility(true);
currentMessageBuilder.reattachCallback(this);