]> gitweb.fperrin.net Git - Dictionary.git/commitdiff
Ready to release... And fixed cursor placement bug and preserving
authorThad Hughes <thad.hughes@gmail.com>
Wed, 28 Mar 2012 04:11:35 +0000 (21:11 -0700)
committerThad Hughes <thad.hughes@gmail.com>
Wed, 28 Mar 2012 04:11:35 +0000 (21:11 -0700)
search text when changing dicts.

AndroidManifest.xml
res/raw-de/whats_new.html
res/raw/whats_new.html
res/values-de/strings.xml
res/values/strings.xml
src/com/hughes/android/dictionary/DictionaryActivity.java

index 52796a051731b0baac7e382a7c4ed13e4e31308b..6b49408460820db3fecf3e9912fa4dc31c4eddde 100644 (file)
@@ -4,8 +4,8 @@
  
  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" />
index 447c4c6bba1604b899a70623ab7aff6891a0e9c9..9554acb49e18ed080819fa952fdfaea9770817ae 100644 (file)
@@ -9,19 +9,11 @@
 </head>
 <body>
 <!-- Don't use links in the text below, it crashes the app. -->
-Vielen Dank f&uuml;r die Aktualisierung auf QuickDic 3.2.
+Vielen Dank f&uuml;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&ouml;st Segmentierung Probleme mit Akzenten (wichtig 
-f&uuml;r Thai, Arabisch, Chinesisch).</li>
-<li>Gel&ouml;st irisch / g&auml;lische W&ouml;rterb&uuml;cher 
-Probleme.</li>
-<li>Aktualisiert alle W&ouml;rterb&uuml;cher: neueste Daten aus 
-Wiktionary, bessere Formatierung (vor allem f&uuml;r Arabisch). 
-Neue W&ouml;rterb&uuml;cher k&ouml;nnen in Ihrer Freizeit
-redownloaded werden.</li>
+<li>W&ouml;rterb&uuml;cher filtern.</li>
+<li>Fixed font bug on Sony Ericsson devices.</li>
 </ul>
 </body>
 </html>
index dccbe6f3603af6f372a23d62e28de781b8631f72..41bda3313a7b3fa5dc46e19f637c7dca0c23c94a 100644 (file)
@@ -9,17 +9,11 @@
 </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>
index 14746ac7837dc395341133c0b9918406768373fe..2a3200dfa07481f7c15d85101e61c6da4ff172bd 100644 (file)
@@ -3,7 +3,7 @@
 
        <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>
@@ -54,6 +54,7 @@
   <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>
index 4e08ead86f093633372efd6a43d315c9e146d31c..c5da911e1e76a5607bae253a973b353872a84fda 100644 (file)
@@ -3,7 +3,7 @@
 
   <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> 
index 5d937f8078a0179a1c2e26f0359eadf9211664a3..78c8a476b822cb0de1d69de411af4cef3a0d4512 100644 (file)
@@ -278,12 +278,14 @@ public class DictionaryActivity extends ListActivity {
     \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
@@ -791,12 +793,26 @@ public class DictionaryActivity extends ListActivity {
     }\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