Browse Source

Merge pull request #86 from gfoldv/master

Filter remains selected in the NavigationSpinner after rotation. Fixes #55
pull/90/head
Eric Kok 11 years ago
parent
commit
90665ea6ff
  1. 4
      core/src/org/transdroid/core/gui/TorrentsActivity.java

4
core/src/org/transdroid/core/gui/TorrentsActivity.java

@ -214,7 +214,9 @@ public class TorrentsActivity extends SherlockFragmentActivity implements OnNavi
navigationSpinnerAdapter.updateLabels(new ArrayList<Label>()); navigationSpinnerAdapter.updateLabels(new ArrayList<Label>());
} }
// Now that all items (or at least their adapters) have been added // Now that all items (or at least their adapters) have been added
currentFilter = StatusType.getShowAllType(this); if (currentFilter == null) {
currentFilter = StatusType.getShowAllType(this);
}
getSupportActionBar().setListNavigationCallbacks(navigationSpinnerAdapter, this); getSupportActionBar().setListNavigationCallbacks(navigationSpinnerAdapter, this);
// Log messages from the server daemons using our singleton logger // Log messages from the server daemons using our singleton logger

Loading…
Cancel
Save