Skip to content

Commit a993ba4

Browse files
committed
update test app
1 parent 2a69af3 commit a993ba4

File tree

4 files changed

+11
-42
lines changed

4 files changed

+11
-42
lines changed

testapps/testapp/src/main/java/com/microsoft/identity/client/testapp/AcquireTokenFragment.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ public class AcquireTokenFragment extends Fragment {
8787
private Button mAddNgcMfaClaimButton;
8888
private Switch mEnablePII;
8989
private Switch mForceRefresh;
90-
private Switch mEnableNewBrokerDiscovery;
9190
private Switch mAllowSignInFromOtherDevice;
9291

9392
private Button mClearActiveBrokerDiscoveryCache;
@@ -203,19 +202,9 @@ public void onClick(View v) {
203202
AndroidPlatformComponentsFactory.createFromContext(getContext()).getStorageSupplier()
204203
);
205204

206-
mEnableNewBrokerDiscovery = view.findViewById(R.id.enableBrokerDiscovery);
207205
mCachedActiveBrokerName = view.findViewById(R.id.cachedActiveBrokerName);
208206
mClearActiveBrokerDiscoveryCache = view.findViewById(R.id.clearActiveBrokerDiscoveryCache);
209207

210-
mEnableNewBrokerDiscovery.setChecked(BrokerDiscoveryClientFactory.isNewBrokerDiscoveryEnabled());
211-
mEnableNewBrokerDiscovery.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
212-
@Override
213-
public void onCheckedChanged(CompoundButton v, boolean value) {
214-
BrokerDiscoveryClientFactory.setNewBrokerDiscoveryEnabled(value);
215-
setActiveBrokerTextFromCache();
216-
}
217-
});
218-
219208
mClearActiveBrokerDiscoveryCache.setOnClickListener(new View.OnClickListener() {
220209
@Override
221210
public void onClick(View v) {

testapps/testapp/src/main/res/layout/fragment_acquire.xml

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -435,33 +435,6 @@
435435
android:layout_weight="1"/>
436436
</LinearLayout>
437437

438-
<LinearLayout
439-
android:layout_width="match_parent"
440-
android:layout_height="wrap_content"
441-
android:gravity="center_vertical"
442-
android:weightSum="16">
443-
444-
<TextView
445-
android:layout_width="0dp"
446-
android:layout_height="wrap_content"
447-
android:layout_weight="6"
448-
android:text="@string/enable_new_broker_discovery" />
449-
450-
<Switch
451-
android:id="@+id/enableBrokerDiscovery"
452-
android:layout_width="0dp"
453-
android:layout_height="wrap_content"
454-
android:layout_weight="2"
455-
android:gravity="center_vertical" />
456-
457-
<Button
458-
android:id="@+id/clearActiveBrokerDiscoveryCache"
459-
android:layout_width="0dp"
460-
android:layout_height="wrap_content"
461-
android:layout_weight="8"
462-
android:text="@string/clear_active_broker_cache" />
463-
464-
</LinearLayout>
465438

466439
<LinearLayout
467440
android:layout_width="match_parent"
@@ -472,17 +445,24 @@
472445
<TextView
473446
android:layout_width="0dp"
474447
android:layout_height="wrap_content"
475-
android:layout_weight="5"
448+
android:layout_weight="3"
476449
android:text="@string/current_cached_active_broker" />
477450

478451
<TextView
479452
android:id="@+id/cachedActiveBrokerName"
480453
android:layout_width="0dp"
481454
android:layout_height="wrap_content"
482-
android:layout_weight="10"
455+
android:layout_weight="8"
483456
android:layout_marginLeft="10dp"
484457
android:text="@string/none"/>
485458

459+
<Button
460+
android:id="@+id/clearActiveBrokerDiscoveryCache"
461+
android:layout_width="0dp"
462+
android:layout_height="wrap_content"
463+
android:layout_weight="4"
464+
android:text="@string/clear_active_broker_cache" />
465+
486466
</LinearLayout>
487467

488468
<LinearLayout

testapps/testapp/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
<string name="pop_client_claims">PoP client claims</string>
7171
<string name="trust_debug_broker">DebugBroker?</string>
7272
<string name="enable_new_broker_discovery">Enable New Broker Discovery</string>
73-
<string name="clear_active_broker_cache">Clear Active Broker Cache</string>
73+
<string name="clear_active_broker_cache">Clear</string>
7474
<string name="current_cached_active_broker">Cached Active Broker</string>
7575
<string name="none">None</string>
7676

0 commit comments

Comments
 (0)