From 81c5d8a0efb32f079fdc6d5e9b1d80911fd5b859 Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Thu, 24 Mar 2016 14:27:00 +0900 Subject: [PATCH] Fix spec for smack issue Change-Id: Ib6f50e06dab1184235bbb118e6751b6846ad9d1d --- Tizen.Applications/Tizen.Applications/Application.cs | 3 ++- Tizen.Applications/Tizen.Applications/Bundle.cs | 1 + packaging/csapi-application.spec | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) mode change 100644 => 100755 Tizen.Applications/Tizen.Applications/Bundle.cs diff --git a/Tizen.Applications/Tizen.Applications/Application.cs b/Tizen.Applications/Tizen.Applications/Application.cs index f9b09b0..e21956d 100755 --- a/Tizen.Applications/Tizen.Applications/Application.cs +++ b/Tizen.Applications/Tizen.Applications/Application.cs @@ -50,7 +50,7 @@ namespace Tizen.Applications s_CurrentApplication = this; Interop.AppEvent.AddEventHandler(Interop.AppEvent.EventNames.LowMemory, HandleAppEvent, IntPtr.Zero, out _lowMemoryNativeHandle); - Interop.AppEvent.AddEventHandler(Interop.AppEvent.EventNames.LowMemory, HandleAppEvent, IntPtr.Zero, out _localeChangedNativeHandle); + Interop.AppEvent.AddEventHandler(Interop.AppEvent.EventNames.LanguageSet, HandleAppEvent, IntPtr.Zero, out _localeChangedNativeHandle); } /// @@ -114,6 +114,7 @@ namespace Tizen.Applications private void HandleAppEvent(string eventName, IntPtr eventData, IntPtr data) { + Console.WriteLine("HandleAppEvent!! eventName={0}, eventData={1}", eventName, eventData); Bundle b = new Bundle(eventData); if (eventName == Interop.AppEvent.EventNames.LowMemory) { diff --git a/Tizen.Applications/Tizen.Applications/Bundle.cs b/Tizen.Applications/Tizen.Applications/Bundle.cs old mode 100644 new mode 100755 index 55e33a9..94f2f64 --- a/Tizen.Applications/Tizen.Applications/Bundle.cs +++ b/Tizen.Applications/Tizen.Applications/Bundle.cs @@ -35,6 +35,7 @@ namespace Tizen.Applications if (handle != IntPtr.Zero) { _handle = handle; + _disposed = true; _keys = new HashSet(); Interop.Bundle.Iterator iterator = (string key, int type, IntPtr keyval, IntPtr userData) => { diff --git a/packaging/csapi-application.spec b/packaging/csapi-application.spec index ce5de3a..8a63e40 100644 --- a/packaging/csapi-application.spec +++ b/packaging/csapi-application.spec @@ -62,7 +62,10 @@ sed -e "s#@version@#%{version}#g" \ %post gacutil -i %{dllpath}/%{dllname} +find %{_libdir}/mono/gac -name Tizen* -exec chsmack -a "_" {} \; + %files +%manifest %{name}.manifest %{dllpath}/%{dllname} %files devel -- 2.7.4