mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
Merge pull request #870 from deltachat/independent-markers
add api for independent markers
This commit is contained in:
@@ -850,6 +850,12 @@ JNIEXPORT jstring Java_com_b44t_messenger_DcArray_getMarker(JNIEnv *env, jobject
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT jboolean Java_com_b44t_messenger_DcArray_isIndependent(JNIEnv *env, jobject obj, jint index)
|
||||
{
|
||||
return (dc_array_is_independent(get_dc_array(env, obj), index)!=0);
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* DcChatlist
|
||||
******************************************************************************/
|
||||
@@ -1290,6 +1296,13 @@ JNIEXPORT void Java_com_b44t_messenger_DcMsg_setDuration(JNIEnv *env, jobject ob
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void Java_com_b44t_messenger_DcMsg_setLocation(JNIEnv *env, jobject obj, jfloat latitude, jfloat longitude)
|
||||
{
|
||||
dc_msg_set_location(get_dc_msg(env, obj), latitude, longitude);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* DcContact
|
||||
******************************************************************************/
|
||||
|
||||
@@ -20,6 +20,7 @@ public class DcArray {
|
||||
public native int getMsgId (int index);
|
||||
public native int getLocationId(int index);
|
||||
public native String getMarker (int index);
|
||||
public native boolean isIndependent(int index);
|
||||
|
||||
// working with raw c-data
|
||||
private long arrayCPtr; // CAVE: the name is referenced in the JNI
|
||||
|
||||
@@ -85,6 +85,7 @@ public class DcMsg {
|
||||
public native void setFile (String file, String filemime);
|
||||
public native void setDimension (int width, int height);
|
||||
public native void setDuration (int duration);
|
||||
public native void setLocation (float latitude, float longitude);
|
||||
|
||||
public File getFileAsFile() {
|
||||
if(getFile()==null)
|
||||
|
||||
Reference in New Issue
Block a user