From a38835121979d4ec1222641646887d7a2305b294 Mon Sep 17 00:00:00 2001 From: Eric House Date: Fri, 7 Feb 2014 07:40:34 -0800 Subject: [PATCH] save/load games in onStop/onStart rather than onPause/onResume so we don't do it as often, and specifically not every time the LookupActivity is pushed. This is an experiment. --- .../src/org/eehouse/android/xw4/BoardActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java index 0a9a2e9b2..8f385e952 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/BoardActivity.java @@ -589,18 +589,18 @@ public class BoardActivity extends XWActivity } // onCreate @Override - protected void onPause() + protected void onStop() { m_handler = null; ConnStatusHandler.setHandler( null ); waitCloseGame( true ); - super.onPause(); + super.onStop(); } @Override - protected void onResume() + protected void onStart() { - super.onResume(); + super.onStart(); m_handler = new Handler(); m_blockingDlgID = BLOCKING_DLG_NONE;