intent customizations for derek

good call

On Thu, Oct 9, 2014 at 5:36 PM, Jenny Schweers <notifications@github.com>
wrote:

> In src/org/odk/collect/android/jr/extensions/IntentCallout.java:
>
> > @@ -64,7 +76,16 @@ protected void attachToForm(FormDef form) {
> >      }
> >
> >      public Intent generate(EvaluationContext ec) {
> > -        Intent i = new Intent(className);
> > +        Intent i = new Intent();
> > +        if(className != null){
> > +            i.setAction(className);
> > +        } if(type != null){
> > +            i.setType(type);
> > +        } if(data != null){
> > +            i.setData(Uri.parse(data));
> > +        } if(component != null){
> > +            i.setComponent(new ComponentName(component, className));
>
> Might want to verify that className isn't null.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dimagi/opendatakit.collect/pull/40/files#r18676026>.
>