Fixed update and upgrade dialog text colors for ics users

pull/14/head
Sam Bosley 13 years ago
parent 084bc87e7d
commit 6bef7057d8

@ -85,7 +85,8 @@ public class UpdateMessageService {
if(activity == null) if(activity == null)
return; return;
final String html = "<html><body style='color: white'>" + String color = (AndroidUtilities.getSdkVersion() >= 14 ? "black" : "white");
final String html = "<html><body style='color: " + color + "'>" +
builder.append("</body></html>").toString(); builder.append("</body></html>").toString();
activity.runOnUiThread(new Runnable() { activity.runOnUiThread(new Runnable() {

@ -21,6 +21,7 @@ import com.todoroo.andlib.service.ContextManager;
import com.todoroo.andlib.service.DependencyInjectionService; import com.todoroo.andlib.service.DependencyInjectionService;
import com.todoroo.andlib.sql.Criterion; import com.todoroo.andlib.sql.Criterion;
import com.todoroo.andlib.sql.Query; import com.todoroo.andlib.sql.Query;
import com.todoroo.andlib.utility.AndroidUtilities;
import com.todoroo.andlib.utility.DateUtilities; import com.todoroo.andlib.utility.DateUtilities;
import com.todoroo.andlib.utility.DialogUtilities; import com.todoroo.andlib.utility.DialogUtilities;
import com.todoroo.andlib.utility.Preferences; import com.todoroo.andlib.utility.Preferences;
@ -403,7 +404,8 @@ public final class UpgradeService {
return; return;
changeLog.append("Have a spectacular day!</body></html>"); changeLog.append("Have a spectacular day!</body></html>");
String changeLogHtml = "<html><body style='color: white'>" + changeLog; String color = (AndroidUtilities.getSdkVersion() >= 14 ? "black" : "white");
String changeLogHtml = "<html><body style='color: " + color +"'>" + changeLog;
DialogUtilities.htmlDialog(context, changeLogHtml, DialogUtilities.htmlDialog(context, changeLogHtml,
R.string.UpS_changelog_title); R.string.UpS_changelog_title);

Loading…
Cancel
Save