Browse Source

Filter remains selected in the NavigationSpinner after rotation. Fixes #55

pull/86/head
gfoldv 11 years ago
parent
commit
9d93179655
  1. 2
      core/src/org/transdroid/core/gui/TorrentsActivity.java

2
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
if (currentFilter == null) {
currentFilter = StatusType.getShowAllType(this); 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