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

Crash when disabling accessibility service through notification #1052

Closed
4 tasks done
sds100 opened this issue Jun 21, 2022 · 1 comment
Closed
4 tasks done

Crash when disabling accessibility service through notification #1052

sds100 opened this issue Jun 21, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sds100
Copy link
Collaborator

sds100 commented Jun 21, 2022

Developer TODO (don't remove)

  • create new branch. put issue number at start of name if not a very quick fix.
  • write tests. put issue number in comment
  • update documentation
  • merge and delete branch (don't squash because want commit history to see why I made changes)

Discord message link/email recipient

Describe the bug
Disable the accessibility service using the notification.

Only be Android Lollipop - Marshmallow because the disableSelf method is not implemented.

java.lang.AbstractMethodError: abstract method "void io.github.sds100.keymapper.system.accessibility.IAccessibilityService.disableSelf()"
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceController.onEventFromUi(AccessibilityServiceController.kt:445)
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceController.access$onEventFromUi(AccessibilityServiceController.kt:40)
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceController$7.invokeSuspend(AccessibilityServiceController.kt:198)
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceController$7.invoke(AccessibilityServiceController.kt)
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceController$7.invoke(AccessibilityServiceController.kt)
        at kotlinx.coroutines.flow.FlowKt__TransformKt$onEach$$inlined$unsafeTransform$1$2.emit(Collect.kt:136)
        at kotlinx.coroutines.flow.SharedFlowImpl.collect(SharedFlow.kt:351)
        at kotlinx.coroutines.flow.SharedFlowImpl$collect$1.invokeSuspend(SharedFlow.kt)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234)
        at kotlinx.coroutines.DispatchedTaskKt.resumeUnconfined(DispatchedTask.kt:190)
        at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:161)
        at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
        at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
        at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
        at kotlinx.coroutines.CancellableContinuationImpl.resumeWith(CancellableContinuationImpl.kt:328)
        at kotlinx.coroutines.flow.SharedFlowImpl.emitSuspend(SharedFlow.kt:472)
        at kotlinx.coroutines.flow.SharedFlowImpl.emit(SharedFlow.kt:374)
        at io.github.sds100.keymapper.system.accessibility.AccessibilityServiceAdapter$send$2.invokeSuspend(AccessibilityServiceAdapter.kt:86)
        at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
        at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
        at android.os.Handler.handleCallback(Handler.java:739)
        at android.os.Handler.dispatchMessage(Handler.java:95)
        at android.os.Looper.loop(Looper.java:148)
        at android.app.ActivityThread.main(ActivityThread.java:5417)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
@sds100 sds100 added the bug Something isn't working label Jun 21, 2022
@sds100 sds100 self-assigned this Jun 21, 2022
@sds100
Copy link
Collaborator Author

sds100 commented Jun 21, 2022

fixed

@sds100 sds100 closed this as completed Jun 21, 2022
sds100 added a commit that referenced this issue Jun 21, 2022
sds100 added a commit that referenced this issue Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant