Save last update check time
This commit is contained in:
parent
c8aeb08dfa
commit
8993391b56
@ -34,6 +34,7 @@ import android.app.PendingIntent;
|
|||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
|
import android.content.SharedPreferences.Editor;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.os.ResultReceiver;
|
import android.os.ResultReceiver;
|
||||||
import android.os.SystemClock;
|
import android.os.SystemClock;
|
||||||
@ -243,6 +244,13 @@ public class UpdateService extends IntentService {
|
|||||||
} else {
|
} else {
|
||||||
receiver.send(0, resultData);
|
receiver.send(0, resultData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if(success) {
|
||||||
|
Editor e = prefs.edit();
|
||||||
|
e.putLong("lastUpdateCheck", System.currentTimeMillis());
|
||||||
|
e.commit();
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user