Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Commit

Permalink
Merge pull request #41 from UrbanCompass/mobile-4335/observable-refle…
Browse files Browse the repository at this point in the history
…ction-crash-bug-fix

Fix for Kotlin Reflection Exception in Observable
  • Loading branch information
TaniaGoswami committed Aug 7, 2019
2 parents 42e1fe1 + de1bf37 commit 3db4ae2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions snail-kotlin/src/main/java/com/compass/snail/Observable.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

package com.compass.snail

import android.util.Log
import com.compass.snail.disposer.Disposable
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.GlobalScope
Expand Down Expand Up @@ -93,7 +92,6 @@ open class Observable<T> : IObservable<T> {
subscriber.eventHandler(event)
} catch (e: Exception) {
e.printStackTrace()
Log.e("Snail Observable", "Removing subscriber $subscriber")
subscribers.remove(subscriber)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.lifecycle.LifecycleRegistry
import com.compass.snail.disposer.disposeBy
import com.compass.snail.disposer.onDestroy
import com.compass.snail.disposer.onPause
import com.compass.snail.disposer.onStart
import com.compass.snail.disposer.onStop
import org.junit.Assert
import org.junit.Before
Expand Down

0 comments on commit 3db4ae2

Please sign in to comment.