Fix some bug and error

Fixes #4
master
Schoumi 6 years ago
parent 011b586c6b
commit 45468f6469
  1. 9
      app/src/main/java/fr/mobdev/lpcprog/fragment/FlashFragment.java

@ -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;
}
});
}

Loading…
Cancel
Save