Skip to content

Commit

Permalink
use localized string format to support non-roman languages
Browse files Browse the repository at this point in the history
  • Loading branch information
moagrius committed Nov 11, 2016
1 parent 63f59cc commit 1cf759a
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 1cf759a

Please sign in to comment.