Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save timeago when close the app #58

Open
jamescarl15 opened this issue Jun 5, 2018 · 1 comment
Open

Save timeago when close the app #58

jamescarl15 opened this issue Jun 5, 2018 · 1 comment
Labels

Comments

@jamescarl15
Copy link

Can I save the "setReferenceTime" even if the app destroys?

@curioustechizen
Copy link
Owner

This library implements onSaveInstanceState() and onRestoreInstanceState() so that the reference time is retained for example across configuration changes.

However, it does not do anything to persist the reference time when the activity is finished or if your app process is killed when it is in the background. You will need to do that on your own.

I see that RelativeTimeTextView does not have a getReferenceTime() method. I've created #59 to track this. Once that is in implemented you can use getReferenceTime() and save it to persistent storage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants