Merge "Fix the problem that the ToggleSubscriptionDialogActivity appears twice when switch changed." into sc-dev

This commit is contained in:
Stanley Wang
2021-06-29 09:48:54 +00:00
committed by Android (Google) Code Review
3 changed files with 14 additions and 16 deletions

View File

@@ -59,8 +59,8 @@ public class SettingsMainSwitchPreferenceTest {
}
@Test
public void updateStatus_isRestricted_restrictIconShouldDisplay() {
mPreference.updateStatus(true);
public void onBindViewHolder_isRestricted_restrictIconShouldDisplay() {
mPreference.onBindViewHolder(mHolder);
final SettingsMainSwitchBar switchBar = mPreference.getSwitchBar();
final ImageView restrictedIcon = switchBar.findViewById(