mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-03 09:49:21 +02:00

* Set WebView proxy to 0.0.0.0 when possible * add DcHttpResponse to wrapper * use new DcHttpResponse to show images in email-html-view * null-encoding is fine for WebResourceResponse() --------- Co-authored-by: B. Petersen <r10s@b44t.com>
22 lines
638 B
Java
22 lines
638 B
Java
package com.b44t.messenger;
|
|
|
|
public class DcHttpResponse {
|
|
|
|
public DcHttpResponse(long httpResponseCPtr) {
|
|
this.httpResponseCPtr = httpResponseCPtr;
|
|
}
|
|
|
|
@Override protected void finalize() throws Throwable {
|
|
super.finalize();
|
|
unrefHttpResponseCPtr();
|
|
httpResponseCPtr = 0;
|
|
}
|
|
|
|
public native String getMimetype ();
|
|
public native String getEncoding ();
|
|
public native byte[] getBlob ();
|
|
|
|
// working with raw c-data
|
|
private long httpResponseCPtr; // CAVE: the name is referenced in the JNI
|
|
private native void unrefHttpResponseCPtr();
|
|
}
|