summaryrefslogtreecommitdiff
path: root/src/my-account-main.c
diff options
context:
space:
mode:
authorJooseok Song <seogii.song@samsung.com>2017-02-02 19:34:17 +0900
committerJooseok Song <seogii.song@samsung.com>2017-02-02 19:39:14 +0900
commitd8d63def6b121bf11e33c6eeab48644eb38b1a39 (patch)
tree9fddf607b430648a9a7630d7da40d84353c3c186 /src/my-account-main.c
parentdeef75cbb3af5127cf7fd57fe75fd5d43bad3394 (diff)
downloadmy-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.tar.gz
my-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.tar.bz2
my-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.zip
Change-Id: Iced38adb0787e6f7cdc7eaad2218162f0d97e3d8
Diffstat (limited to 'src/my-account-main.c')
-rw-r--r--[-rwxr-xr-x]src/my-account-main.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/my-account-main.c b/src/my-account-main.c
index 4a8cc14..67dd9f8 100755..100644
--- a/src/my-account-main.c
+++ b/src/my-account-main.c
@@ -117,6 +117,9 @@ bool _myaccount_main_app_create(void *user_data)
return false;
}
+ _myaccount_view_main_create(ad);
+ elm_win_activate(ad->main_win);
+
MA_DEBUG("_myaccount_main_app_create end");
return true;
@@ -156,8 +159,12 @@ void _myaccount_main_app_service(app_control_h service, void *user_data)
ret_if(ad == NULL);
- _myaccount_view_main_create(ad);
- elm_win_activate(ad->main_win);
+ int account_cnt = _myaccount_get_accounts_total_count();
+ if (account_cnt != previous_cnt) {
+ MA_DEBUG("account_cnt is changed from [%d]", previous_cnt);
+ _myaccount_view_main_create(ad);
+ elm_win_activate(ad->main_win);
+ }
MA_DEBUG("_myaccount_main_app_service end");
}