Fixed minor issues

This commit is contained in:
misaochan 2015-12-18 14:53:51 +13:00
parent 7804546ae3
commit 5a4251fe55
3 changed files with 7 additions and 9 deletions

View file

@ -151,7 +151,7 @@ public class MediaWikiImageView extends ImageView {
// from the network.
ImageContainer newContainer = mImageLoader.get(mUrl,
new ImageListener() {
@Override
public void onErrorResponse(final VolleyError error) {
if(!tryOriginal) {
post(new Runnable() {
@ -163,7 +163,7 @@ public class MediaWikiImageView extends ImageView {
}
@Override
public void onResponse(final ImageContainer response, boolean isImmediate) {
// If this was an immediate response that was delivered inside of a layout
// pass do not set the image immediately as it will trigger a requestLayout
@ -171,7 +171,7 @@ public class MediaWikiImageView extends ImageView {
// the main thread.
if (isImmediate && isInLayoutPass) {
post(new Runnable() {
@Override
public void run() {
onResponse(response, false);
}

View file

@ -187,7 +187,6 @@ public class MediaDetailFragment extends SherlockFragment {
@Override
protected void onPreExecute() {
extractor = new MediaDataExtractor(media.getFilename(), licenseList);
}
@Override

View file

@ -11,9 +11,6 @@ import android.util.Log;
import java.io.IOException;
/**
* Created by misao on 16-Dec-15.
*/
public class ImageProcessing {
private Uri uri;
@ -23,8 +20,10 @@ public class ImageProcessing {
this.context = context;
this.uri = uri;
}
//Gets file path of image from its Uri
/**
* Gets file path of image from its Uri
* May return null
*/
public String getFilePath(){
String filePath ="";
// Will return "image:x*"