readrops / Readrops

Android multi-services RSS client
GNU General Public License v3.0
272 stars 20 forks source link

fix "You can't request ViewModel before onCreate call error" in NotificationPermissionActivity #82

Closed shunf4 closed 3 years ago

shunf4 commented 3 years ago

Current version in develop branch crashes when you go to "Account settings" - "Notifications", error message saying "You can't request ViewModel before onCreate call".

Let's fix this by delaying initialization of viewModel to onCreate() method.

Shinokuni commented 3 years ago

Weird, I never got this kind of error. But anyway, thanks for the fix!