Skip to content

Commit 0141709

Browse files
committed
dont use method ref
1 parent f543d9f commit 0141709

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sentry-android-core/src/main/java/io/sentry/android/core/SentryShakeDetector.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ public void stop() {
9797
// Post clear to the HandlerThread so all queue access stays single-threaded
9898
final @Nullable Handler h = handler;
9999
if (h != null) {
100-
h.post(queue::clear);
100+
h.post(
101+
() -> {
102+
//noinspection Convert2MethodRef
103+
queue.clear();
104+
});
101105
}
102106
}
103107

0 commit comments

Comments
 (0)