liaohuqiu / android-Ultra-Pull-To-Refresh

Ultra Pull to Refresh for Android. Support all the views.
MIT License
9.58k stars 2.65k forks source link

fix long to int overflow bug. #319

Open wangjing53406 opened 7 years ago

wangjing53406 commented 7 years ago

In some cases, if the mLoadingStartTime has not yet been assigned, the refreshComplete () method is called, causing the long to int overflow, depending on the timestamp at which time enter the error logic.