Skip to content

Commit

Permalink
Change app icon.
Browse files Browse the repository at this point in the history
  • Loading branch information
solrex committed Dec 23, 2016
1 parent 0b0503e commit 4780717
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
11 changes: 10 additions & 1 deletion app/src/main/java/com/ooolab/whatiswhat/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ public void afterTextChanged(Editable s) {

}
});
// 默认启动识别
findViewById(R.id.input_btn).callOnClick();
}

@Override
Expand Down Expand Up @@ -144,7 +146,7 @@ public void onInputBtnClick(View v) {
mWebView.onPause();
// 隐藏报错信息
hideInfo();
// 如果
// 直接使用成员变量,避免初始化开销,待优化s
if (mSpeechSynthesizer != null) {
mSpeechSynthesizer.stop();
}
Expand Down Expand Up @@ -319,6 +321,7 @@ public void onSpeechFinish(String arg0) {
@Override
public void run() {
hideInfo();
mWebView.onResume();
}
});
}
Expand All @@ -332,6 +335,12 @@ public void onSpeechProgressChanged(String arg0, int arg1) {
public void onSpeechStart(String arg0) {
// 监听到合成并播放开始,在此添加相关操作
Log.d(TAG, "onSpeechStart: ");
runOnUiThread(new Runnable() {
@Override
public void run() {
mWebView.onPause();
}
});
}

@Override
Expand Down
1 change: 0 additions & 1 deletion app/src/main/res/layout/fragment_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:layout_toLeftOf="@+id/input_btn"
android:layout_toStartOf="@+id/input_btn"
android:gravity="center_vertical"
android:text="@string/app_name"
android:textColor="@color/textColorPrimary"
Expand Down
Binary file modified app/src/main/res/mipmap-hdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-mdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4780717

Please sign in to comment.