Merge "Allow to report finsh/pause state if Activity isn't resume." into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
c5547caafb
@@ -101,7 +101,8 @@ public class UiTranslationController {
|
|||||||
*/
|
*/
|
||||||
public void updateUiTranslationState(@UiTranslationState int state, TranslationSpec sourceSpec,
|
public void updateUiTranslationState(@UiTranslationState int state, TranslationSpec sourceSpec,
|
||||||
TranslationSpec destSpec, List<AutofillId> views) {
|
TranslationSpec destSpec, List<AutofillId> views) {
|
||||||
if (!mActivity.isResumed()) {
|
if (!mActivity.isResumed() && (state == STATE_UI_TRANSLATION_STARTED
|
||||||
|
|| state == STATE_UI_TRANSLATION_RESUMED)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Log.i(TAG, "updateUiTranslationState state: " + stateToString(state)
|
Log.i(TAG, "updateUiTranslationState state: " + stateToString(state)
|
||||||
|
|||||||
Reference in New Issue
Block a user