bring back share

This commit is contained in:
ligi 2014-07-13 15:59:33 +02:00
parent f9c83b3353
commit 52de4cdc26
3 changed files with 6 additions and 2 deletions

View file

@ -52,6 +52,8 @@ public interface Pass extends Serializable {
Optional<DateTime> getExpirationDate(); Optional<DateTime> getExpirationDate();
String getPath();
String getId(); String getId();
Optional<String> getOrganisation(); Optional<String> getOrganisation();

View file

@ -200,6 +200,7 @@ public class PassImpl implements Pass, Serializable {
} }
@Override
public String getPath() { public String getPath() {
return path; return path;
} }

View file

@ -10,6 +10,7 @@ import android.widget.CheckBox;
import org.ligi.passandroid.App; import org.ligi.passandroid.App;
import org.ligi.passandroid.R; import org.ligi.passandroid.R;
import org.ligi.passandroid.TicketDefinitions;
import org.ligi.passandroid.Tracker; import org.ligi.passandroid.Tracker;
import org.ligi.passandroid.maps.PassbookMapsFacade; import org.ligi.passandroid.maps.PassbookMapsFacade;
import org.ligi.passandroid.model.Pass; import org.ligi.passandroid.model.Pass;
@ -20,7 +21,7 @@ public class PassMenuOptions {
public final Activity activity; public final Activity activity;
public final Pass pass; public final Pass pass;
public PassMenuOptions(Activity activity, Pass pass) { public PassMenuOptions(final Activity activity, final Pass pass) {
this.activity = activity; this.activity = activity;
this.pass = pass; this.pass = pass;
} }
@ -69,7 +70,7 @@ public class PassMenuOptions {
case R.id.menu_share: case R.id.menu_share:
Tracker.get().trackEvent("ui_action", "share", "shared", null); 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 true;
} }
return false; return false;