Skip to content

Commit

Permalink
Default inline_preview is now true
Browse files Browse the repository at this point in the history
  • Loading branch information
brentn committed Aug 7, 2014
1 parent fe05b3b commit 6bfa351
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion main/java/com/brentandjody/stenoime/StenoIME.java
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ public void onClick(View view) {

private void initializePreview() {
Log.d(TAG, "initializePreview()");
inline_preview = prefs.getBoolean(getString(R.string.key_inline_preview), false);
inline_preview = prefs.getBoolean(getString(R.string.key_inline_preview), true);
if (App.isDictionaryLoaded()) {
if (getCurrentInputConnection()==null)
showPreviewBar(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public void onDictionaryLoaded() {

}

public void estRealDictionary() throws Exception {
public void testRealDictionary() throws Exception {
InputStream in = getContext().getAssets().open("dict.json");
File outFile = new File("/sdcard", "dict.json");
OutputStream out = new FileOutputStream(outFile);
Expand Down Expand Up @@ -222,8 +222,8 @@ public void onDictionaryLoaded() {
checkResults(translator.translate(new Stroke("TKPWO*D")), 0, "", "God ");
checkResults(translator.translate(new Stroke("AES")), 0, "God ", "'s ");
checkResults(translator.translate(new Stroke("TRAO*UT")), 4, "God's ", "truth ");
checkResults(translator.translate(new Stroke("*")), 0, "", "");
checkResults(translator.translate(new Stroke("*")), 6, "", "God ");
checkResults(translator.translate(new Stroke("*")), 6, "God ", "'s ");
checkResults(translator.translate(new Stroke("*")), 4, "", "God ");

checkResults(translator.translate(new Stroke("#H")), 0, "God 4 ", "");
checkResults(translator.translate(new Stroke("AUG")), 0, "", "August ");
Expand Down
2 changes: 1 addition & 1 deletion main/res/xml/preferences.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
android:title="@string/inline_preview"
android:summaryOn="@string/preview_on_summary"
android:summaryOff="@string/preview_off_summary"
android:defaultValue="false"/>
android:defaultValue="true"/>
</PreferenceCategory>

<PreferenceCategory android:title="@string/dictionary">
Expand Down

0 comments on commit 6bfa351

Please sign in to comment.