prevent crash issue due to no model information on GBM binary.
authorcskim <charles0.kim@samsung.com>
Tue, 9 May 2017 01:51:31 +0000 (10:51 +0900)
committercskim <charles0.kim@samsung.com>
Tue, 9 May 2017 01:51:31 +0000 (10:51 +0900)
turn on debuggin console log defaultly.

Change-Id: I455856600dc080a01340b5e5940a2facd2fab521

TVMediaHub/TVMediaHub.Tizen/TVMediaHub.cs
TVMediaHub/TVMediaHub.Tizen/Utils/DbgPort.cs

index 46eb92e..e4be01c 100755 (executable)
@@ -46,10 +46,17 @@ namespace TVMediaHub
             SizeUtils.Dpi = dpi;
             SizeUtils.ScaleRatio = scaleRatio;
 
-            string modelName;
-            if (SystemSettingsPort.GetSystemModelName(out modelName))
+            try
             {
-                SizeUtils.SetModelName(modelName);
+                string modelName;
+                if (SystemSettingsPort.GetSystemModelName(out modelName))
+                {
+                    SizeUtils.SetModelName(modelName);
+                }
+            }
+            catch (Exception e)
+            {
+                DbgPort.E("Cant get model name!!!, " + e.Message);
             }
             MainWindow = window;
             TransitionToMain();
index 9baefd4..2ad10bc 100644 (file)
@@ -33,7 +33,7 @@ namespace TVMediaHub.Tizen.Utils
         /// <summary>
         /// A flag which enables console log writting
         /// </summary>
-        private static readonly bool IsNeedToShowInConsole = false;
+        private static readonly bool IsNeedToShowInConsole = true;
 
         /// <summary>
         /// Displays a log message which developer want to check