I am trying to set the text when I press the save button. But when I return to the view the text is faint grey.
Initial view on Message Settings
Updated view on Message Settings before I save
Updated view on Message Settings after I save and return to the view.
The source code for my SetupMessageFragment.java is here https://github.com/jackygrahamez/MayDay/blob/gradle2/app/src/main/java/com/mayday/md/fragment/SetupMessageFragment.java
There is a Log for the text retrieved from the sharedPreferences. I can see the new text vs the current textview text:
Fragment fragment2 = getChildFragmentManager().findFragmentById(R.id.sms_message);
((MessageTextFragment) fragment2).setActionButtonStateListener(bAction);
smsEditText = (EditText) fragment2.getView().findViewById(R.id.message_edit_text);
Log.e(">>>>", "onActivityCreated smsEditText "+smsEditText.getText().toString());
String currentMsg = SMSSettings.retrieveMessage(activity);
Log.e(">>>>", "onActivityCreated currentMsg "+currentMsg);
if(currentMsg != null) {
displaySettings(currentMsg);
}
Then the logcat
02-14 16:55:33.366 29043-29043/com.mayday.md E/>>>>﹕ onActivityCreated smsEditText I need IMMEDIATE help!
02-14 16:55:33.366 29043-29043/com.mayday.md E/>>>>﹕ onActivityCreated currentMsg I need IMMEDIATE help! Foo bar