Skip to content

Commit 85846da

Browse files
authored
Fix regression bug introduced by native auth additions to MSAL test app (#2027)
Bug source: MainActivity auth callback navigates based on menu item ID. Since adding native auth to the menu, the IDs had changed. <img width="635" alt="image" src="https://github.com/AzureAD/microsoft-authentication-library-for-android/assets/1315628/29bc83dd-4170-4bad-b55c-9e58282b29c3">
1 parent cd530a2 commit 85846da

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

testapps/testapp/src/main/java/com/microsoft/identity/client/testapp/NativeAuthFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import com.microsoft.identity.client.testapp.nativeauth.PasswordResetFragment
4040
*/
4141
class NativeAuthFragment : Fragment() {
4242
companion object {
43-
private val TAG = MainActivity::class.java.simpleName
43+
private val TAG = NativeAuthFragment::class.java.simpleName
4444
}
4545

4646
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {

testapps/testapp/src/main/res/menu/activity_main_drawer.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@
3030
<item
3131
android:id="@+id/nav_acquire"
3232
android:title="AcquireToken" />
33-
<item
34-
android:id="@+id/nav_native"
35-
android:title="Native Auth" />
3633
<item
3734
android:id="@+id/nav_result"
3835
android:title="Result" />
3936
<item
4037
android:id="@+id/nav_log"
4138
android:title="Log" />
39+
<item
40+
android:id="@+id/nav_native"
41+
android:title="Native Auth" />
4242
</group>
4343

4444
</menu>

0 commit comments

Comments
 (0)