diff options
-rw-r--r-- | packaging/my-account.spec | 2 | ||||
-rw-r--r--[-rwxr-xr-x] | src/my-account-main.c | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/packaging/my-account.spec b/packaging/my-account.spec index 850ccee..d84789d 100644 --- a/packaging/my-account.spec +++ b/packaging/my-account.spec @@ -1,6 +1,6 @@ Name: my-account Summary: My account application -Version: 0.0.4 +Version: 0.0.5 Release: 0 Group: main/devel License: Apache-2.0 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"); } |