Fix settings bug (pt 2)

Follow on from ag/20862879 to keep track of prefs
so if the list of enabled providers is updated
we update the UI.

Bug: 253157366
Test: make & manual test
Change-Id: Ibf3c83fd445ced51a8cbea0113f12fc04002c23a
This commit is contained in:
Becca Hughes
2023-01-03 23:37:44 +00:00
parent 7b9bce321b
commit 6bd41f20c5
2 changed files with 24 additions and 13 deletions

View File

@@ -43,7 +43,6 @@ import org.junit.Test;
import org.junit.runner.RunWith;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@@ -183,7 +182,7 @@ public class CredentialManagerPreferenceControllerTest {
CredentialManagerPreferenceController controller =
new CredentialManagerPreferenceController(
mContext, mCredentialsPreferenceCategory.getKey());
controller.init(() -> mock(Lifecycle.class), availableServices, new HashSet<>());
controller.init(() -> mock(Lifecycle.class), availableServices);
return controller;
}