mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Tidied up ShareActivity.java
Var declarations at top, constructor and other methods below
This commit is contained in:
parent
c7ccd514ad
commit
0e9737426d
2 changed files with 5 additions and 5 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue