Skip to content

Commit 509b02f

Browse files
committed
Fixed round corner not falling back bug.
1 parent 7c06d96 commit 509b02f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

demo/src/com/androidquery/test/image/ImageLoadingActivity.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ public void image_round(){
205205

206206
ImageOptions options = new ImageOptions();
207207
options.round = 15;
208+
options.fallback = R.drawable.image_missing;
208209

209210
aq.id(R.id.image).image(url, options);
210211

dist/build-full.jardesc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<jardesc>
3-
<jar path="AndroidQuery/dist/android-query-full.0.25.5-beta.jar"/>
3+
<jar path="AndroidQuery/dist/android-query-full.0.25.6-beta.jar"/>
44
<options buildIfNeeded="true" compress="true" descriptionLocation="/AndroidQuery/dist/build-full.jardesc" exportErrors="true" exportWarnings="true" includeDirectoryEntries="false" overwrite="true" saveDescription="true" storeRefactorings="false" useSourceFolders="false"/>
55
<storedRefactorings deprecationInfo="true" structuralOnly="false"/>
66
<selectedProjects/>

src/com/androidquery/callback/BitmapAjaxCallback.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,8 @@ public static Bitmap getResizedImage(String path, byte[] data, int target, boole
382382
*/
383383
public static Bitmap getResizedImage(String path, byte[] data, int target, boolean width, int round, boolean rotate){
384384

385+
if(path == null && data == null) return null;
386+
385387
Options options = null;
386388

387389
if(target > 0){
@@ -468,7 +470,6 @@ public Bitmap transform(String url, byte[] data, AjaxStatus status) {
468470
path = file.getAbsolutePath();
469471
}
470472

471-
472473
Bitmap bm = bmGet(path, data);
473474

474475
if(bm == null){

src/com/androidquery/util/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
public interface Constants {
2020

2121

22-
public static final String VERSION = "0.25.5";
22+
public static final String VERSION = "0.25.6";
2323

2424
public static final int LAYER_TYPE_SOFTWARE = 1;
2525
public static final int LAYER_TYPE_HARDWARE = 2;

0 commit comments

Comments
 (0)