bring back share
This commit is contained in:
parent
f9c83b3353
commit
52de4cdc26
3 changed files with 6 additions and 2 deletions
|
@ -52,6 +52,8 @@ public interface Pass extends Serializable {
|
|||
|
||||
Optional<DateTime> getExpirationDate();
|
||||
|
||||
String getPath();
|
||||
|
||||
String getId();
|
||||
|
||||
Optional<String> getOrganisation();
|
||||
|
|
|
@ -200,6 +200,7 @@ public class PassImpl implements Pass, Serializable {
|
|||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String getPath() {
|
||||
return path;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue