]> hydra-www.ietfng.org Git - android-vcpass-oisafe/commitdiff
lock timeout preference now takes affect.
authorrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 16 Jan 2009 07:07:41 +0000 (07:07 +0000)
committerrmceoin <rmceoin@72b678ce-9140-0410-bee8-679b907dd61a>
Fri, 16 Jan 2009 07:07:41 +0000 (07:07 +0000)
git-svn-id: http://openintents.googlecode.com/svn/trunk/Safe@1740 72b678ce-9140-0410-bee8-679b907dd61a

src/org/openintents/safe/service/ServiceDispatchImpl.java

index 6a0a96818a866185ffa948fc90f5a77bea5a08cd..39c5835ed49561530450361a0246f66ec10d0a46 100644 (file)
@@ -68,6 +68,7 @@ public class ServiceDispatchImpl extends Service {
     }
     
     private void startTimer () {
+               Log.d(TAG,"startTimer with timeoutUntilStop="+timeoutUntilStop);
        t = new CountDownTimer(timeoutUntilStop, timeoutUntilStop) {
                public void onTick(long millisUntilFinished) {
                        //doing nothing.
@@ -75,7 +76,7 @@ public class ServiceDispatchImpl extends Service {
                }
 
                public void onFinish() {
-                       Log.d( "ServieDispatchImpl","timer onFinish" );
+                       Log.d(TAG,"onFinish()");
                        stopSelf(); // countdown is over, stop the service.
                }
        };
@@ -135,6 +136,7 @@ public class ServiceDispatchImpl extends Service {
                
                public void setTimeoutMinutes (int timeoutMinutesIn){
                        timeoutMinutes = timeoutMinutesIn;
+                       timeoutUntilStop = timeoutMinutes * 60000;
                        Log.d(TAG,"set timeout to "+timeoutMinutes);
                }
     };