Skip to content

Commit 1dd2b0e

Browse files
authored
Merge pull request #341 from moagrius/bug/339-340
Bug fixes for 339 and 340
2 parents a085b2d + 3353865 commit 1dd2b0e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Javadocs are [here](http://moagrius.github.io/TileView/index.html?com/qozix/tile
4444
###Installation
4545
Gradle:
4646
```
47-
compile 'com.qozix:tileview:2.2.1'
47+
compile 'com.qozix:tileview:'2.2.2'
4848
```
4949

5050
The library is hosted on jcenter, and is not currently available from maven.
@@ -64,7 +64,7 @@ A demo application, built in Android Studio, is available in the `demo` folder o
6464
at the 2nd column from left and 3rd row from top.
6565
1. Create a new application with a single activity ('Main').
6666
1. Save the image tiles to your `assets` directory.
67-
1. Add `compile 'com.qozix:tileview:2.2.1'` to your gradle dependencies.
67+
1. Add `compile 'com.qozix:tileview:2.2.2'` to your gradle dependencies.
6868
1. In the Main Activity, use this for `onCreate`:
6969
```
7070
@Override

tileview/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ android {
77
minSdkVersion 11
88
targetSdkVersion 23
99
versionCode 33
10-
versionName "2.2.1"
10+
versionName "2.2.2"
1111
}
1212
buildTypes {
1313
release {

tileview/src/main/java/com/qozix/tileview/detail/DetailLevel.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public boolean equals( Object object ) {
124124
}
125125
if( object instanceof DetailLevel ) {
126126
DetailLevel detailLevel = (DetailLevel) object;
127-
return mScale == detailLevel.getScale();
127+
return mScale == detailLevel.getScale() && mData != null && mData.equals( detailLevel.getData() );
128128
}
129129
return false;
130130
}

tileview/src/main/java/com/qozix/tileview/tiles/TileCanvasViewGroup.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,9 @@ public boolean getIsRendering() {
203203
* Clears existing tiles and cancels any existing render tasks.
204204
*/
205205
public void clear() {
206-
suppressRender();
207206
cancelRender();
208207
mTilesInCurrentViewport.clear();
208+
mPreviouslyDrawnTiles.clear();
209209
invalidate();
210210
}
211211

0 commit comments

Comments
 (0)