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 86cddbd..cda6ab9 100644 --- a/packaging/my-account.spec +++ b/packaging/my-account.spec @@ -2,7 +2,7 @@ Name: my-account-profile_wearable Summary: My account application -Version: 0.0.4 +Version: 0.0.5 Release: 0 Provides: my-account = %{version}-%{release} Group: main/devel 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"); } |