Skip to content

Commit

Permalink
提交错误修正
Browse files Browse the repository at this point in the history
  • Loading branch information
AronLin committed Dec 24, 2017
1 parent 7e90780 commit 60bf470
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ protected void onCreate(Bundle savedInstanceState) {
pos_habit_manager=0;
for (Habit temp : myApplication.get_habit_manager().getObjectList()){// neglect the finished habit
pos_habit_manager++;
if (temp.getState()==2) continue;
if (temp.getState()!=1) continue;
else {
if (count==position){
habit = temp;
break;
}
count++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ protected void onCreate(Bundle savedInstanceState) {
pos_task_manager=0;
for (Task temp : myApplication.get_task_manager().getObjectList()){// neglect the finished task
pos_task_manager++;//find the position in the manager
if (temp.getState()==2) continue;
if (temp.getState()!=1) continue;
else {
if (count==position){
task = temp;
break;
}
count++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ protected void onCreate(Bundle savedInstanceState) {
pos_timeleft_manager=0;
for (TimeLeft temp : myApplication.get_time_left_manager().getObjectList()){// neglect the finished time left item
pos_timeleft_manager++;//find the position in the manager
if (temp.getState()==2) continue;
if (temp.getState()!=1) continue;
else {
if (count==position){
timeLeft = temp;
break;
}
count++;
}
Expand Down

0 comments on commit 60bf470

Please # to comment.