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

Commit 49a3c85a authored by Sunny Kapdi's avatar Sunny Kapdi Committed by android-build-merger
Browse files

Merge "Fix Periodic Adv method in jni"

am: bc29cf9e

Change-Id: I81374a8df4a1568e14e86b8a1bde1d441f126b61
parents 64242edd bc29cf9e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1774,10 +1774,10 @@ static PeriodicAdvertisingParameters parsePeriodicParams(JNIEnv* env,
  jclass clazz = env->GetObjectClass(i);
  jmethodID methodId;

  methodId = env->GetMethodID(clazz, "getIncludeTxPower", "()B");
  methodId = env->GetMethodID(clazz, "getIncludeTxPower", "()Z");
  jboolean includeTxPower = env->CallBooleanMethod(i, methodId);
  methodId = env->GetMethodID(clazz, "getInterval", "()I");
  jboolean interval = env->CallBooleanMethod(i, methodId);
  uint16_t interval = env->CallIntMethod(i, methodId);

  p.enable = true;
  p.min_interval = interval;