Remove unused import
Change-Id: I31115c29e47cdd09b2d8cc8f04e9fc9f9d542811
This commit is contained in:
parent
6984a42024
commit
ed2b6c714b
1 changed files with 1 additions and 5 deletions
|
@ -22,8 +22,6 @@ import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.util.Pair;
|
import android.util.Pair;
|
||||||
|
|
||||||
import com.android.inputmethod.keyboard.ProximityInfo;
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
|
||||||
|
@ -40,9 +38,7 @@ public class WhitelistDictionary extends ExpandableDictionary {
|
||||||
super(context, Suggest.DIC_WHITELIST);
|
super(context, Suggest.DIC_WHITELIST);
|
||||||
final Resources res = context.getResources();
|
final Resources res = context.getResources();
|
||||||
final Locale previousLocale = LocaleUtils.setSystemLocale(res, locale);
|
final Locale previousLocale = LocaleUtils.setSystemLocale(res, locale);
|
||||||
if (context != null) {
|
initWordlist(res.getStringArray(R.array.wordlist_whitelist));
|
||||||
initWordlist(context.getResources().getStringArray(R.array.wordlist_whitelist));
|
|
||||||
}
|
|
||||||
LocaleUtils.setSystemLocale(res, previousLocale);
|
LocaleUtils.setSystemLocale(res, previousLocale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue