Skip to content

Commit 351ccac

Browse files
committed
V3.1
1 parent 07d41d6 commit 351ccac

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ android {
1515
applicationId "org.woheller69.whisper"
1616
minSdk 28
1717
targetSdk 34
18-
versionCode 30
19-
versionName "3.0"
18+
versionCode 31
19+
versionName "3.1"
2020

2121
}
2222

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
android:icon="@mipmap/ic_launcher"
2020
android:label="@string/app_name"
2121
android:supportsRtl="true"
22+
android:largeHeap="true"
2223
android:theme="@style/Theme.Whisper.NoActionBar">
2324
<activity android:name="com.whispertflite.MainActivity"
2425
android:configChanges="orientation|screenSize|screenLayout|smallestScreenSize|uiMode"

app/src/main/java/com/whispertflite/WhisperInputMethodService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ public void onResultReceived(WhisperResult whisperResult) {
299299
boolean simpleChinese = sp.getBoolean("simpleChinese",false);
300300
result = simpleChinese ? ZhConverterUtil.toSimple(result) : ZhConverterUtil.toTraditional(result);
301301
}
302-
if (result.trim().length() > 0) getCurrentInputConnection().commitText(result.trim() + " ",1);
303-
if (modeAuto) switchToPreviousInputMethod();
302+
boolean commitSuccess = false;
303+
if (result.trim().length() > 0) commitSuccess = getCurrentInputConnection().commitText(result.trim() + " ",1);
304+
if (modeAuto && commitSuccess) switchToPreviousInputMethod();
304305
}
305306
});
306307
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Allow higher memory allocation
2+
Bugfixes
3+
Translations

0 commit comments

Comments
 (0)