From f366f2ae095c1a0fd9a850eab59fc2ad7e26cc41 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Wed, 2 May 2012 11:10:44 -0400 Subject: [PATCH] Added a call to removeSplashScreen to Main.onPause This should take care of the "View not attached" error closes #13 Signed-off-by: Ricky Barrette --- FindMyCarLib/src/com/TwentyCodes/android/FindMyCarLib/Main.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/FindMyCarLib/src/com/TwentyCodes/android/FindMyCarLib/Main.java b/FindMyCarLib/src/com/TwentyCodes/android/FindMyCarLib/Main.java index e812921..6134824 100644 --- a/FindMyCarLib/src/com/TwentyCodes/android/FindMyCarLib/Main.java +++ b/FindMyCarLib/src/com/TwentyCodes/android/FindMyCarLib/Main.java @@ -403,6 +403,8 @@ public class Main extends FragmentActivity implements RegistrationCallback, MapF protected void onPause() { Log.i(TAG,"onPause()"); + removeSplashScreen(); + //remove wake lock if it is enabled if(mWakeLock.isHeld()) mWakeLock.release();