+++ /dev/null
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Indicates whether an apk should be generated for each density.
-split.density=false
-# Project target.
-target=android-8
--- /dev/null
+project.properties
\ No newline at end of file
<string name="fontSizeKey">fontSize</string>
<string name="fontSizeTitle">Font size</string>
- <string name="fontSizeSummary">The size of the font for dictionary rows.</string>
+ <string name="fontSizeSummary">The size of the font for dictionary rows (restart required).</string>
<string name="saveOnlyFirstSubentryKey">saveOnlyFirstSubentry</string>
<string name="saveOnlyFirstSubentryTitle">Save only first sub-entry</string>
android:title="@string/themeTitle"\r
android:summary="@string/themeSummary"\r
android:persistent="true"\r
- android:defaultValue=""\r
+ android:defaultValue="themeLight"\r
android:entries="@array/themes"\r
android:entryValues="@array/themeKeys"\r
/>\r
searchText.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);\r
\r
langButton = (Button) findViewById(R.id.LangButton);\r
- langButton.setTextSize(TypedValue.COMPLEX_UNIT_SP, fontSizeSp);\r
\r
searchText.requestFocus();\r
searchText.addTextChangedListener(searchTextWatcher);\r
private View getView(TokenRow row, ViewGroup parent) {\r
final TextView textView = new TextView(parent.getContext());\r
textView.setText(row.getToken());\r
- textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 6 * fontSizeSp / 5);\r
+ textView.setTextSize(TypedValue.COMPLEX_UNIT_SP, 5 * fontSizeSp / 4);\r
return textView;\r
}\r
\r
}
if (quickDicConfig.currentVersion < QuickDicConfig.LATEST_VERSION) {
Log.d(LOG, "Dictionary list is old, updating it.");
+
+ // Replace <-> with -
+ if (quickDicConfig.currentVersion == 3) {
+ for (final DictionaryConfig config : quickDicConfig.dictionaryConfigs) {
+ config.name = config.name.replace("<->", "-");
+ }
+ }
quickDicConfig.addDefaultDictionaries();
quickDicConfig.currentVersion = QuickDicConfig.LATEST_VERSION;
}
private static final long serialVersionUID = 6711617368780900979L;
// Just increment this to have them all update...
- static final int LATEST_VERSION = 3;
+ static final int LATEST_VERSION = 4;
final List<DictionaryConfig> dictionaryConfigs = new ArrayList<DictionaryConfig>();
int currentVersion = LATEST_VERSION;
public void addDefaultDictionaries() {
{
final DictionaryConfig config = new DictionaryConfig();
- config.name = "German<->English";
+ config.name = "German-English";
config.downloadUrl = BASE_URL + "DE-EN_chemnitz_enwiktionary.quickdic.zip";
config.localFile = "/sdcard/quickDic/DE-EN_chemnitz_enwiktionary.quickdic";
addOrReplace(config);
continue;
}
final DictionaryConfig config = new DictionaryConfig();
- config.name = String.format("English<->%s", Language.isoCodeToWikiName.get(iso));
+ config.name = String.format("English-%s", Language.isoCodeToWikiName.get(iso));
config.downloadUrl = String.format("%sEN-%s_enwiktionary.quickdic.zip", BASE_URL, iso);
config.localFile = String.format("/sdcard/quickDic/EN-%s_enwiktionary.quickdic", iso);
addOrReplace(config);