Skip to content

Commit 0cb5f63

Browse files
committedJan 3, 2021
Small fixes + update dependencies
1 parent efe206a commit 0cb5f63

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed
 

‎app/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ android {
2626
applicationId 'ee.ioc.phon.android.speak'
2727
minSdkVersion 16
2828
targetSdkVersion 30
29-
versionCode 1754
30-
versionName '1.7.54'
29+
versionCode 1756
30+
versionName '1.7.56'
3131
vectorDrawables.useSupportLibrary = true
3232
// Keep only en and et resources
3333
resConfigs "en", "et"

‎app/src/main/java/ee/ioc/phon/android/speak/service/SpeechInputMethodService.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,16 @@ public void onStartInputView(EditorInfo editorInfo, boolean restarting) {
188188
InputConnection ic = getCurrentInputConnection();
189189
// InputConnectionCommandEditor cannot be called with a null InputConnection.
190190
// We do not expect this to happen, but Google Play crash reports show that it does.
191+
// TODO: review, e.g. move to after restarting-check
191192
if (ic == null) {
192193
Toast.makeText(getApplicationContext(), R.string.errorFailedGetCurrentInputConnection, Toast.LENGTH_LONG).show();
193-
switchToLastIme();
194+
//switchToLastIme();
194195
return;
195196
}
196197
((InputConnectionCommandEditor) mCommandEditor).setInputConnection(ic);
197198

198199
// TODO: quick hack to add app to the matcher, not sure if we can access the class name of the app
200+
// TODO: use getPackageName() or editorInfo.packageName, but not both
199201
String packageName = editorInfo.packageName;
200202
ComponentName app = new ComponentName(packageName, packageName);
201203

‎app/src/main/java/ee/ioc/phon/android/speak/view/SpeechInputView.java

+1
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,7 @@ private void startListening(ServiceLanguageChooser slc) {
834834
* Note that SpeechRecognizer#destroy calls cancel first.
835835
*/
836836
private void cancelOrDestroy() {
837+
mBtnType = "Y";
837838
if (mRecognizer != null) {
838839
mRecognizer.destroy();
839840
mRecognizer = null;

0 commit comments

Comments
 (0)
Failed to load comments.