Browse Source

Fix some bug and error

Fixes #4
tags/release-v1.2
Schoumi 2 years ago
parent
commit
45468f6469
1 changed files with 5 additions and 4 deletions
  1. 5
    4
      app/src/main/java/fr/mobdev/lpcprog/fragment/FlashFragment.java

+ 5
- 4
app/src/main/java/fr/mobdev/lpcprog/fragment/FlashFragment.java View File

@@ -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