commit | b1c34dc418e31ae0bfe1b73b6642ed42f5dad67b | [log] [tgz] |
---|---|---|
author | Andy Huang <ath@google.com> | Tue Apr 17 16:36:19 2012 -0700 |
committer | Andy Huang <ath@google.com> | Tue Apr 17 18:25:00 2012 -0700 |
tree | 5c7c5a4e1e9015736173d946fde8faffe8662404 | |
parent | a6ed662f4bc6fe3cc53627405d70ff1e43d944d9 [diff] |
avoid restartLoader in configuration change sitations The ConversationCursor and its loader were being unnecessarily re-initialized on rotation. Only use restartLoader when the folder changes from an existing previous folder, like when you switch folders. Also begin to add an onRestoreInstanceState step, which is very handy for last-second initialization, after initLoader results are re-delivered in the rotation case. Change-Id: Idb39f24cb31f0ccc41379947b047e0af0e615551