From 9f41124f09b4f0df5f040d74d5092b5c1d81f172 Mon Sep 17 00:00:00 2001 From: Jorge Ruesga Date: Sat, 24 Nov 2012 20:59:25 +0100 Subject: CMFileManager: Compress type selection dialog has an invalid background The background dialog for selecting the compression type has an invalid color. The valid color is the background color of the dialog. Change-Id: Ib5ecf1c59e5c99ccd6ed8707646b718ca88dbcd9 --- .../filemanager/adapters/CheckableListAdapter.java | 20 +++++++++++++++++++- .../cyanogenmod/filemanager/util/DialogHelper.java | 2 +- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/src/com/cyanogenmod/filemanager/adapters/CheckableListAdapter.java b/src/com/cyanogenmod/filemanager/adapters/CheckableListAdapter.java index e9960ac4..befac79b 100644 --- a/src/com/cyanogenmod/filemanager/adapters/CheckableListAdapter.java +++ b/src/com/cyanogenmod/filemanager/adapters/CheckableListAdapter.java @@ -72,6 +72,8 @@ public class CheckableListAdapter extends ArrayAdapter items) { + this(context, items, false); + } + + /** + * Constructor of CheckableListAdapter. + * + * @param context The current context + * @param items An array of items to add to the current list + * @param isDialog Indicates if the owner is a dialog (not a popup). In this case, + * use the background of the dialog. + */ + public CheckableListAdapter( + Context context, List items, boolean isDialog) { super(context, RESOURCE_ITEM_NAME, items); + this.mIsDialog = isDialog; } /** @@ -127,7 +143,9 @@ public class CheckableListAdapter extends ArrayAdapter