Commit 9b0d0b99 authored by weijuncheng's avatar weijuncheng
Browse files

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: default avatarweijuncheng <weijuncheng@xiaomi.com>
parent de03fbdf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment