public static GoannaEditableListener create(View targetView, GoannaEditableClient editable) { final Class<?>[] PROXY_INTERFACES = { InputConnection.class, InputConnectionHandler.class, GoannaEditableListener.class }; DebugGoannaInputConnection dgic = new DebugGoannaInputConnection(targetView, editable); dgic.mProxy = (InputConnection) Proxy.newProxyInstance( GoannaInputConnection.class.getClassLoader(), PROXY_INTERFACES, dgic); return (GoannaEditableListener) dgic.mProxy; }
public static GoannaEditableListener create(View targetView, GoannaEditableClient editable) { if (DEBUG) return DebugGoannaInputConnection.create(targetView, editable); else return new GoannaInputConnection(targetView, editable); }