Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54e599db authored by Charlie Boutier's avatar Charlie Boutier
Browse files

directed_advertising: fix call to high_duty_cycle

Test: manual
Bug: 381314591
Flag: com.android.bluetooth.flags.directed_advertising

Change-Id: I121057286231fb2df58067945f411dca2126ea96
parent 4292d792
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2403,7 +2403,7 @@ static AdvertiseParameters parseParams(JNIEnv* env, jobject i) {
  methodId = env->GetMethodID(clazz, "isDirected", "()Z");
  jboolean isDirected = env->CallBooleanMethod(i, methodId);
  methodId = env->GetMethodID(clazz, "isHighDutyCycle", "()Z");
  jboolean isHighDutyCycle = env->CallIntMethod(i, methodId);
  jboolean isHighDutyCycle = env->CallBooleanMethod(i, methodId);
  methodId = env->GetMethodID(clazz, "getPeerAddress", "()Ljava/lang/String;");
  jstring peerAddress = (jstring)env->CallObjectMethod(i, methodId);
  methodId = env->GetMethodID(clazz, "getPeerAddressType", "()I");