mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-18 02:51:38 +01:00
fix double record;
add/change comments.
This commit is contained in:
parent
3a62ead474
commit
3f4c867421
1 changed files with 7 additions and 4 deletions
|
@ -369,7 +369,6 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
{
|
||||
med.setDateEndOfStock();
|
||||
mAdapter.addItem(med);
|
||||
dbHelper.addDrug(med);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -409,6 +408,10 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* cancelJob in PillDroidJobService
|
||||
* @param v Riew
|
||||
*/
|
||||
public void cancelJob(View v) {
|
||||
JobScheduler scheduler = (JobScheduler) getSystemService(JOB_SCHEDULER_SERVICE);
|
||||
scheduler.cancel(24560);
|
||||
|
@ -416,8 +419,8 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param recyclerView
|
||||
* setupRecyclerView (list of medicaments
|
||||
* @param recyclerView RecyclerView
|
||||
*/
|
||||
private void setupRecyclerView(@NonNull RecyclerView recyclerView) {
|
||||
recyclerView.addItemDecoration(new SimpleDividerItemDecoration(getApplicationContext()));
|
||||
|
@ -425,7 +428,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
|||
recyclerView.setAdapter(mAdapter);
|
||||
}
|
||||
|
||||
// TDOO: remove in release
|
||||
// TODO: remove in release
|
||||
private String getAppName() {
|
||||
PackageManager packageManager = getApplicationContext().getPackageManager();
|
||||
ApplicationInfo applicationInfo = null;
|
||||
|
|
Loading…
Reference in a new issue