mosby

MvpViewStateFragment not restoring ViewState on screen orientation

喜欢而已 提交于 2019-12-24 08:21:03
问题 I'm working on an Android app using Mosby MVP library. In one specific Fragment, the ViewState was implemented but not used (the state wasn't changed or anything). Some of the view logic is implemented by widgetManager. I made the state change correctly but the behavior is weird : on screen orientation, createViewState() and onNewViewStateInstance() are called after the viewState apply() : which cancels restoring the viewstate and related behaviors. Do you have any idea why this is happening

Android Mosby MVI bind to service in presenter

半腔热情 提交于 2019-12-22 17:22:13
问题 I am creating a small app using Mosby. The app has a service which I want to bind to. I guess the correct place to do this is in the presenter. But I can't really figure out how to do it. What I want to archive is when the service is bound I want to call a method on it and push that value to the view, so that the state right now is correct. When the service sends updates on the event bus I want to push that to the view as well. I have found some example on the later part, but nothing about

Android Mosby MVI bind to service in presenter

徘徊边缘 提交于 2019-12-22 17:22:11
问题 I am creating a small app using Mosby. The app has a service which I want to bind to. I guess the correct place to do this is in the presenter. But I can't really figure out how to do it. What I want to archive is when the service is bound I want to call a method on it and push that value to the view, so that the state right now is correct. When the service sends updates on the event bus I want to push that to the view as well. I have found some example on the later part, but nothing about

Android Mosby MVI bind to service in presenter

这一生的挚爱 提交于 2019-12-22 17:22:04
问题 I am creating a small app using Mosby. The app has a service which I want to bind to. I guess the correct place to do this is in the presenter. But I can't really figure out how to do it. What I want to archive is when the service is bound I want to call a method on it and push that value to the view, so that the state right now is correct. When the service sends updates on the event bus I want to push that to the view as well. I have found some example on the later part, but nothing about