mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Moved "success toast" from generic UploadTask
This commit is contained in:
parent
c57d00dda5
commit
f768ce4756
2 changed files with 6 additions and 6 deletions
|
|
@ -72,6 +72,12 @@ public class ShareActivity extends AuthenticatedActivity {
|
|||
super(context, uploadService, rawTitle, mediaUri, description, mimeType, source);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPreExecute() {
|
||||
Toast startingToast = Toast.makeText(getApplicationContext(), R.string.uploading_started, Toast.LENGTH_LONG);
|
||||
startingToast.show();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPostExecute(Contribution contribution) {
|
||||
super.onPostExecute(contribution);
|
||||
|
|
|
|||
|
|
@ -40,12 +40,6 @@ public class StartUploadTask extends AsyncTask<Void, Void, Contribution> {
|
|||
app = (CommonsApplication)context.getApplicationContext();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPreExecute() {
|
||||
Toast startingToast = Toast.makeText(context.getApplicationContext(), R.string.uploading_started, Toast.LENGTH_LONG);
|
||||
startingToast.show();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected Contribution doInBackground(Void... voids) {
|
||||
String title = rawTitle;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue