|
45 | 45 | import android.widget.Toast;
|
46 | 46 | import android.widget.ToggleButton;
|
47 | 47 |
|
48 |
| -import androidx.annotation.Nullable; |
49 | 48 | import androidx.fragment.app.Fragment;
|
50 | 49 |
|
51 | 50 | import com.microsoft.identity.client.HttpMethod;
|
|
54 | 53 | import com.microsoft.identity.client.Logger;
|
55 | 54 | import com.microsoft.identity.client.Prompt;
|
56 | 55 | import com.microsoft.identity.client.PublicClientApplication;
|
57 |
| -import com.microsoft.identity.client.exception.MsalException; |
58 | 56 | import com.microsoft.identity.common.components.AndroidPlatformComponentsFactory;
|
59 | 57 | import com.microsoft.identity.common.internal.activebrokerdiscovery.BrokerDiscoveryClientFactory;
|
60 | 58 | import com.microsoft.identity.common.internal.broker.BrokerData;
|
61 |
| -import com.microsoft.identity.common.internal.broker.BrokerValidator; |
62 | 59 | import com.microsoft.identity.common.internal.cache.ClientActiveBrokerCache;
|
63 | 60 | import com.microsoft.identity.common.internal.cache.IActiveBrokerCache;
|
64 | 61 | import com.microsoft.identity.common.java.opentelemetry.OTelUtility;
|
|
70 | 67 | import io.opentelemetry.api.trace.Span;
|
71 | 68 | import io.opentelemetry.api.trace.StatusCode;
|
72 | 69 | import io.opentelemetry.context.Scope;
|
73 |
| -import kotlin.Unit; |
74 | 70 |
|
75 | 71 | /**
|
76 | 72 | * acquireToken Fragment, contains the flow for acquireToken interactively, acquireTokenSilent, getUsers, removeUser.
|
@@ -180,7 +176,7 @@ public void onClick(View v) {
|
180 | 176 | mDebugBrokers.setTextOn("Debug Brokers");
|
181 | 177 | mDebugBrokers.setChecked(BrokerData.getShouldTrustDebugBrokers());
|
182 | 178 |
|
183 |
| - mCache = ClientActiveBrokerCache.Companion.getBrokerMetadataStoreOnSdkSide( |
| 179 | + mCache = ClientActiveBrokerCache.Companion.getCache( |
184 | 180 | AndroidPlatformComponentsFactory.createFromContext(getContext()).getStorageSupplier()
|
185 | 181 | );
|
186 | 182 |
|
|
0 commit comments