|
|
@ -96,9 +96,6 @@ public class NavigationDrawerFragment extends InjectingFragment {
|
|
|
|
if (savedInstanceState != null) {
|
|
|
|
if (savedInstanceState != null) {
|
|
|
|
mCurrentSelectedPosition = savedInstanceState.getInt(TOKEN_LAST_SELECTED);
|
|
|
|
mCurrentSelectedPosition = savedInstanceState.getInt(TOKEN_LAST_SELECTED);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Select either the default item (0) or the last selected item.
|
|
|
|
|
|
|
|
// selectItem(mCurrentSelectedPosition);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
@ -440,6 +437,10 @@ public class NavigationDrawerFragment extends InjectingFragment {
|
|
|
|
new IntentFilter(AstridApiConstants.BROADCAST_EVENT_REFRESH));
|
|
|
|
new IntentFilter(AstridApiConstants.BROADCAST_EVENT_REFRESH));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void restoreLastSelected() {
|
|
|
|
|
|
|
|
selectItem(mCurrentSelectedPosition);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Receiver which receives refresh intents
|
|
|
|
* Receiver which receives refresh intents
|
|
|
|
*
|
|
|
|
*
|
|
|
|