blob: 047147156266bb0f90cfc9f6e050fc7181ce9c30 [file] [log] [blame]
package com.savoirfairelinux.sflphone.model;
import java.util.Observable;
import android.util.Log;
public class CallTimer extends Observable implements Runnable {
boolean stop = false;
private static final String TAG = CallTimer.class.getSimpleName();
@Override
public void run() {
while (!stop) {
try {
synchronized (this) {
this.wait(1000);
}
} catch (InterruptedException e) {
e.printStackTrace();
}
Log.i(TAG, "update!");
notifyObservers();
}
}
@Override
public boolean hasChanged() {
return true;
}
}