[Android] Fix typo
Nicolas Pomepuy
git at videolan.org
Thu Sep 7 08:21:03 UTC 2023
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jul 27 07:38:23 2023 +0200| [0b941698a49de6baefe7b292658118b7433b28c8] | committer: Nicolas Pomepuy
Fix typo
> https://code.videolan.org/videolan/vlc-android/commit/0b941698a49de6baefe7b292658118b7433b28c8
---
.../src/org/videolan/vlc/util/LifecycleAwareScheduler.kt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/application/vlc-android/src/org/videolan/vlc/util/LifecycleAwareScheduler.kt b/application/vlc-android/src/org/videolan/vlc/util/LifecycleAwareScheduler.kt
index 4979f440c4..f457268891 100644
--- a/application/vlc-android/src/org/videolan/vlc/util/LifecycleAwareScheduler.kt
+++ b/application/vlc-android/src/org/videolan/vlc/util/LifecycleAwareScheduler.kt
@@ -55,7 +55,7 @@ interface SchedulerCallback : LifecycleOwner {
*
* @param id the action id
*/
- fun onTaskCanceled(id: String) {}
+ fun onTaskCancelled(id: String) {}
}
/**
@@ -135,7 +135,7 @@ class LifecycleAwareScheduler(private val callback: SchedulerCallback) : Default
if (BuildConfig.DEBUG) Log.d("LifecycleAwareScheduler", "Canceling action for $callback on thread ${Thread.currentThread()} with id $id")
if (timeTasks.keys.contains(id)) {
timeTasks[id]?.cancel()
- callback.onTaskCanceled(id)
+ callback.onTaskCancelled(id)
timeTasks.remove(id)
return true
}
@@ -146,7 +146,7 @@ class LifecycleAwareScheduler(private val callback: SchedulerCallback) : Default
* Cancel the timer and off-hook from lifecycle callbacks
*/
private fun discardTimer() {
- timeTasks.forEach { callback.onTaskCanceled(it.key) }
+ timeTasks.forEach { callback.onTaskCancelled(it.key) }
canceled = true
timer.cancel()
callback.lifecycle.removeObserver(this)
@@ -156,7 +156,7 @@ class LifecycleAwareScheduler(private val callback: SchedulerCallback) : Default
super.onPause(owner)
timeTasks.forEach {
it.value.cancel()
- callback.onTaskCanceled(it.key)
+ callback.onTaskCancelled(it.key)
}
}
More information about the Android
mailing list