Merge pull request #3246 from k9mail/replace_getLastNonConfigurationInstance
Replace usage of getLastNonConfigurationInstance()
This commit is contained in:
commit
a82cec7010
3 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue