Skip to content

Commit

Permalink
remove usage of deprecated API
Browse files Browse the repository at this point in the history
  • Loading branch information
y-polek committed Jun 1, 2024
1 parent 4f78fc5 commit a51cf31
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/kotlin/dev/polek/adbwifi/ui/view/WindowFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import com.intellij.ui.content.ContentFactory
class WindowFactory : ToolWindowFactory, DumbAware {

override fun createToolWindowContent(project: Project, toolWindow: ToolWindow) {
val contentFactory = ContentFactory.SERVICE.getInstance()
val content = contentFactory.createContent(AdbWiFiToolWindow(project, toolWindow), "", false)
val content = ContentFactory.getInstance().createContent(AdbWiFiToolWindow(project, toolWindow), "", false)
toolWindow.contentManager.addContent(content)
}
}

0 comments on commit a51cf31

Please sign in to comment.