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

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

Merge "Fix Periodic Adv method in jni"

am: 0e556fcc

Change-Id: I81374a8df4a1568e14e86b8a1bde1d441f126b61
parents 3230937b 0e556fcc
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;