Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void deletePerson(final oPerson person) {
- oPersonList.remove(person);
- personsAdapter.notifyDataSetChanged();
- Toast toast = Toast.makeText(getApplicationContext(), "Press the
- trashcan for confirm.", Toast.LENGTH_LONG);
- toast.show();
- //DELETE A PERSON FOREVER DATABSE
- deletePersonIcon.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- plannerRepository.deletePerson(person);
- Toast toast = Toast.makeText(getApplicationContext(),
- "Deleted.", Toast.LENGTH_LONG);
- toast.show();
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement