diff --git a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java index cde2519f3..ad93b2cee 100644 --- a/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java +++ b/app/src/main/java/com/zeapo/pwdstore/git/GitAsyncTask.java @@ -35,22 +35,23 @@ public class GitAsyncTask extends AsyncTask { } protected void onPreExecute() { - final Spanned message = Html.fromHtml(String.format("Running %s", operation.getClass().getSimpleName())); - if (lockAndFinishActivity) { + final Spanned message = Html.fromHtml(String.format("Running %s", operation.getClass().getSimpleName())); this.dialog.setMessage(message); this.dialog.setCancelable(false); this.dialog.show(); } else { + final Spanned message = Html.fromHtml(String.format("Running %s", operation.getClass().getSimpleName())); Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show(); } } protected void onProgressUpdate(String... progress) { - final Spanned message = Html.fromHtml(String.format("Running jgit command: %s", progress[0])); if (lockAndFinishActivity) { + final Spanned message = Html.fromHtml(String.format("Running jgit command: %s", progress[0])); this.dialog.setMessage(message); } else { + final Spanned message = Html.fromHtml(String.format("Running jgit command: %s", progress[0])); Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show(); } }