From 92670ecdb94368708a9af6df71f7e5a089e3c824 Mon Sep 17 00:00:00 2001 From: Zac Sweers Date: Fri, 29 Sep 2017 20:17:37 -0700 Subject: [PATCH] Fix capitalization --- .../com/uber/autodispose/recipes/AutoDisposeViewHolder.java | 4 ++-- .../uber/autodispose/recipes/AutoDisposeViewHolderKotlin.kt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sample/src/main/java/com/uber/autodispose/recipes/AutoDisposeViewHolder.java b/sample/src/main/java/com/uber/autodispose/recipes/AutoDisposeViewHolder.java index 3fe6e4ae6..23eaaa648 100644 --- a/sample/src/main/java/com/uber/autodispose/recipes/AutoDisposeViewHolder.java +++ b/sample/src/main/java/com/uber/autodispose/recipes/AutoDisposeViewHolder.java @@ -49,11 +49,11 @@ private synchronized MaybeSubject notifier() { } @Override protected void onUnbind() { - emitUnBindIfPresent(); + emitUnbindIfPresent(); unbindNotifier = null; } - private void emitUnBindIfPresent() { + private void emitUnbindIfPresent() { MaybeSubject notifier = unbindNotifier; if (notifier != null && !notifier.hasComplete()) { notifier.onSuccess(NOTIFICATION); diff --git a/sample/src/main/kotlin/com/uber/autodispose/recipes/AutoDisposeViewHolderKotlin.kt b/sample/src/main/kotlin/com/uber/autodispose/recipes/AutoDisposeViewHolderKotlin.kt index 719a36ae6..1627636d2 100644 --- a/sample/src/main/kotlin/com/uber/autodispose/recipes/AutoDisposeViewHolderKotlin.kt +++ b/sample/src/main/kotlin/com/uber/autodispose/recipes/AutoDisposeViewHolderKotlin.kt @@ -50,11 +50,11 @@ abstract class AutoDisposeViewHolderKotlin(itemView: View) } override fun onUnbind() { - emitUnBindIfPresent() + emitUnbindIfPresent() unbindNotifier = null } - private fun emitUnBindIfPresent() { + private fun emitUnbindIfPresent() { unbindNotifier?.let { if (!it.hasComplete()) { it.onSuccess(NOTIFICATION)