Merge "Initializing member variable before it is referenced" into jb-dev

This commit is contained in:
Tadashi G. Takaoka 2012-06-07 11:27:32 -07:00 committed by Android (Google) Code Review
commit 6348c54ffd

View file

@ -134,13 +134,13 @@ public class UserHistoryDictionary extends ExpandableDictionary {
SharedPreferences sp) {
super(context, dicTypeId);
mLocale = locale;
mPrefs = sp;
if (sOpenHelper == null) {
sOpenHelper = new DatabaseHelper(getContext());
}
if (mLocale != null && mLocale.length() > 1) {
loadDictionary();
}
mPrefs = sp;
}
@Override