diff --git a/src/main/java/org/ligi/passandroid/model/Pass.java b/src/main/java/org/ligi/passandroid/model/Pass.java index 55bee807..763cb838 100644 --- a/src/main/java/org/ligi/passandroid/model/Pass.java +++ b/src/main/java/org/ligi/passandroid/model/Pass.java @@ -52,6 +52,8 @@ public interface Pass extends Serializable { Optional getExpirationDate(); + String getPath(); + String getId(); Optional getOrganisation(); diff --git a/src/main/java/org/ligi/passandroid/model/PassImpl.java b/src/main/java/org/ligi/passandroid/model/PassImpl.java index 9ffcff95..8f1260cf 100644 --- a/src/main/java/org/ligi/passandroid/model/PassImpl.java +++ b/src/main/java/org/ligi/passandroid/model/PassImpl.java @@ -200,6 +200,7 @@ public class PassImpl implements Pass, Serializable { } + @Override public String getPath() { return path; } diff --git a/src/main/java/org/ligi/passandroid/ui/PassMenuOptions.java b/src/main/java/org/ligi/passandroid/ui/PassMenuOptions.java index f0a3fe39..12642cf9 100644 --- a/src/main/java/org/ligi/passandroid/ui/PassMenuOptions.java +++ b/src/main/java/org/ligi/passandroid/ui/PassMenuOptions.java @@ -10,6 +10,7 @@ import android.widget.CheckBox; import org.ligi.passandroid.App; import org.ligi.passandroid.R; +import org.ligi.passandroid.TicketDefinitions; import org.ligi.passandroid.Tracker; import org.ligi.passandroid.maps.PassbookMapsFacade; import org.ligi.passandroid.model.Pass; @@ -20,7 +21,7 @@ public class PassMenuOptions { public final Activity activity; public final Pass pass; - public PassMenuOptions(Activity activity, Pass pass) { + public PassMenuOptions(final Activity activity, final Pass pass) { this.activity = activity; this.pass = pass; } @@ -69,7 +70,7 @@ public class PassMenuOptions { case R.id.menu_share: Tracker.get().trackEvent("ui_action", "share", "shared", null); - //new PassExportTask(activity, passbook.getPath(), TicketDefinitions.getShareDir(), "share.pkpass", true).execute(); + new PassExportTask(activity, pass.getPath(), TicketDefinitions.getShareDir(), "share.pkpass", true).execute(); return true; } return false;