Fix app launch problem
authorWonYoung Choi <wy80.choi@samsung.com>
Fri, 8 Jul 2016 06:49:03 +0000 (15:49 +0900)
committerWonYoung Choi <wy80.choi@samsung.com>
Fri, 8 Jul 2016 06:49:03 +0000 (15:49 +0900)
Change-Id: I5da1fe6d4a8160dee2cd49cd6d7327f1419af91d

Tizen.Applications/Tizen.Applications.CoreBackend/EventType.cs
Tizen.Applications/Tizen.Applications/CoreApplication.cs

index 20ba02a..2582677 100644 (file)
@@ -87,6 +87,7 @@ namespace Tizen.Applications.CoreBackend
         /// </summary>
         public override int GetHashCode()
         {
+            if (_typeName == null) return 0;
             return _typeName.GetHashCode();
         }
 
@@ -95,19 +96,8 @@ namespace Tizen.Applications.CoreBackend
         /// </summary>
         public override bool Equals(object obj)
         {
-            return _typeName.Equals(obj);
-        }
-
-        /// <summary>
-        /// Determines whether this instance and a specified object.
-        /// </summary>
-        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;
         }
 
         /// <summary>
index 326bb83..ec147a0 100644 (file)
@@ -67,7 +67,7 @@ namespace Tizen.Applications
         /// <summary>
         /// The backend instance.
         /// </summary>
-        protected ICoreBackend Backend { get; private set; }
+        protected ICoreBackend Backend { get { return _backend; } }
 
         /// <summary>
         /// Runs the application's main loop.