When we do popBackStack and return to the previous fragment in the back stack, the bundle in the method onViewCreated(View view, Bundle bundle) is always null due to the fact that onSaveInstanceState(Bundle outState) wasn't called before. So, when…
I'm facing the famous IllegalStateException problem in my app. The problem stems after a network request (using Retrofit) is done, returning me an Observable.
I'm using the excellent Mosby framework to handle MVP stuff, here is my code:
public…
I'm trying to create a form, send-only view that has a SignaturePad which once the user clicks on the save button, a save intent gets fired and do some background processing.
I have the following:
Presenter:
@Override
protected void…
I have the following code:
public class CheckoutPresenter extends CheckinOutPresenter {
@Inject
public CheckoutPresenter(ThreadExecutor threadExecutor, PostExecutionThread postExecutionThread, OnlineBookingRepository…
I'm trying to combine two forms insertion in one using RxJava, RxAndroid and Mosby3, but I can't find a way to make it work.
My structure:
public final class CheckinIntent {
private final CheckinCommand checkinCommand;
private final Bitmap…
I am looking for a way to add a base class to a mosby MVPActivity. Let me explain what i need.
Usually when using mosby we would declare an activity like this:
public class LoginActivity extends MVPActivity {
//...
}
but…
I would like to access to view widgets such as TextView or EditText from presenter, how can i do that,
in my activity main i want to change scheduleDateTimeNotify text from presenter
public class ActivityChannelContent extends…
Recently I've found out that Mosby3 got released and I'm pretty glad that it has much better control over view states and all that jazz, but it came to my attention that presenter is created before view state is restored. Is this intended or is it a…
I got the following code using Mosby.
Fragment:
@Override
public Observable loadCardIntent() {
return Observable.just(new CardInfo(cardselected, PreferenceManager.getDefaultSharedPreferences(getContext())
…
I'm using Mosby and I would like to test my simple presenter.
public class DetailsPresenter extends MvpBasePresenter {
public void showCountry(Country country) {
getView().setTitle(country.getName());
…
I try to support MvpConstraintLayout myself, just copy code from MvpLinearLayout
public abstract class MvpConstraintLayout>
extends ConstraintLayout implements MvpView,…
I think the "problem" is valid for MVP as well, but in my case I try to sovle it for MVI.
Use case
I have a main view that shows list of data (each data is a list itself) and a detail view that shows a single items data list in a view pager.
I allow…
I'm trying load posts from blog. I use mosby + retrofit + rxjava.
public class PostRepository implements IPostRepository {
private Api api;
private long last_id = 0;
private Single> postList;
public PostRepository(Api…
I get this error on crashlytics panel:
Fatal Exception: java.lang.NoSuchMethodError
android.support.v4.app.FragmentActivity.isChangingConfigurations
com.hannesdorfmann.mosby.mvp.MvpFragment.shouldInstanceBeRetained…
I have fragment with observable injection & two observables (network observable and db observable) with same interface.
How I can create two instances of fragment with different observables?
Update with code:
I have two subcomponents with the same…