1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

PackageInfo moved inside DictionaryUtil

This commit is contained in:
Nikolay Pultsin 2013-09-17 07:03:45 +04:00
parent 4f0c868da2
commit 70cfb8e13d
3 changed files with 30 additions and 50 deletions

View file

@ -26,12 +26,12 @@ import android.content.Context;
import org.geometerplus.zlibrary.core.options.ZLStringOption;
import org.geometerplus.zlibrary.core.resources.ZLResource;
import org.geometerplus.android.fbreader.PackageInfo;
import org.geometerplus.android.fbreader.DictionaryUtil;
class DictionaryPreference extends ZLStringListPreference {
private final ZLStringOption myOption;
DictionaryPreference(Context context, ZLResource resource, String resourceKey, ZLStringOption dictionaryOption, List<PackageInfo> infos) {
DictionaryPreference(Context context, ZLResource resource, String resourceKey, ZLStringOption dictionaryOption, List<DictionaryUtil.PackageInfo> infos) {
super(context, resource, resourceKey);
myOption = dictionaryOption;
@ -39,7 +39,7 @@ class DictionaryPreference extends ZLStringListPreference {
final String[] values = new String[infos.size()];
final String[] texts = new String[infos.size()];
int index = 0;
for (PackageInfo i : infos) {
for (DictionaryUtil.PackageInfo i : infos) {
values[index] = i.Id;
texts[index] = i.Title;
++index;