Skip to content

Commit

Permalink
Avoid caching text line in TileCache
Browse files Browse the repository at this point in the history
One more case of #128
  • Loading branch information
Feodor0090 committed Sep 5, 2023
1 parent 184b135 commit 280b4e6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mahomaps/map/TileCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ public String GetState() {
return "";
if (state > STATE_MISSING)
return "";
return STATE_DESCRIPTION[state];
return MahoMapsApp.text[STATE_DESCRIPTION[state]];
}

public static final String[] STATE_DESCRIPTION = new String[] { MahoMapsApp.text[97], MahoMapsApp.text[98],
MahoMapsApp.text[99], MahoMapsApp.text[100], MahoMapsApp.text[94], MahoMapsApp.text[88],
MahoMapsApp.text[101], MahoMapsApp.text[102] };
public static final int[] STATE_DESCRIPTION = new int[] { 97, 98, 99, 100, 94, 88, 101, 102 };

public static final int STATE_CACHE_PENDING = 0;
public static final int STATE_CACHE_LOADING = 1;
Expand Down

0 comments on commit 280b4e6

Please sign in to comment.