Skip to content

Commit a7d231f

Browse files
authored
Forgot to remove the 'Toasts' used for testing.
1 parent 3a2ccf3 commit a7d231f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

390application/app/src/main/java/com/example/a390application/LinkPiDialogFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ public void onClick(View v) {
8080
public void onDataChange(DataSnapshot dataSnapshot) {
8181
try {
8282
checkPiPassword(PiId, dataSnapshot.child("PIs").child(PiId).child("password").getValue().toString(), PiPassword);
83-
Toast.makeText(getContext(), dataSnapshot.child("PIs").child(PiId).child("password").getValue().toString(), Toast.LENGTH_SHORT).show();
83+
//Toast.makeText(getContext(), dataSnapshot.child("PIs").child(PiId).child("password").getValue().toString(), Toast.LENGTH_SHORT).show();
8484
} catch (Exception e) {
85-
Toast.makeText(getContext(), e.getMessage().toString(), Toast.LENGTH_LONG).show();
85+
//Toast.makeText(getContext(), e.getMessage().toString(), Toast.LENGTH_LONG).show();
8686
Toast.makeText(getContext(), "There is no PI with that Id!", Toast.LENGTH_SHORT).show();
8787
}
8888
}

0 commit comments

Comments
 (0)