Skip to content

Commit

Permalink
Merge pull request #370 from moagrius/issue/336
Browse files Browse the repository at this point in the history
use localized string format to support non-roman languages
  • Loading branch information
moagrius committed Nov 11, 2016
2 parents 63f59cc + 1cf759a commit cf009ce
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.qozix.tileview.tiles.Tile;

import java.io.InputStream;
import java.util.Locale;

/**
* This is a very simple implementation of BitmapProvider, using a formatted string to find
Expand All @@ -30,7 +31,7 @@ public Bitmap getBitmap( Tile tile, Context context ) {
Object data = tile.getData();
if( data instanceof String ) {
String unformattedFileName = (String) tile.getData();
String formattedFileName = String.format( unformattedFileName, tile.getColumn(), tile.getRow() );
String formattedFileName = String.format( Locale.US, unformattedFileName, tile.getColumn(), tile.getRow() );
AssetManager assetManager = context.getAssets();
try {
InputStream inputStream = assetManager.open( formattedFileName );
Expand Down

0 comments on commit cf009ce

Please sign in to comment.