-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
updated varible in limitactivity #88
Changes from 1 commit
51d9618
86a05a9
09c246b
77bd1b5
11711f5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,14 +148,14 @@ public void onClick(View view) { | |
public void onDataChange(@NonNull DataSnapshot snapshot) { | ||
for (DataSnapshot snapshot3 : snapshot.getChildren()) { | ||
if (Integer.parseInt(snapshot3.child("Day").getValue().toString()) == (thisDay)) { | ||
String amm = (snapshot3.child("Amount").getValue()).toString(); | ||
String amm = (snapshot3.child("Amount").getValue().toString()); | ||
int am1 = Integer.parseInt(amm); | ||
day_tol = am1 + day_tol; | ||
} | ||
} | ||
|
||
System.out.println("Day-total " + day_tol); | ||
if (dt > Integer.parseInt(sharedPreferences.getString(DLIMIT,"0"))){ | ||
if (day_tol > Integer.parseInt(sharedPreferences.getString(DLIMIT,"0"))){ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
System.out.println("Day limit crossed"); | ||
//Toast.makeText(activity, "TODO - SEND EMAIL TO THE USER AS DAILY SET LIMIT IS EXCEEDED ", Toast.LENGTH_SHORT).show(); | ||
new LimitEmailSender("You have exceeded the limit set for the day.Happy spending!", FirebaseAuth.getInstance().getCurrentUser().getEmail()).execute(); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'if' child has incorrect indentation level 24, expected level should be one of the following: 16, 18, 20.