Fixed compilation errors

This commit is contained in:
Aaron Sun 2020-11-24 10:57:57 -08:00
parent 392a67eb45
commit 5770ccf299
4 changed files with 5 additions and 4 deletions

View File

@ -122,7 +122,7 @@ public class ListPage extends AppCompatActivity implements Requestor.Receiver {
EditText sharedEmailText = (EditText) codeView.findViewById(R.id.editTextTextSharedEmail);
String sharedEmail = sharedEmailText.getText().toString();
ListShare listShare = new ListShare(LIST_ID, sharedEmail, "Read, Write, Delete, Share");
ListShare listShare = new ListShare(LIST_ID, sharedEmail, "Read, Write, Delete, Share", null);
try {
requestor.putObject(listShare);
}

View File

@ -105,7 +105,7 @@ public class MainActivity extends AppCompatActivity implements CreateListDialogF
e.printStackTrace();
}
Requestor requestor = new Requestor(authManager, configs.getProperty("apiKey"));
/*Requestor requestor = new Requestor(authManager, configs.getProperty("apiKey"));
SynchronousReceiver<SearchHistory> historyReceiver = new SynchronousReceiver<>();
requestor.getObject("N/A", SearchHistory.class, historyReceiver, historyReceiver);
try {
@ -116,7 +116,7 @@ public class MainActivity extends AppCompatActivity implements CreateListDialogF
} catch (Exception e) {
e.printStackTrace();
}
/*
List testList = new List(-1, "New List", "user filled by lambda", Instant.now().toEpochMilli());
ListEntry entry = new ListEntry(1, 4, Math.abs(new Random().nextInt()), Instant.now().toEpochMilli(),false);

View File

@ -133,7 +133,7 @@ public class ShoppingListsSwipeableAdapter extends BaseAdapter {
public void onClick(DialogInterface dialog, int which) {
EditText sharedEmailText = (EditText) codeView.findViewById(R.id.editTextTextSharedEmail);
String sharedEmail = sharedEmailText.getText().toString();
ListShare listShare = new ListShare(curList.getListID(), sharedEmail, "Read, Write, Delete, Share");
ListShare listShare = new ListShare(curList.getListID(), sharedEmail, "Read, Write, Delete, Share", null);
try {
requestor.putObject(listShare);
}

View File

@ -84,6 +84,7 @@ public class List {
public void setUiPosition(Integer uiPosition) {
this.uiPosition = uiPosition;
}
public ListEntry[] getEntries() {
return entries;