[Tizen-submit] 25709: Changes to Tizen:IVI:Release/app-core

noreply at tizen.org noreply at tizen.org
Thu Apr 10 12:43:53 GMT 2014


Hi,
Baptiste DURAND have made the following changes to app-core in project Tizen:IVI:Release. Please review and accept ASAP.

Thank You,

[This message was auto-generated]

---

Request: #25709

  submit:       Tizen:IVI:Release:build/app-core(cleanup) -> Tizen:IVI:Release


Message:
Submitter: Baptiste DURAND <baptiste.durand at open.eurogiciel.org>
Comments: IVI_RELEASE TIVI-2143: partial fix
Git project: platform/core/appfw/app-core
Tag: submit/tizen_ivi_release/20140410.124431
Commit: 086ee6790ff4a87bdc1fcab0dbf8c2d673496a80 Fix the pause/resume logic

State:   new        2014-04-10T12:43:28 tizenrobot
Comment: <no comment>
changes files:
--------------

spec files:
-----------
--- app-core.spec
+++ app-core.spec
@@ -2,7 +2,7 @@
 %bcond_with wayland
 
 Name:       app-core
-VCS:        platform/core/appfw/app-core#d5761f6d3560bea795bc7025493accf4ead9684c
+VCS:        platform/core/appfw/app-core#086ee6790ff4a87bdc1fcab0dbf8c2d673496a80
 Summary:    Application basic
 Version:    1.2
 Release:    48
@@ -91,8 +91,8 @@
 
 %build
 %cmake . \
-%if %{with wayland} && !%{with x}
--Dwith_wayland=TRUE\
+%if %{with wayland}
+-Dwith_wayland=ON \
 %endif
 -DENABLE_GTK=OFF
 

other changes:
--------------

++++++ app-core-1.2.tar.gz
--- packaging/app-core.spec
+++ packaging/app-core.spec
@@ -90,8 +90,8 @@
 
 %build
 %cmake . \
-%if %{with wayland} && !%{with x}
--Dwith_wayland=TRUE\
+%if %{with wayland}
+-Dwith_wayland=ON \
 %endif
 -DENABLE_GTK=OFF
 
--- src/appcore-efl.c
+++ src/appcore-efl.c
@@ -389,6 +389,15 @@
 	case AE_RESUME:
 		LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:start]",
 		    ui->name);
+		/* pause if it hasn't been done before */
+		if (ui->state != AS_PAUSED) {
+			_DBG("[APP %d] PAUSE", _pid);
+			if (ui->ops->pause)
+				r = ui->ops->pause(ui->ops->data);
+			ui->state = AS_PAUSED;
+			if(r >= 0 && resource_reclaiming == TRUE)
+				__appcore_timer_add(ui);
+		}
 		if (ui->state == AS_PAUSED || tmp_val == 1) {
 			_DBG("[APP %d] RESUME", _pid);
 			if (ui->ops->resume)


More information about the Tizen-submit mailing list