Tidied up ShareActivity.java

Var declarations at top, constructor and other methods below
This commit is contained in:
misaochan 2015-11-24 19:05:15 +13:00
parent c7ccd514ad
commit 0e9737426d
2 changed files with 5 additions and 5 deletions

View file

@ -30,10 +30,6 @@ public class ShareActivity
private SingleUploadFragment shareView;
private CategorizationFragment categorizationFragment;
public ShareActivity() {
super(WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
}
private CommonsApplication app;
private String source;
@ -47,6 +43,10 @@ public class ShareActivity
private UploadController uploadController;
public ShareActivity() {
super(WikiAccountAuthenticator.COMMONS_ACCOUNT_TYPE);
}
public void uploadActionInitiated(String title, String description) {
Toast startingToast = Toast.makeText(getApplicationContext(), R.string.uploading_started, Toast.LENGTH_LONG);
startingToast.show();

View file

@ -68,7 +68,7 @@ public class UploadService extends HandlerService<Contribution> {
this.notificationFinishingTitle = notificationFinishingTitle;
this.contribution = contribution;
}
public void onProgress(long transferred, long total) {
Log.d("Commons", String.format("Uploaded %d of %d", transferred, total));
if(!notificationTitleChanged) {