Skip to content

Commit 2ed782d

Browse files
committed
fixed a bug in find next slot
1 parent 6ccf6e6 commit 2ed782d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

app/src/main/java/net/codebuff/intentio/helpers/Utilities.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,12 @@ public static HashMap<String, String> find_next_slot(PrefsManager user,String[]
165165
return next_slot;
166166
}
167167
}
168-
for(int j = 0;j < day_number.length;j++){
168+
for(int j = 1;j < day_number.length;j++){
169169
day = get_day_name(day_number[j]);
170170
for(int i = 0 ;i< slots.length;i++){
171171
next_slot_info = user.get_schedule_slot(day,slots[i].trim());
172172
next_slot_info = next_slot_info.trim();
173+
173174
if(!next_slot_info.equals(Constants.empty_slot)){
174175
next_slot.put("day",get_day_name(day_number[j]));
175176
next_slot.put("next_slot_info",next_slot_info);

app/src/main/java/net/codebuff/intentio/ui/MainActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ protected void onStart() {
9898
.commit();
9999
Constants.schedule_updated = false;
100100
}
101+
101102
summarize();
102103
}
103104

@@ -112,6 +113,7 @@ protected void onResume() {
112113
startActivity(new Intent(this , first_run.class));
113114
finish();
114115
}
116+
115117
summarize();
116118
}
117119

0 commit comments

Comments
 (0)