refactor(android): migrate BecomingNoisyListener interface to Kotlin (#3996)
* Rename .java to .kt * refactor(android): migrate BecomingNoisyListener interface to Kotlin * remove: java file (AudioBecomingNoisyReceiver.java)
This commit is contained in:
parent
2f70c02cdc
commit
76d5e93c17
@ -1,13 +0,0 @@
|
||||
package com.brentvatne.receiver;
|
||||
|
||||
public interface BecomingNoisyListener {
|
||||
|
||||
BecomingNoisyListener NO_OP = new BecomingNoisyListener() {
|
||||
@Override public void onAudioBecomingNoisy() {
|
||||
// NO_OP
|
||||
}
|
||||
};
|
||||
|
||||
void onAudioBecomingNoisy();
|
||||
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.brentvatne.receiver
|
||||
|
||||
interface BecomingNoisyListener {
|
||||
companion object {
|
||||
val NO_OP = object : BecomingNoisyListener {
|
||||
override fun onAudioBecomingNoisy() {
|
||||
// NO_OP
|
||||
}
|
||||
}
|
||||
}
|
||||
fun onAudioBecomingNoisy()
|
||||
}
|
Loading…
Reference in New Issue
Block a user