@@ -110,13 +110,13 @@ private native void updatePageInternal(Bitmap bitmap,
110110 private native void abortCookie (long cookie );
111111 private native boolean cookieAborted (long cookie );
112112
113-
114- public native void setInkThickness (float inkThickness );
115- public native void setInkColor (float r , float g , float b );
116- public native void setHighlightColor (float r , float g , float b );
117- public native void setUnderlineColor (float r , float g , float b );
118- public native void setStrikeoutColor (float r , float g , float b );
119- public native void setTextAnnotIconColor (float r , float g , float b );
113+ /* making these non synchronized probably lead to a hard to debug crash in native code */
114+ public synchronized native void setInkThickness (float inkThickness );
115+ public synchronized native void setInkColor (float r , float g , float b );
116+ public synchronized native void setHighlightColor (float r , float g , float b );
117+ public synchronized native void setUnderlineColor (float r , float g , float b );
118+ public synchronized native void setStrikeoutColor (float r , float g , float b );
119+ public synchronized native void setTextAnnotIconColor (float r , float g , float b );
120120 public synchronized native int insertBlankPageBeforeInternal (int position );
121121
122122 public synchronized native boolean javascriptSupported ();
0 commit comments