Пример #1
0
 public synchronized void addDbAccessListener(DbAccessListener l) {
   if (l == null) return;
   if (dbAccessListeners == null) dbAccessListeners = new ArrayList<DbAccessListener>();
   if (!dbAccessListeners.contains(l)) dbAccessListeners.add(l);
 }
Пример #2
0
 public synchronized void removeDbAccessListener(DbAccessListener l) {
   if (dbAccessListeners != null && dbAccessListeners.contains(l)) dbAccessListeners.remove(l);
 }