When the menu item in my app opens the datePicker and i select a date, the textview 'selectedDateView' in my UI will update only if i open the options menu again ().
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
DialogFragment newFragment = new SettingsDatePicker();
newFragment.show(getFragmentManager(), "Select the date");
// i think this is called only the second time
selectedDateView.setText(String.format("Selected Date: %s", settings.getConfiguredDateTime().toString(fmt)));
return true;
}
return super.onOptionsItemSelected(item);
}
Is there a way to override a OnSettingMenuItemFinished or something similar?
Thanks for the help.