Fix download history spinner sometimes not hiding correctly 93/31893/1 accepted/tizen/ivi/20141212.011920 submit/tizen_ivi/20141211.200959
authorJimmy Huang <jimmy.huang@intel.com>
Thu, 11 Dec 2014 19:46:15 +0000 (11:46 -0800)
committerJimmy Huang <jimmy.huang@intel.com>
Thu, 11 Dec 2014 19:48:00 +0000 (11:48 -0800)
Change-Id: Ia18f3517f6843e3486618ac77bcd985e6d462110
Signed-off-by: Jimmy Huang <jimmy.huang@intel.com>
js/main.js
packaging/modello-phone.changes

index 328b8b2..02440c9 100644 (file)
@@ -569,7 +569,6 @@ $(document).ready(
                             $("#noPairedDevice").show();
                         } else {
                             $("#noPairedDevice").hide();
-                            $("#loadingHistorySpinnerWrapper").show();
                             $(".caroufredsel_wrapper").show();
                         }
                     });
@@ -579,9 +578,10 @@ $(document).ready(
                             Phone.loadContacts(function(err) {
                                 if (!err) {
                                     ContactsLibrary.init();
+                                    $("#loadingHistorySpinnerWrapper").show();
                                     Phone.loadCallHistory(function(err) {
+                                        $("#loadingHistorySpinnerWrapper").hide();
                                         if (!err) {
-                                            $("#loadingHistorySpinnerWrapper").hide();
                                             callHistoryCarousel.loadCallHistory(Phone.callHistory(), 0);
                                         }
                                     });
@@ -608,8 +608,8 @@ $(document).ready(
                         if (acceptPhoneCallFromOtherWidget !== true) {
                             window.setTimeout(function() {
                                 Phone.loadCallHistory(function(err) {
+                                    $("#loadingHistorySpinnerWrapper").hide();
                                     if (!err) {
-                                        $("#loadingHistorySpinnerWrapper").hide();
                                         callHistoryCarousel.loadCallHistory(Phone.callHistory(), 0);
 
                                     }
index f37d026..c82574b 100644 (file)
@@ -1,3 +1,6 @@
+* Thu Dec 11 2014 Jimmy Huang <jimmy.huang@intel.com> accepted/tizen/ivi/20141208.013020-1-gcd10124
+- Fix download history spinner sometimes not hiding correctly
+
 * Fri Dec 05 2014 Jimmy Huang <jimmy.huang@intel.com> accepted/tizen/3.0.m14.3/ivi/20141018.100013-3-g927cca8
 - Fix TC-1906 - no call time recording when answering without phone launched