Commit 45468f64 authored by Schoumi's avatar Schoumi

Fix some bug and error

Fixes #4
parent 011b586c
......@@ -123,10 +123,13 @@ public class FlashFragment extends Fragment{
progressBar.setVisibility(View.GONE);
updateProgress(0);
flash_infoStr += getString(R.string.ok)+"\n";
flash_infoStr += getString(R.string.flash_succeed);
flash_info.setText(flash_infoStr);
TextView step = v.findViewById(R.id.flash_steps);
step.setVisibility(View.GONE);
previousStep = 0;
previousId = 0;
}
});
}
......@@ -147,10 +150,6 @@ public class FlashFragment extends Fragment{
TextView stepV = v.findViewById(R.id.flash_steps);
stepV.setVisibility(View.VISIBLE);
stepV.setText(getString(R.string.step)+" "+step+"/"+endStep+" "+getString(step_res_id));
if(step == previousStep) {
previousStep = 0;
previousId = 0;
}
}
updateProgress(progress);
}
......@@ -170,6 +169,8 @@ public class FlashFragment extends Fragment{
progressBar.setVisibility(View.GONE);
TextView step = v.findViewById(R.id.flash_steps);
step.setVisibility(View.GONE);
previousId = 0;
previousStep = 0;
}
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment