danylovolokh / VideoPlayerManager

This is a project designed to help controlling Android MediaPlayer class. It makes it easier to use MediaPlayer ListView and RecyclerView. Also it tracks the most visible item in scrolling list. When new item in the list become the most visible, this library gives an API to track it.
3.15k stars 746 forks source link

method inUiThread was not working as expected #110

Open upender-reddy opened 4 years ago

upender-reddy commented 4 years ago

App was crashing with RuntimeException("this should be called in Main Thread") due to method "inUiThread" returning false even though it is running in main thread . After changing logic to check the main thread app is working fine.