mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-30 13:57:47 +00:00
fix color
This commit is contained in:
@@ -35,22 +35,23 @@ public class GitAsyncTask extends AsyncTask<GitCommand, String, String> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void onPreExecute() {
|
protected void onPreExecute() {
|
||||||
final Spanned message = Html.fromHtml(String.format("<font color=\"#ffffff\">Running %s</font>", operation.getClass().getSimpleName()));
|
|
||||||
|
|
||||||
if (lockAndFinishActivity) {
|
if (lockAndFinishActivity) {
|
||||||
|
final Spanned message = Html.fromHtml(String.format("Running %s", operation.getClass().getSimpleName()));
|
||||||
this.dialog.setMessage(message);
|
this.dialog.setMessage(message);
|
||||||
this.dialog.setCancelable(false);
|
this.dialog.setCancelable(false);
|
||||||
this.dialog.show();
|
this.dialog.show();
|
||||||
} else {
|
} else {
|
||||||
|
final Spanned message = Html.fromHtml(String.format("<font color=\"#ffffff\">Running %s</font>", operation.getClass().getSimpleName()));
|
||||||
Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show();
|
Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void onProgressUpdate(String... progress) {
|
protected void onProgressUpdate(String... progress) {
|
||||||
final Spanned message = Html.fromHtml(String.format("<font color=\"#ffffff\">Running jgit command: <strong>%s</strong></font>", progress[0]));
|
|
||||||
if (lockAndFinishActivity) {
|
if (lockAndFinishActivity) {
|
||||||
|
final Spanned message = Html.fromHtml(String.format("Running jgit command: <strong>%s</strong>", progress[0]));
|
||||||
this.dialog.setMessage(message);
|
this.dialog.setMessage(message);
|
||||||
} else {
|
} else {
|
||||||
|
final Spanned message = Html.fromHtml(String.format("<font color=\"#ffffff\">Running jgit command: <strong>%s</strong></font>", progress[0]));
|
||||||
Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show();
|
Toast.makeText(activity.getApplicationContext(), message, Toast.LENGTH_LONG).show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user