Skip to content

Commit c194e9d

Browse files
committed
Cleaned Reminder
1 parent a1efeb5 commit c194e9d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

app/src/main/java/com/github/meafs/recover/activites/ReminderActivity.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,10 @@ private void setAlarm(String text, String date, String time) {
166166
} catch (ParseException e) {
167167
e.printStackTrace();
168168
}
169-
Intent intentBack = new Intent(getApplicationContext(), MainActivity.class); //this intent will be called once the setting alarm is complete
170-
intentBack.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
171-
startActivity(intentBack); //navigates from adding reminder activity to mainactivity
169+
170+
onBackPressed();
171+
// Intent intentBack = new Intent(getApplicationContext(), MainActivity.class); //this intent will be called once the setting alarm is complete
172+
// intentBack.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);
173+
// startActivity(intentBack); //navigates from adding reminder activity to mainactivity
172174
}
173175
}

app/src/main/java/com/github/meafs/recover/fragments/PatientFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container,
107107
for (int i = 0; i < documents.size(); i++) {
108108
patientNames.add(documents.get(i).getName());
109109
}
110-
110+
reminder_button.setVisibility(View.VISIBLE);
111111
progressBar.setVisibility(View.GONE);
112112
} else {
113113
tvPatientAmount.setText(String.valueOf(0));

app/src/main/res/layout/fragment_patient.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
android:textFontWeight="700"
231231
android:text="Reminder"
232232
android:textColor="@color/white"
233+
android:visibility="gone"
233234
app:icon="@drawable/ic_add"/>
234235
<com.google.android.material.floatingactionbutton.ExtendedFloatingActionButton
235236
android:id="@+id/add_card1"

0 commit comments

Comments
 (0)