Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format according google rules => pub global run flutter_plugin_tools …
…format --plugins camera
  • Loading branch information
jsroest committed Jan 21, 2021
commit ca3977d9e4e7238486d9a1292f8811804a0128fa
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,14 @@ void send(CameraEventType eventType, Map<String, Object> args) {
if (cameraChannel == null) {
return;
}
new Handler(Looper.getMainLooper()).post(new Runnable () {
@Override
public void run () {
cameraChannel.invokeMethod(eventType.method, args);
}
});
new Handler(Looper.getMainLooper())
.post(
new Runnable() {
@Override
public void run() {
cameraChannel.invokeMethod(eventType.method, args);
}
});
}

void send(DeviceEventType eventType) {
Expand All @@ -122,11 +124,13 @@ void send(DeviceEventType eventType, Map<String, Object> args) {
if (deviceChannel == null) {
return;
}
new Handler(Looper.getMainLooper()).post(new Runnable () {
@Override
public void run () {
deviceChannel.invokeMethod(eventType.method, args);
}
});
new Handler(Looper.getMainLooper())
.post(
new Runnable() {
@Override
public void run() {
deviceChannel.invokeMethod(eventType.method, args);
}
});
}
}