Skip to content

Commit 8ac41bb

Browse files
Edward Savage-Jonesjredestig
authored andcommitted
Corrected typo when checking InputStream methods
Corrected a small typo where Java InputStream methods are incorrectly checked when creating a JNI InputStream adaptor. Change-Id: I5f14897e0d5ddceb4b2af6be46769713f0487624
1 parent 33034b1 commit 8ac41bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ SkStream* CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream,
164164
RETURN_NULL_IF_NULL(gInputStream_resetMethodID);
165165
RETURN_NULL_IF_NULL(gInputStream_markMethodID);
166166
RETURN_NULL_IF_NULL(gInputStream_availableMethodID);
167-
RETURN_NULL_IF_NULL(gInputStream_availableMethodID);
167+
RETURN_NULL_IF_NULL(gInputStream_readMethodID);
168168
RETURN_NULL_IF_NULL(gInputStream_skipMethodID);
169169

170170
gInited = true;

0 commit comments

Comments
 (0)