Fix default folder expansion state after rotation.

This commit is contained in:
dosiecki 2015-09-09 15:29:14 -07:00
parent fa94d9dc1f
commit 05d8b4c9b6
2 changed files with 2 additions and 1 deletions

View file

@ -107,6 +107,7 @@ public class Main extends NbActivity implements StateChangedListener, SwipeRefre
updateStatusIndicators();
folderFeedList.pushUnreadCounts();
folderFeedList.checkOpenFolderPreferences();
triggerSync();
if (PrefsUtils.isLightThemeSelected(this) != isLightTheme) {

View file

@ -181,7 +181,7 @@ public class FolderListFragment extends NbFragment implements OnCreateContextMen
* database. The list widget likes to default all folders to closed, so open them up
* unless expressly collapsed at some point.
*/
private void checkOpenFolderPreferences() {
public void checkOpenFolderPreferences() {
// make sure we didn't beat construction
if ((this.list == null) || (this.sharedPreferences == null)) return;