Project

General

Profile

« Previous | Next » 

Revision 5e048300

Added by Leszek Koltunski about 2 years ago

Fix for a bug when in Turkey and Azerbaijan, the names of downloaded objects which contain the letter 'I' do not get translated to upper case correctly (part 2: fix 'toLowerCase()' )

View differences:

src/main/java/org/distorted/external/RubikUpdates.java
21 21

  
22 22
import java.io.InputStream;
23 23
import java.util.ArrayList;
24
import java.util.Locale;
24 25

  
25 26
import android.content.Context;
26 27
import android.graphics.Bitmap;
......
117 118

  
118 119
    if( oMinor>=0 && eMinor>=0 && oPercent>=0 )
119 120
      {
120
      int objOrdinal = RubikObjectList.getOrdinal(shortName.toUpperCase());
121
      String upperName = shortName.toUpperCase(Locale.ENGLISH);
122
      int objOrdinal = RubikObjectList.getOrdinal(upperName);
121 123
      boolean updateO=true, updateE=true;
122 124

  
123 125
      if( SHOW_DOWNLOADED_DEBUG ) android.util.Log.e("D", "downloaded object "+shortName+" oMinor="+oMinor+" eMinor="+eMinor);

Also available in: Unified diff