From dde23f55fa5cf4a35bbe6c549d823940ac7f73d4 Mon Sep 17 00:00:00 2001 From: WonYoung Choi Date: Fri, 8 Jul 2016 15:49:03 +0900 Subject: [PATCH] Fix app launch problem Change-Id: I5da1fe6d4a8160dee2cd49cd6d7327f1419af91d --- .../Tizen.Applications.CoreBackend/EventType.cs | 16 +++------------- Tizen.Applications/Tizen.Applications/CoreApplication.cs | 2 +- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/Tizen.Applications/Tizen.Applications.CoreBackend/EventType.cs b/Tizen.Applications/Tizen.Applications.CoreBackend/EventType.cs index 20ba02a..2582677 100644 --- a/Tizen.Applications/Tizen.Applications.CoreBackend/EventType.cs +++ b/Tizen.Applications/Tizen.Applications.CoreBackend/EventType.cs @@ -87,6 +87,7 @@ namespace Tizen.Applications.CoreBackend /// public override int GetHashCode() { + if (_typeName == null) return 0; return _typeName.GetHashCode(); } @@ -95,19 +96,8 @@ namespace Tizen.Applications.CoreBackend /// public override bool Equals(object obj) { - return _typeName.Equals(obj); - } - - /// - /// Determines whether this instance and a specified object. - /// - public bool Equals(EventType obj) - { - if (obj == null) - { - return false; - } - return _typeName.Equals(obj._typeName); + EventType other = obj as EventType; + return other != null && other._typeName == this._typeName; } /// diff --git a/Tizen.Applications/Tizen.Applications/CoreApplication.cs b/Tizen.Applications/Tizen.Applications/CoreApplication.cs index 326bb83..ec147a0 100644 --- a/Tizen.Applications/Tizen.Applications/CoreApplication.cs +++ b/Tizen.Applications/Tizen.Applications/CoreApplication.cs @@ -67,7 +67,7 @@ namespace Tizen.Applications /// /// The backend instance. /// - protected ICoreBackend Backend { get; private set; } + protected ICoreBackend Backend { get { return _backend; } } /// /// Runs the application's main loop. -- 2.7.4