/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
+ * Copyright(c) 2020 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
internal static LongPressGesture GetLongPressGestureFromPtr(global::System.IntPtr cPtr)
{
- LongPressGesture ret = new LongPressGesture(cPtr, false);
+ LongPressGesture ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as LongPressGesture;
+ if (ret == null)
+ {
+ ret = new LongPressGesture(cPtr, false);
+ }
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}