Home | History | Annotate | Download | only in settings

Lines Matching refs:Item

143          * SMS app item in the list
145 private class Item {
150 public Item(String label, Drawable icon, String packageName) {
158 private final List<Item> mItems;
167 Item item = mItems.remove(selected);
168 mItems.add(0, item);
191 Item item = ((Item) getItem(position));
195 textView.setText(item.label);
202 imageView.setImageDrawable(item.icon);
209 * @param position the index of the item in the list
210 * @return the package name of selected item
213 Item item = (Item) getItem(position);
214 if (item != null) {
215 return item.packgeName;
221 * Check if an item at a position is already selected
223 * @param position the index of the item in the list
224 * @return true if the item at the position is already selected, false otherwise
231 private List<Item> getItems() {
233 List<Item> items = new ArrayList<>();
240 items.add(new Item(
252 // Get the selected item index by looking for the current default SMS app