CallRecorder icon indicating copy to clipboard operation
CallRecorder copied to clipboard

Protected method can not be overrided by Subclass in Kotlin.

Open ShawnXiaFei opened this issue 5 years ago • 1 comments

First, thanks for what you have done. And then, there has a bug in CallRecordReceiver.kt. See the code below:

// Derived classes could override these to respond to specific events of interest
protected fun onRecordingStarted(context: Context, callRecord: CallRecord, audioFile: File?) {}

protected fun onRecordingFinished(context: Context, callRecord: CallRecord, audioFile: File?) {}

But, in Kotlin, they can not be overrided by subclass, you need to add open after protected. I have forked you project and fix it, you can check it ShawnXiaFei/CallRecorder

Thanks again.

ShawnXiaFei avatar Jan 23 '19 04:01 ShawnXiaFei

Thank you. Actually, you can make PR for this subject?

aykuttasil avatar May 16 '19 22:05 aykuttasil