From 8c04dddcc8d6b6cdb7687fa24e05731deff9fd90 Mon Sep 17 00:00:00 2001 From: Eric House Date: Sat, 4 Jun 2022 13:44:27 -0700 Subject: [PATCH] Fix not passing lang for studylist --- .../java/org/eehouse/android/xw4/StudyListDelegate.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java index b0eac1930..f6f33689c 100644 --- a/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java +++ b/xwords4/android/app/src/main/java/org/eehouse/android/xw4/StudyListDelegate.java @@ -83,7 +83,7 @@ public class StudyListDelegate extends ListDelegateBase getBundledData( sis ); - initOrFinish( getIntent() ); + initOrFinish( getArguments() ); } @Override @@ -312,7 +312,7 @@ public class StudyListDelegate extends ListDelegateBase setListAdapter( m_adapter ); } - private void initOrFinish( Intent startIntent ) + private void initOrFinish( Bundle args ) { m_langCodes = DBUtils.studyListLangs( m_activity ); if ( 0 == m_langCodes.length ) { @@ -324,8 +324,8 @@ public class StudyListDelegate extends ListDelegateBase } else { int startLang = NO_LANG; int startIndex = -1; - if ( null != startIntent ) { - startLang = startIntent.getIntExtra( START_LANG, NO_LANG ); + if ( null != args ) { + startLang = args.getInt( START_LANG, NO_LANG ); } String[] myNames = new String[m_langCodes.length];