blob: 047147156266bb0f90cfc9f6e050fc7181ce9c30 [file] [log] [blame]
Alexandre Lision52492562013-09-16 16:56:09 -04001package com.savoirfairelinux.sflphone.model;
2
3import java.util.Observable;
4
5import android.util.Log;
6
7public class CallTimer extends Observable implements Runnable {
8
9 boolean stop = false;
10 private static final String TAG = CallTimer.class.getSimpleName();
11
12 @Override
13 public void run() {
14
15 while (!stop) {
16 try {
17 synchronized (this) {
18 this.wait(1000);
19 }
20 } catch (InterruptedException e) {
21 e.printStackTrace();
22 }
23 Log.i(TAG, "update!");
24 notifyObservers();
25 }
26
27 }
28
29 @Override
30 public boolean hasChanged() {
31 return true;
32 }
33
34}