Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copying an image crashes Unexpected Keyboard #795

Open
MarGar12 opened this issue Nov 3, 2024 · 2 comments
Open

Copying an image crashes Unexpected Keyboard #795

MarGar12 opened this issue Nov 3, 2024 · 2 comments

Comments

@MarGar12
Copy link

MarGar12 commented Nov 3, 2024

Crash Trace:

FATAL EXCEPTION: main
Process: juloo.keyboard2, PID: 5431
java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.String java.lang.CharSequence.toString()' on a null object reference
at juloo.keyboard2.g.a(SourceFile:26)
at juloo.keyboard2.f.onPrimaryClipChanged(Unknown Source:2)
at android.content.ClipboardManager.reportPrimaryClipChanged(ClipboardManager.java:411)
at android.content.ClipboardManager$1.lambda$dispatchPrimaryClipChanged$0(ClipboardManager.java:103)
at android.content.ClipboardManager$1.$r8$lambda$ZBnZ9kLEDHJ9Wf9KWTWi217Hd24(Unknown Source:0)
at android.content.ClipboardManager$1$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
at android.os.Handler.handleCallback(Handler.java:959)
at android.os.Handler.dispatchMessage(Handler.java:100)
at android.os.Looper.loopOnce(Looper.java:232)
at android.os.Looper.loop(Looper.java:317)
at android.app.ActivityThread.main(ActivityThread.java:8601)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:585)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863)

There's also no toggle to keep "Recently copied text" on, it turns off everytime and I find it kind of inconvenient :v
Also pasting a website link in a browser causes a crash and clears the clipboard

@Julow
Copy link
Owner

Julow commented Nov 3, 2024

Thanks for the issue, this might be the same bug as #789, which is fixed.

There's also no toggle to keep "Recently copied text" on, it turns off everytime and I find it kind of inconvenient

Let's keep this issue open until this is addressed.

@Yogesh-B
Copy link
Contributor

I am using android 14. there is new feature that after taking screenshot it gets saved in clipboard and we can paste it directly anywhere(I tried pasting in whatsapp). Gboard is pasting image without issue. In unexpected keyboard, whatsapp just hangs. I also tried in gmail app, pasting image works fine in gmail app. github mobile is not pasting the image neither using gboard nor unexpected kb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants