Commit 54c549bd authored by Darcy Wong's avatar Darcy Wong
Browse files

fix(android): Cherrypick #2377

Follow-on to #2376 for master

This fixes Crashlytics [issue](https://console.firebase.google.com/u/0/project/kmapro-ee779/crashlytics/app/android:com.tavultesoft.kmapro/issues/054f29f4c0601121ea1102c0eadf7cb6?time=last-seven-days&sessionId=5DDAD1AB0156000132ECCEAF30E92E2B_DNE_0_v2)

by adding additional checks for when `getTextBeforeCursor()` returns null context. The length in determining `newContext` was also fixed to handle the test scenario involving 6 emojis (SMP chars) followed by `p̂p̂`
parent 36ba4c09
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment