mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
DcContext.setLocation() returns the state
This commit is contained in:
+2
-2
@@ -746,9 +746,9 @@ JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_isSendingLocationsToChat(JN
|
||||
}
|
||||
|
||||
|
||||
JNIEXPORT void Java_com_b44t_messenger_DcContext_setLocation(JNIEnv *env, jobject obj, jfloat latitude, jfloat longitude, jfloat accuracy)
|
||||
JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_setLocation(JNIEnv *env, jobject obj, jfloat latitude, jfloat longitude, jfloat accuracy)
|
||||
{
|
||||
dc_set_location(get_dc_context(env, obj), latitude, longitude, accuracy);
|
||||
return (dc_set_location(get_dc_context(env, obj), latitude, longitude, accuracy)!=0);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ public class DcContext {
|
||||
public native int joinSecurejoin (String qr);
|
||||
public native void sendLocationsToChat (int chat_id, int seconds);
|
||||
public native boolean isSendingLocationsToChat(int chat_id);
|
||||
public native void setLocation (float latitude, float longitude, float accuracy);
|
||||
public native boolean setLocation (float latitude, float longitude, float accuracy);
|
||||
|
||||
// event handling - you should @Override this function in derived classes
|
||||
public long handleEvent(int event, long data1, long data2) {
|
||||
|
||||
Reference in New Issue
Block a user