v0.4.2: fixed a couple lint warnings/errors
This commit is contained in:
parent
5a2ffa29a7
commit
729b5a2f88
|
@ -285,11 +285,12 @@ public class Game extends Activity implements GLSurfaceView.Renderer, View.OnTou
|
||||||
try {
|
try {
|
||||||
requestedScene = sceneClass.newInstance();
|
requestedScene = sceneClass.newInstance();
|
||||||
switchScene();
|
switchScene();
|
||||||
} catch (InstantiationException | IllegalAccessException e) {
|
} catch (InstantiationException e){
|
||||||
|
e.printStackTrace();
|
||||||
|
} catch (IllegalAccessException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
|
|
@ -426,7 +426,7 @@ public class Dungeon {
|
||||||
bundle.put( DEPTH, depth );
|
bundle.put( DEPTH, depth );
|
||||||
|
|
||||||
for (int d : droppedItems.keyArray()) {
|
for (int d : droppedItems.keyArray()) {
|
||||||
bundle.put(String.format(DROPPED, d), droppedItems.get(d));
|
bundle.put(Messages.format(DROPPED, d), droppedItems.get(d));
|
||||||
}
|
}
|
||||||
|
|
||||||
quickslot.storePlaceholders( bundle );
|
quickslot.storePlaceholders( bundle );
|
||||||
|
@ -589,7 +589,7 @@ public class Dungeon {
|
||||||
droppedItems = new SparseArray<ArrayList<Item>>();
|
droppedItems = new SparseArray<ArrayList<Item>>();
|
||||||
for (int i=2; i <= Statistics.deepestFloor + 1; i++) {
|
for (int i=2; i <= Statistics.deepestFloor + 1; i++) {
|
||||||
ArrayList<Item> dropped = new ArrayList<Item>();
|
ArrayList<Item> dropped = new ArrayList<Item>();
|
||||||
for (Bundlable b : bundle.getCollection( String.format( DROPPED, i ) ) ) {
|
for (Bundlable b : bundle.getCollection( Messages.format( DROPPED, i ) ) ) {
|
||||||
dropped.add( (Item)b );
|
dropped.add( (Item)b );
|
||||||
}
|
}
|
||||||
if (!dropped.isEmpty()) {
|
if (!dropped.isEmpty()) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user