search text when changing dicts.
package="com.hughes.android.dictionary"
- android:versionCode="18"
- android:versionName="3.2"
+ android:versionCode="19"
+ android:versionName="3.2.1"
android:installLocation="auto">
<uses-sdk android:minSdkVersion="4" />
</head>
<body>
<!-- Don't use links in the text below, it crashes the app. -->
-Vielen Dank für die Aktualisierung auf QuickDic 3.2.
+Vielen Dank für die Aktualisierung auf QuickDic 3.2.1.
<p>Neue Funktionen:</p>
<ul>
-<li>Universal-Schriftart (verbessert die Behandlung der
-nicht-lateinische Sprachen auf allen Systeme).</li>
-<li>Gelöst Segmentierung Probleme mit Akzenten (wichtig
-für Thai, Arabisch, Chinesisch).</li>
-<li>Gelöst irisch / gälische Wörterbücher
-Probleme.</li>
-<li>Aktualisiert alle Wörterbücher: neueste Daten aus
-Wiktionary, bessere Formatierung (vor allem für Arabisch).
-Neue Wörterbücher können in Ihrer Freizeit
-redownloaded werden.</li>
+<li>Wörterbücher filtern.</li>
+<li>Fixed font bug on Sony Ericsson devices.</li>
</ul>
</body>
</html>
</head>
<body>
<!-- Don't use links in the text below, it crashes the app. -->
-Thanks for updating to QuickDic 3.2
+Thanks for updating to QuickDic 3.2.1.
<p>New features:</p>
<ul>
-<li>Embedded universal font (for better handling of
-non-Latin languages across all platforms).</li>
-<li>Fixed segmentation issues with accent marks (important for
-Thai, Arabic, Chinese).</li>
-<li>Fixed Irish/Gaelic dictionaries.</li>
-<li>Updated all dictionaries: latest data from wiktionary, better
-formatting (especially for Arabic). New dictionaries can be
-re-downloaded at your leisure.</li>
+<li>Filter dictionary list.</li>
+<li>Fixed font bug on Sony Ericsson devices.</li>
</ul>
</body>
</html>
<string name="app_name">QuickDic</string>
- <string name="titleWithVersion">QuickDic 3.2</string>
+ <string name="titleWithVersion">QuickDic 3.2.1</string>
<!-- Global. -->
<string name="about">Über QuickDic…</string>
<string name="contactMe">
Wenn Sie QuickDic benutzen, würde ich gerne von Ihnen hören.
Leider kann ich keine Verantwortung für die Wörterbücher (außer Formatierung) nehmen, weil sie aus anderen Quellen erzeugt werden.
+ Danke an Michael Vogel für Hilfe mit dem Icon und den deutschen Übersetzungen.
Bitte senden Sie Kommentare, Anregungen, Bug-Reports, oder einfach nur ein kurzes Hallo an:
</string>
<string name="myEmail" formatted="false">thad.hughes@gmail.com</string>
<string name="app_name">QuickDic</string>
- <string name="titleWithVersion">QuickDic 3.2</string>
+ <string name="titleWithVersion">QuickDic 3.2.1</string>
<!-- Global. -->
<string name="about">About QuickDic…</string>
\r
searchText.requestFocus();\r
searchText.addTextChangedListener(searchTextWatcher);\r
- String text = "";\r
+ \r
+ // Set the search text from the intent, then the saved state.\r
+ String text = getIntent().getStringExtra(C.SEARCH_TOKEN);\r
if (savedInstanceState != null) {\r
text = savedInstanceState.getString(C.SEARCH_TOKEN);\r
- if (text == null) {\r
- text = "";\r
- }\r
+ }\r
+ if (text == null) {\r
+ text = "";\r
}\r
setSearchText(text, true);\r
Log.d(LOG, "Trying to restore searchText=" + text);\r
}\r
searchText.setText(text);\r
searchText.requestFocus();\r
+ moveCursorToRight();\r
+ if (triggerSearch) {\r
+ onSearchTextChange(text);\r
+ }\r
+ }\r
+ \r
+ private long cursorDelayMillis = 100;\r
+ private void moveCursorToRight() {\r
if (searchText.getLayout() != null) {\r
+ cursorDelayMillis = 100;\r
// Surprising, but this can crash when you rotate...\r
Selection.moveToRightEdge(searchText.getText(), searchText.getLayout());\r
- }\r
- if (triggerSearch) {\r
- onSearchTextChange(text);\r
+ } else {\r
+ uiHandler.postDelayed(new Runnable() {\r
+ @Override\r
+ public void run() {\r
+ moveCursorToRight();\r
+ }\r
+ }, cursorDelayMillis);\r
+ cursorDelayMillis = Math.min(10 * 1000, 2 * cursorDelayMillis);\r
}\r
}\r
\r