[Tizen.Applications] Fix static analysis issues (#5389)
authorkilig <inkyun.kil@samsung.com>
Fri, 14 Jul 2023 04:46:09 +0000 (13:46 +0900)
committerGitHub <noreply@github.com>
Fri, 14 Jul 2023 04:46:09 +0000 (13:46 +0900)
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
src/Tizen.Applications.RemoteView/Tizen.Applications/RemoteView.cs
src/Tizen.Applications.WidgetControl/Tizen.Applications/WidgetControl.cs

index dab7417..1354735 100755 (executable)
@@ -143,6 +143,12 @@ namespace Tizen.Applications
 
                 case Interop.WidgetViewerEvas.ErrorCode.MaxExceeded:
                     throw new InvalidOperationException("Max exceeded");
+
+                case Interop.WidgetViewerEvas.ErrorCode.Disabled:
+                    throw new InvalidOperationException("Disabled");
+
+                default:
+                    throw new InvalidOperationException("Invalid Operation");
             }
         }
 
index 843a53a..0daff7d 100755 (executable)
@@ -1011,6 +1011,9 @@ namespace Tizen.Applications
                         }
                     }
                     break;
+
+                default:
+                    break;
             }
             return 0;