From: kenstir Date: Mon, 23 Nov 2015 01:44:47 +0000 (-0500) Subject: Starting the LoadingTask from SplashActivity.onCreate rather than SplashActivity... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d1664c34bdae1449f3acd9eab79fe68f0eb48a6;p=working%2FEvergreen.git Starting the LoadingTask from SplashActivity.onCreate rather than SplashActivity.onStart seems to fix the issue where the background is half black during the Choose Account dialog. --- diff --git a/Open-ILS/src/Android/core/src/org/evergreen_ils/accountAccess/AccountUtils.java b/Open-ILS/src/Android/core/src/org/evergreen_ils/accountAccess/AccountUtils.java index 8c0a4c5f21..077b8a1d54 100644 --- a/Open-ILS/src/Android/core/src/org/evergreen_ils/accountAccess/AccountUtils.java +++ b/Open-ILS/src/Android/core/src/org/evergreen_ils/accountAccess/AccountUtils.java @@ -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); diff --git a/Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java b/Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java index e0b2878d0e..68c04edf2d 100644 --- a/Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java +++ b/Open-ILS/src/Android/core/src/org/evergreen_ils/views/splashscreen/SplashActivity.java @@ -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() {