Move the word commit code to UserDictionaryAddWordContent.
...and call it from the fragment too. Bug: 6026080 Change-Id: Icb83fd60ed33dfa593124ed0af6b9fff4b63f1f5
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user