@Override public void onActionClicked(int commandID) { switch (commandID) { case ACTION_REFRESH_CAMPAIGNS: mCampaignReadLoader.forceLoad(); break; } }
@Override public void onContentChanged() { super.onContentChanged(); mCampaignReadLoader.onCreate(); // throw some actions on it getActionBarControl() .addActionBarCommand( ACTION_REFRESH_CAMPAIGNS, getString(R.string.campaign_list_refresh_action_button_description), R.drawable.btn_title_refresh); // and attach handlers for said actions getActionBarControl().setOnActionListener(this); }
@Override public void onRestoreInstanceState(Bundle savedInstanceState) { super.onRestoreInstanceState(savedInstanceState); mCampaignReadLoader.onRestoreInstanceState(savedInstanceState); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); mCampaignReadLoader.onSaveInstanceState(outState); }
@Override protected void onResume() { super.onResume(); mCampaignReadLoader.onResume(); }