Method onDestroy() doesn't work
问题 When I run my app, all the checkboxes are checked in my ListView but I don't want them checked at the start. I think I didn't write onDestroy() correctly. Please help me! Here is my code: Adapter: public abstract class PlanetAdapter extends ArrayAdapter<Planet> implements CompoundButton.OnCheckedChangeListener { private List<Planet> planetList = null; private Context context = null; ArrayList<Birra> objects; private HashMap<Integer, Planet> pizzaSelected = new HashMap<>(); public boolean