This commit is contained in:
wangcongtao
2020-03-04 15:56:46 +08:00
parent 1396306f24
commit e0bdc4cbff
3 changed files with 7 additions and 5 deletions

View File

@@ -78,6 +78,8 @@ public class ExtensionsPresenter extends Presenter< ExtensionsView > implements
};
private boolean mHasTipWords = false;
private boolean mHasStarted = false;
/**
* 接收时间变化的广播
*/
@@ -210,6 +212,10 @@ public class ExtensionsPresenter extends Presenter< ExtensionsView > implements
if ( !mHasTipWords ) {
return;
}
if ( mHasStarted ) {
return;
}
mHasStarted = true;
if ( autoChange ) {
mHandler.sendEmptyMessageDelayed( MSG_SWITCH_AI_TIP_WORDS, INTERVAL_TIME );
Logger.d( TAG, "auto switch" );