Bug-98 Use preference to store the last visit card position.

@john-hu please help me review this patch.Thank you.
Without commit(), the preferences only saved in memory instead of storage. So, this patch may not work correctly. BTW, I think this issue's priority is not high. You may take your time to fix it.