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

Commit 6dce7098 authored by Sunny Kapdi's avatar Sunny Kapdi Committed by Andre Eisenbach
Browse files

Fix Periodic Adv method in jni

Methods related to Periodic Adv are not found
due to incorrect parameter

Bug: 38212326
Change-Id: I97ee8316ff1f292d8c165e1a05499118384605e5
(cherry picked from commit 211b91fc)
parent def2b1fa
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;