From 9a0da561583f85fb98b201b793467aa20953440a Mon Sep 17 00:00:00 2001 From: Eric House Date: Sun, 8 Feb 2015 10:35:52 -0800 Subject: [PATCH] fix NPE: onActivityResult gets called before onResume, so reload game there instead. --- .../XWords4/src/org/eehouse/android/xw4/GameConfigDelegate.java | 1 + 1 file changed, 1 insertion(+) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigDelegate.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigDelegate.java index f83538185..33ae25a5d 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigDelegate.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameConfigDelegate.java @@ -507,6 +507,7 @@ public class GameConfigDelegate extends DelegateBase protected void onActivityResult( int requestCode, int resultCode, Intent data ) { if ( Activity.RESULT_CANCELED != resultCode ) { + loadGame(); switch( requestCode ) { case REQUEST_DICT: String dictName = data.getStringExtra( DictsDelegate.RESULT_LAST_DICT );