mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +01:00
Fix not passing lang for studylist
This commit is contained in:
parent
33b636b458
commit
8c04dddcc8
1 changed files with 4 additions and 4 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue