Move the word commit code to UserDictionaryAddWordContent.

...and call it from the fragment too.

Bug: 6026080
Change-Id: Icb83fd60ed33dfa593124ed0af6b9fff4b63f1f5
This commit is contained in:
Jean Chalard
2012-05-08 19:45:24 +09:00
parent be3f0faf52
commit fbffd0c982
3 changed files with 33 additions and 32 deletions

View File

@@ -68,6 +68,7 @@ public class UserDictionaryAddWordFragment extends Fragment {
@Override
public void onPause() {
super.onPause();
mContents.apply(getActivity());
// We are being hidden: commit changes to the user dictionary
}
}