Skip to content
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

Merged
merged 5 commits into from
Dec 4, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/src/main/java/com/xa/xpensauditor/SetLimitActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.indentation.IndentationCheck> reported by reviewdog 🐶
'if' child has incorrect indentation level 24, expected level should be one of the following: 16, 18, 20.

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"))){
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAfterCheck> reported by reviewdog 🐶
',' is not followed by whitespace.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ [checkstyle] <com.puppycrawl.tools.checkstyle.checks.whitespace.WhitespaceAroundCheck> reported by reviewdog 🐶
WhitespaceAround: '{' is not preceded with whitespace.

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();
Expand Down