mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Removed upload capability for easier debugging
App doesn't actually upload files, so can submit same file over and over. Needed for debugging. Will restore upload functionality prior to release
This commit is contained in:
parent
98cbbc2506
commit
eed0f49ce8
3 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ public class MediaDetailFragment extends SherlockFragment {
|
|||
@Override
|
||||
protected void onPreExecute() {
|
||||
extractor = new MediaDataExtractor(media.getFilename(), licenseList);
|
||||
Log.i("Image", "Image name is " + media.getFilename());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -140,7 +140,7 @@ public class UploadController {
|
|||
@Override
|
||||
protected void onPostExecute(Contribution contribution) {
|
||||
super.onPostExecute(contribution);
|
||||
uploadService.queue(UploadService.ACTION_UPLOAD_FILE, contribution);
|
||||
//uploadService.queue(UploadService.ACTION_UPLOAD_FILE, contribution);
|
||||
onComplete.onUploadStarted(contribution);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue