summaryrefslogtreecommitdiff
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
parentdeef75cbb3af5127cf7fd57fe75fd5d43bad3394 (diff)
downloadmy-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.tar.gz
my-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.tar.bz2
my-account-d8d63def6b121bf11e33c6eeab48644eb38b1a39.zip
Change-Id: Iced38adb0787e6f7cdc7eaad2218162f0d97e3d8
-rw-r--r--packaging/my-account.spec2
-rw-r--r--[-rwxr-xr-x]src/my-account-main.c11
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");
}