Created
September 13, 2013 07:16
-
-
Save brendanzagaeski/6547582 to your computer and use it in GitHub Desktop.
Work-around for incorrectly generated abstract Next() method
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.Runtime; | |
namespace Com.Nostra13.Universalimageloader.Core.Assist.Deque | |
{ | |
public partial class LinkedBlockingDeque | |
{ | |
public partial class DescendingItr | |
{ | |
static IntPtr id_next; | |
[Register ("next", "()Ljava/lang/Object;", "GetNextHandler")] | |
public override global::Java.Lang.Object Next () | |
{ | |
if (id_next == IntPtr.Zero) | |
id_next = JNIEnv.GetMethodID (class_ref, "next", "()Ljava/lang/Object;"); | |
return global::Java.Lang.Object.GetObject<global::Java.Lang.Object> (JNIEnv.CallObjectMethod (Handle, id_next), JniHandleOwnership.TransferLocalRef); | |
} | |
} | |
public partial class Itr | |
{ | |
static IntPtr id_next; | |
[Register ("next", "()Ljava/lang/Object;", "GetNextHandler")] | |
public override global::Java.Lang.Object Next () | |
{ | |
if (id_next == IntPtr.Zero) | |
id_next = JNIEnv.GetMethodID (class_ref, "next", "()Ljava/lang/Object;"); | |
return global::Java.Lang.Object.GetObject<global::Java.Lang.Object> (JNIEnv.CallObjectMethod (Handle, id_next), JniHandleOwnership.TransferLocalRef); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment