Exemple #1
0
 public void addLast(String elem) {
   this.items.add(elem);
   this.notifyDataSetChanged();
   try {
     FocusedSettings.set(getContext(), this.items);
   } catch (IOException e) {
     FLog.d("message", e);
   }
 }
Exemple #2
0
 public void deleteAt(int position) {
   String text = this.items.get(position);
   this.items.remove(position);
   notifyDataSetChanged();
   try {
     FocusedSettings.set(getContext(), this.items);
   } catch (IOException e) {
     FLog.d("message", e);
   }
   Toast.makeText(getContext(), "「" + text + "」をキーワードから削除しました", Toast.LENGTH_LONG).show();
 }