Fix ScopedDirectoryAccessTest cts casee
Root Cause:
This reason of this fail is because the case is only consider of SwitchPreference implemented by android.support.v7.preference
However, in MIUI, this switch is implemented by android.preference, which will cause StaleObjectException exception during the test
Bug: 112571163
Solution:
After the switch being clicked, try to get the switch again
Change-Id: I4a61e213e9d63da3963bc0d2250908def4486f0a
Signed-off-by:
weijuncheng <weijuncheng@xiaomi.com>
Loading
Please sign in to comment