MarcinMoskala/ActivityStarter

Can't fetch data at

Kolyall opened this issue · 2 comments

I want to re-fetch all args on new intent method, but ActivityStarter doesn't have method ActivityStarter.fill(Activity activity, Intent intent); , please add the method ASAP. Thanks for your lib.

  @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        ActivityStarter.fill(this,intent);

Oh ... it has... I need to call MyOwnActivityStarter.fill(MyOwnActivity activity, Bundle savedInstanceState); right?

 @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        MyOwnActivityStarter.fill(this,null);
//OR 
MyOwnActivityStarter.fill(this,intent.getExtras());

You can call

ActivityStarter.fill(this,null);

This will do what is done during Activity creation: Data should be fetched from Intent.