Skip to content

Commit 711908a

Browse files
committed
fix: force display refresh on stylus lift
1 parent ac04b9b commit 711908a

File tree

1 file changed

+3
-0
lines changed
  • packages/onyxsdk_pen/android/src/main/kotlin/com/example/onyxsdk_pen

1 file changed

+3
-0
lines changed

packages/onyxsdk_pen/android/src/main/kotlin/com/example/onyxsdk_pen/OnyxsdkPenArea.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import com.onyx.android.sdk.data.note.TouchPoint
1111
import com.onyx.android.sdk.pen.RawInputCallback
1212
import com.onyx.android.sdk.pen.TouchHelper
1313
import com.onyx.android.sdk.pen.data.TouchPointList
14+
import com.onyx.android.sdk.api.device.epd.EpdController
15+
import com.onyx.android.sdk.api.device.epd.UpdateMode
1416
import io.flutter.plugin.platform.PlatformView
1517
import io.flutter.plugin.common.MethodChannel
1618
import io.flutter.plugin.common.MethodChannel.MethodCallHandler
@@ -144,6 +146,7 @@ internal class OnyxsdkPenArea(context: Context, messenger: BinaryMessenger, id:
144146
refreshTimerTask = object : TimerTask() {
145147
override fun run() {
146148
touchHelper.setRawDrawingEnabled(false)
149+
EpdController.invalidate(view, UpdateMode.GC);
147150
touchHelper.setRawDrawingEnabled(true)
148151
}
149152
}

0 commit comments

Comments
 (0)