mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Indentation fixing.
Unsure how it got so out of whack to begin with
This commit is contained in:
parent
da92ec7235
commit
569143e44b
1 changed files with 100 additions and 96 deletions
|
|
@ -53,6 +53,7 @@ public class UploadService extends IntentService {
|
||||||
public UploadService() {
|
public UploadService() {
|
||||||
super("UploadService");
|
super("UploadService");
|
||||||
}
|
}
|
||||||
|
|
||||||
// DO NOT HAVE NOTIFICATION ID OF 0 FOR ANYTHING
|
// DO NOT HAVE NOTIFICATION ID OF 0 FOR ANYTHING
|
||||||
// See http://stackoverflow.com/questions/8725909/startforeground-does-not-show-my-notification
|
// See http://stackoverflow.com/questions/8725909/startforeground-does-not-show-my-notification
|
||||||
// Seriously, Android?
|
// Seriously, Android?
|
||||||
|
|
@ -77,6 +78,7 @@ public class UploadService extends IntentService {
|
||||||
this.notificationFinishingTitle = notificationFinishingTitle;
|
this.notificationFinishingTitle = notificationFinishingTitle;
|
||||||
this.contribution = contribution;
|
this.contribution = contribution;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onProgress(long transferred, long total) {
|
public void onProgress(long transferred, long total) {
|
||||||
Log.d("Commons", String.format("Uploaded %d of %d", transferred, total));
|
Log.d("Commons", String.format("Uploaded %d of %d", transferred, total));
|
||||||
|
|
@ -107,6 +109,7 @@ public class UploadService extends IntentService {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDestroy() {
|
public void onDestroy() {
|
||||||
super.onDestroy();
|
super.onDestroy();
|
||||||
|
|
@ -163,6 +166,7 @@ public class UploadService extends IntentService {
|
||||||
Contribution contribution = new Contribution(mediaUri, null, filename, description, null, length, dateCreated, null, app.getCurrentAccount().name, editSummary);
|
Contribution contribution = new Contribution(mediaUri, null, filename, description, null, length, dateCreated, null, app.getCurrentAccount().name, editSummary);
|
||||||
return contribution;
|
return contribution;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int onStartCommand(Intent intent, int flags, int startId) {
|
public int onStartCommand(Intent intent, int flags, int startId) {
|
||||||
toUpload++;
|
toUpload++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue