Skip to content

Commit

Permalink
updating todos, removing unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
moagrius committed Aug 10, 2016
1 parent cd1f734 commit 23d48f3
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 5 deletions.
Binary file removed demo/src/main/assets/samples/boston-overview.jpg
Binary file not shown.
Binary file removed demo/src/main/assets/samples/boston-pedestrian.jpg
Binary file not shown.
Binary file removed demo/src/main/assets/samples/middle-earth.jpg
Binary file not shown.
Binary file removed demo/src/main/assets/samples/mona-lisa.jpg
Binary file not shown.
Binary file removed demo/src/main/assets/samples/plans.JPG
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ public Bitmap getBitmap( Tile tile, Context context ) {
String unformattedFileName = (String) tile.getData();
String formattedFileName = String.format( unformattedFileName, tile.getColumn(), tile.getRow() );
try {
// TODO: this is throwing...
return Picasso.with( context ).load( formattedFileName ).memoryPolicy( MemoryPolicy.NO_CACHE, MemoryPolicy.NO_STORE ).get();
} catch( Throwable t ) {
// probably couldn't find the file
// probably couldn't find the file, maybe OOME
}
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public float getScale() {

public void setScale( float scale ) {
mScale = scale;
mMatrix.setScale( mScale, mScale ); // TODO: test this
mMatrix.setScale( mScale, mScale );
invalidate();
}

Expand Down
2 changes: 1 addition & 1 deletion tileview/src/main/java/com/qozix/tileview/tiles/Tile.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public Tile( int column, int row, int width, int height, Object data, DetailLeve
mDetailLevel = detailLevel;
mDetailLevelScale = mDetailLevel.getScale();
mIntrinsicRect.set( 0, 0, mWidth, mHeight );
mBaseRect.set( mLeft, mTop, mRight, mBottom ); // TODO: need this?
mBaseRect.set( mLeft, mTop, mRight, mBottom );
mRelativeRect.set(
FloatMathHelper.unscale( mLeft, mDetailLevelScale ),
FloatMathHelper.unscale( mTop, mDetailLevelScale ),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void cancel() {
tileRenderRunnable.cancel( true );
Tile tile = tileRenderRunnable.getTile();
if( tile != null ) {
tile.reset(); // TODO:
tile.reset();
}
}
}
Expand Down

0 comments on commit 23d48f3

Please sign in to comment.