Fix the bug that the mode button and the result are not consistent.

Copy from https://android-review.googlesource.com/c/platform/cts/+/1900956

To solve merge conflict error:
Copy from https://googleplex-android-review.git.corp.google.com/c/platform/cts/+/16067177

Bug: 184407653
Bug: 184701017

Test: manual test on mode swiching
Change-Id: I0df7ac04079eee934066e2288b848ce73b140b60
1 file changed