Skip to content

Commit 5af4c43

Browse files
authored
Small modification
1 parent f68f6be commit 5af4c43

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
152152
.child(givenPiId)
153153
.child("Image");
154154
ref.setValue(imageEncoded);
155+
ref = FirebaseDatabase.getInstance()
156+
.getReference().child("PIs")
157+
.child(givenPiId)
158+
.child("imgUpdate");
159+
ref.setValue("false");
160+
ref = FirebaseDatabase.getInstance()
161+
.getReference().child("PIs")
162+
.child(givenPiId)
163+
.child("type");
164+
ref.setValue("N/A");
155165
Toast.makeText(getActivity(), "Done! Please wait for the response.", Toast.LENGTH_SHORT).show();
156166

157167
try {

0 commit comments

Comments
 (0)