Skip to content
This repository was archived by the owner on Jan 3, 2019. It is now read-only.
This repository was archived by the owner on Jan 3, 2019. It is now read-only.

Fields annotated with @ContextVariable in parent class are ignored #67

@hsz

Description

@hsz

It would be nice if we could describe some fields with @ContextVariable in the parent class. For example:

class FooStep extends HszWizardStep {

    @ContextVariable
    protected String foo;

}

class BarStep extends HszWizardStep {

    @ContextVariable
    protected String bar;

}

abstract class HszWizardStep extends WizardStep {

    @ContextVariable
    protected String common;

}

And in this case, there are two registered steps - FooStep and BarStep.

For both of them WizardStep#bindFields(Bundle args) should process in line 84 two fields:

FooStep -> foo and common
BarStep -> bar and common

It is easy to achieve - it should check all class parents (until it hits WizardStep class) and push them to the fields list.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions