package de.wak_sh.client.backend;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;

public abstract class ProgressDialogTask<Params, Result> extends
		AsyncTask<Params, Void, Result> {
	private ProgressDialog progressDialog;
	private Context context;
	private String title;

	public ProgressDialogTask(Context context, String title) {
		this.context = context;
		this.title = title;
	}

	@Override
	protected void onPreExecute() {
		progressDialog = new ProgressDialog(context);
		progressDialog.setTitle(title);
		progressDialog.show();
	}

	@Override
	protected void onPostExecute(Result result) {
		dismissProgressDialog();
	}

	@Override
	protected void onCancelled() {
		dismissProgressDialog();
	}

	private void dismissProgressDialog() {
		if (progressDialog != null && progressDialog.isShowing()) {
			progressDialog.dismiss();
		}
	}

}

@@ -309,20 +309,19 @@
 String t
-itle
+ext
 ;%0A%0A%09publ
@@ -367,20 +367,19 @@
 String t
-itle
+ext
 ) %7B%0A%09%09th
@@ -412,20 +412,18 @@
 is.t
-itle = title
+ext = text
 ;%0A%09%7D
@@ -540,19 +540,20 @@
 .set
-Title(title
+Message(text
 );%0A%09

Change ProgressDialogTask to set the message instead of title