Added copy answer

This commit is contained in:
M66B
2019-08-20 22:18:42 +02:00
parent 4f68d86316
commit d149a1f790
2 changed files with 21 additions and 2 deletions

View File

@@ -53,6 +53,7 @@ public class FragmentAnswer extends FragmentBase {
private Group grpReady;
private long id = -1;
private long copy = -1;
private final static int REQUEST_DELETE = 1;
@@ -62,7 +63,10 @@ public class FragmentAnswer extends FragmentBase {
// Get arguments
Bundle args = getArguments();
id = (args == null ? -1 : args.getLong("id", -1));
if (args.getBoolean("copy"))
copy = args.getLong("id", -1);
else
id = args.getLong("id", -1);
}
@Override
@@ -118,7 +122,7 @@ public class FragmentAnswer extends FragmentBase {
super.onActivityCreated(savedInstanceState);
Bundle args = new Bundle();
args.putLong("id", id);
args.putLong("id", copy < 0 ? id : copy);
new SimpleTask<EntityAnswer>() {
@Override