fixed TC crash on emulator
authorjomui <jongmun.woo@samsung.com>
Fri, 10 Mar 2017 05:54:57 +0000 (14:54 +0900)
committerjomui <jongmun.woo@samsung.com>
Mon, 13 Mar 2017 05:26:33 +0000 (14:26 +0900)
Signed-off-by: jomui <jongmun.woo@samsung.com>
Change-Id: I5944777c4330a3e13e88a63fb278cde40a0826df

src/Tizen.Maps/Tizen.Maps/MapServiceRequest.cs
src/Tizen.Maps/Tizen.Maps/MapView.cs
src/Tizen.Maps/Tizen.Maps/Overlay.cs
src/Tizen.Maps/Tizen.Maps/Polygon.cs
src/Tizen.Maps/Tizen.Maps/Polyline.cs

index 0e51f01..6d31bee 100755 (executable)
@@ -53,6 +53,7 @@ namespace Tizen.Maps
         /// <returns>Response from map service provider</returns>
         /// <exception cref="TaskCanceledException">Throws if request is canceled</exception>
         /// <exception cref="InvalidOperationException">Throws if native operation failed</exception>
+        /// <exception cref="ArgumentException">Throws if arguments are invalid</exception>
         public async Task<IEnumerable<T>> GetResponseAsync()
         {
             if (_requestTask == null || _requestTask.Task.IsCanceled)
index e5eda19..d1d4ffc 100755 (executable)
@@ -55,6 +55,8 @@ namespace Tizen.Maps
             handle = new Interop.ViewHandle(service.handle, this);
             _service = service;
 
+            this.Resize(1, 1);
+
             // We need to keep Gesture Tap event enabled for object event to work
             handle.SetGestureEnabled(Interop.ViewGesture.Tap, true);
             SetObjectEventCallback();
index 729e9ef..82b25cb 100755 (executable)
@@ -140,6 +140,10 @@ namespace Tizen.Maps
     /// </summary>
     public class BubbleOverlay : Overlay
     {
+        /// <summary>
+        /// Creates Box overlay
+        /// </summary>
+        /// <exception cref="ArgumentException">Throws if input coordinates or objectToContain are invalid</exception>
         public BubbleOverlay(Geocoordinates coordinates, EvasObject objectToContain) : base(coordinates, objectToContain, Interop.ViewOverlayType.Bubble)
         {
         }
@@ -153,6 +157,7 @@ namespace Tizen.Maps
         /// <summary>
         /// Creates Box overlay
         /// </summary>
+        /// <exception cref="ArgumentException">Throws if input coordinates or objectToContain are invalid</exception>
         public BoxOverlay(Geocoordinates coordinates, EvasObject objectToContain) : base(coordinates, objectToContain, Interop.ViewOverlayType.Box)
         {
         }
index f604c49..f38c6c8 100755 (executable)
@@ -35,6 +35,7 @@ namespace Tizen.Maps
         /// </summary>
         /// <param name="coordinates">list of geographical coordinates</param>
         /// <param name="color">background color</param>
+        /// <exception cref="ArgumentException">Throws if input values are invalid</exception>
         public Polygon(IEnumerable<Geocoordinates> coordinates, Color color) : base()
         {
             var err = Interop.ErrorCode.InvalidParameter;
index 60129a2..7ccbef9 100755 (executable)
@@ -36,6 +36,7 @@ namespace Tizen.Maps
         /// <param name="coordinates">List of geographical coordinates</param>
         /// <param name="color">Line color</param>
         /// <param name="width">The width of line [1 ~ 100] (pixels)</param>
+        /// <exception cref="ArgumentException">Throws if input values are invalid</exception>
         public Polyline(List<Geocoordinates> coordinates, Color color, int width) : base()
         {
             var err = Interop.ErrorCode.InvalidParameter;