Initializing member variable before it is referenced
Bug: 6584882 Change-Id: I1f76388fa8cc16171bc3fc60c935ddcf0a7c4e92
This commit is contained in:
parent
65b7243523
commit
40582ab438
1 changed files with 1 additions and 1 deletions
|
@ -134,13 +134,13 @@ public class UserHistoryDictionary extends ExpandableDictionary {
|
||||||
SharedPreferences sp) {
|
SharedPreferences sp) {
|
||||||
super(context, dicTypeId);
|
super(context, dicTypeId);
|
||||||
mLocale = locale;
|
mLocale = locale;
|
||||||
|
mPrefs = sp;
|
||||||
if (sOpenHelper == null) {
|
if (sOpenHelper == null) {
|
||||||
sOpenHelper = new DatabaseHelper(getContext());
|
sOpenHelper = new DatabaseHelper(getContext());
|
||||||
}
|
}
|
||||||
if (mLocale != null && mLocale.length() > 1) {
|
if (mLocale != null && mLocale.length() > 1) {
|
||||||
loadDictionary();
|
loadDictionary();
|
||||||
}
|
}
|
||||||
mPrefs = sp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue