I found this bug on with the following code:
(it.context.get() as? Activity)?.runOnUiThread(Runnable {
it.weakRefIOnDataRefreshed.get()?.onDataRefreshed(refreshedItemList)
})
The code above is inside a run method that runs in a non UI Thread. I want to call a method in fragment with the refreshedItemList as argument. I want to debug the onDataRefreshed method (which is inside a Fragment), and I'm putting inside this function a break point but nothing happens. I also put a Log method to make sure that the code is running and the Log method prints indeed. What may be the problem that the debugger doesn't stop on the line which I have marked?