From 1b40d1d47b71acc20bb51cc88dce2672a01d8cd6 Mon Sep 17 00:00:00 2001 From: Andy2 Date: Wed, 8 Dec 2010 18:45:31 -0800 Subject: [PATCH] make method public to be used outside --- .../XWords4/src/org/eehouse/android/xw4/GameUtils.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java index 2290fd1ba..7e16295d3 100644 --- a/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java +++ b/xwords4/android/XWords4/src/org/eehouse/android/xw4/GameUtils.java @@ -174,7 +174,7 @@ public class GameUtils { byte[] stream = savedGame( context, path ); CurGameInfo gi = new CurGameInfo( context ); XwJNI.gi_from_stream( gi, stream ); - String dictName = removeExtn( gi.dictName ); + String dictName = removeDictExtn( gi.dictName ); missingName[0] = dictName; missingLang[0] = gi.dictLang; @@ -221,13 +221,13 @@ public class GameUtils { for ( String file : getAssets( context ) ) { if ( isDict( file ) ) { - al.add( removeExtn( file ) ); + al.add( removeDictExtn( file ) ); } } for ( String file : context.fileList() ) { if ( isDict( file ) ) { - al.add( removeExtn( file ) ); + al.add( removeDictExtn( file ) ); } } @@ -433,7 +433,7 @@ public class GameUtils { activity.startActivity( intent ); } - private static String removeExtn( String str ) + public static String removeDictExtn( String str ) { if ( str.endsWith( XWConstants.DICT_EXTN ) ) { int indx = str.lastIndexOf( XWConstants.DICT_EXTN );