From 40582ab43851857c8bae126a9c593ccb0ced7f98 Mon Sep 17 00:00:00 2001 From: "Tadashi G. Takaoka" Date: Thu, 7 Jun 2012 11:03:55 -0700 Subject: [PATCH] Initializing member variable before it is referenced Bug: 6584882 Change-Id: I1f76388fa8cc16171bc3fc60c935ddcf0a7c4e92 --- .../com/android/inputmethod/latin/UserHistoryDictionary.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java index a73e71bb2..c3a43307f 100644 --- a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java +++ b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java @@ -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