Starting the LoadingTask from SplashActivity.onCreate rather than SplashActivity...
authorkenstir <kenstir@gmail.com>
Mon, 23 Nov 2015 01:44:47 +0000 (20:44 -0500)
committerkenstir <kenstir@gmail.com>
Mon, 23 Nov 2015 01:44:47 +0000 (20:44 -0500)
Open-ILS/src/Android/core/src/org/evergreen_ils/accountAccess/AccountUtils.java
Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java

index 8c0a4c5..077b8a1 100644 (file)
@@ -24,7 +24,7 @@ public class AccountUtils {
         String library_url = am.getUserData(account, Const.KEY_LIBRARY_URL);
         String library_name = am.getUserData(account, Const.KEY_LIBRARY_NAME);
 
-        // compatibility with specific apps like cwmars_app.  If no library_url exists as userdata on the account,
+        // compatibility with custom apps like cwmars_app.  If no library_url exists as userdata on the account,
         // get it from the resources.
         if (TextUtils.isEmpty(library_url)) {
             library_url = activity.getString(R.string.ou_library_url);
index e0b2878..68c04ed 100644 (file)
@@ -97,6 +97,8 @@ public class SplashActivity extends Activity implements LoadingTaskListener {
                 startTask();
             }
         });
+
+        startTask();
     }
 
     protected void startTask() {
@@ -107,6 +109,7 @@ public class SplashActivity extends Activity implements LoadingTaskListener {
         mTask.execute();
     }
 
+    /*
     @Override
     protected void onStart() {
         super.onStart();
@@ -115,19 +118,24 @@ public class SplashActivity extends Activity implements LoadingTaskListener {
             startTask();
         }
     }
+    */
 
+    /*
     @Override
     protected void onRestart() {
         super.onRestart();
         restarted = true;
         Log.d(TAG, "onrestart");
     }
+    */
 
+    /*
     @Override
     protected void onResume() {
         super.onResume();
         Log.d(TAG, "onresume");
     }
+    */
 
     @Override
     protected void onStop() {