Skip to content

Commit fa509ee

Browse files
committed
Force inverse background on pre-ICS progress dialogs
The octocat spinner is meant for a light background and enabling this shows a light colored dialog similar to holo light theme on ICS.
1 parent 75d2012 commit fa509ee

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/com/github/mobile/ui/LightProgressDialog.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,10 @@ public static ProgressDialog create(Context context, CharSequence message) {
4848
ProgressDialog dialog;
4949
if (SDK_INT >= 14)
5050
dialog = new LightProgressDialog(context, message);
51-
else
51+
else {
5252
dialog = new ProgressDialog(context);
53+
dialog.setInverseBackgroundForced(true);
54+
}
5355

5456
dialog.setMessage(message);
5557
dialog.setIndeterminate(true);

0 commit comments

Comments
 (0)