Back to project page android-pkpass-viewer.
The source code is released under:
MIT License
If you think the Android project android-pkpass-viewer listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.manso.mytickets.services; // w w w .j a va2 s . com import java.io.File; import com.manso.mytickets.TicketBackFragment; import com.manso.mytickets.TicketFrontFragment; import android.support.v4.app.Fragment; public class EventTicketPassStrategy implements IPassStrategy { private File dir; public EventTicketPassStrategy(File dir) { this.dir = dir; } @Override public Fragment getFrontFragment() { return TicketFrontFragment.newInstance(this.dir.getPath()); } @Override public Fragment getBackFragment() { return TicketBackFragment.newInstance(this.dir.getPath()); } }