am e4da18e2: am 6348c54f: Merge "Initializing member variable before it is referenced" into jb-dev

* commit 'e4da18e27916f770fcd704032d30534d287d67c6':
  Initializing member variable before it is referenced
diff --git a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
index 61b012f..9c54e0b 100644
--- a/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserHistoryDictionary.java
@@ -134,13 +134,13 @@
             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