ibrahimsn98 / android-particles

A lightweight Particle Animation Library for Android
MIT License
432 stars 71 forks source link

Loading is too slow. Thorws NPE #4

Open adnanharis opened 4 years ago

adnanharis commented 4 years ago

I included your lib in one of my java based app. First time loading is too slow and halts the UI even after loading dynamically using ViewStub. Throws following error: W/System.err: kotlin.KotlinNullPointerException at me.ibrahimsn.particle.ParticleView$SurfaceViewThread.run(ParticleView.kt:134)

AregevDev commented 4 years ago

Having the same issue...

EDIT: When adding particleView.onPause() and particleView.onResume(), it loads way faster

ibrahimsn98 commented 4 years ago

Hi, which device or emulator specifications you are trying on? @adnanharis @AregevDev

AregevDev commented 4 years ago

Pixel 3, API 29

ibrahimsn98 commented 4 years ago

Do you still have the problem on v1.9?

adnanharis commented 4 years ago

Moto G5S, API 27. Will check with v1.9 and update you accordingly.