Skip to content

Commit

Permalink
Fix unused param warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gujjwal00 committed Feb 22, 2024
1 parent 123a79b commit ade51d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/gaurav/avnc/viewmodel/VncViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -356,11 +356,11 @@ class VncViewModel(val profile: ServerProfile, app: Application) : BaseViewModel
}

fun pauseFrameBufferUpdates() {
client.setAutomaticFrameBufferUpdates(false)
//client.setAutomaticFrameBufferUpdates(false)
}

fun resumeFrameBufferUpdates() {
client.setAutomaticFrameBufferUpdates(true)
//client.setAutomaticFrameBufferUpdates(true)
}

/**************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/gaurav/avnc/vnc/VncClient.kt
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ class VncClient(private val observer: Observer) {
* Controls whether framebuffer update requests are sent automatically.
* It takes effect after the next call to [processServerMessage].
*/
fun setAutomaticFrameBufferUpdates(enabled: Boolean) = ifConnected {
/*fun setAutomaticFrameBufferUpdates(enabled: Boolean) = ifConnected {
//autoFBRequestsQueued = enabled
}
}*/

/**
* Puts framebuffer contents in currently active OpenGL texture.
Expand Down

0 comments on commit ade51d5

Please sign in to comment.