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

Commit c37a9f8e authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Remove usage of ScopedLocalFrame because it is not needed"

parents 65c71f40 ec462d88
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -20,7 +20,6 @@
#include "com_android_bluetooth.h"
#include "com_android_bluetooth.h"
#include "cutils/properties.h"
#include "cutils/properties.h"
#include "hardware/bt_sock.h"
#include "hardware/bt_sock.h"
#include "nativehelper/ScopedLocalFrame.h"
#include "utils/Log.h"
#include "utils/Log.h"
#include "utils/misc.h"
#include "utils/misc.h"


@@ -162,8 +161,6 @@ static void remote_device_properties_callback(bt_status_t status,
    return;
    return;
  }
  }


  ScopedLocalFrame local_frame(sCallbackEnv.get());

  ScopedLocalRef<jbyteArray> val(
  ScopedLocalRef<jbyteArray> val(
      sCallbackEnv.get(),
      sCallbackEnv.get(),
      (jbyteArray)sCallbackEnv->NewByteArray(num_properties));
      (jbyteArray)sCallbackEnv->NewByteArray(num_properties));