Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
5 changes: 5 additions & 0 deletions flutter-idea/src/io/flutter/actions/DeviceSelectorAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -234,5 +234,10 @@ public void actionPerformed(AnActionEvent e) {
service.setSelectedDevice(device);
}
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}
}
}
6 changes: 6 additions & 0 deletions flutter-idea/src/io/flutter/actions/OpenEmulatorAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
package io.flutter.actions;

import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
Expand Down Expand Up @@ -47,4 +48,9 @@ public OpenEmulatorAction(AndroidEmulator emulator) {
public void actionPerformed(@NotNull AnActionEvent event) {
emulator.startEmulator();
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}
}
6 changes: 6 additions & 0 deletions flutter-idea/src/io/flutter/actions/OpenSimulatorAction.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/
package io.flutter.actions;

import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
Expand All @@ -26,6 +27,11 @@ public void update(@NotNull AnActionEvent e) {
e.getPresentation().setEnabled(enabled);
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}

@Override
public void actionPerformed(@NotNull AnActionEvent event) {
@Nullable final Project project = event.getProject();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
*/
package io.flutter.actions;

import com.intellij.openapi.actionSystem.ActionUpdateThread;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import io.flutter.FlutterInitializer;
import io.flutter.run.daemon.DeviceService;
import org.jetbrains.annotations.NotNull;

public class RestartFlutterDaemonAction extends AnAction {
public RestartFlutterDaemonAction() {
Expand All @@ -27,4 +29,9 @@ public void actionPerformed(AnActionEvent event) {

DeviceService.getInstance(project).restart();
}

@Override
public @NotNull ActionUpdateThread getActionUpdateThread() {
return ActionUpdateThread.BGT;
}
}