Browse Source

Release 0.4.2

Aidan Follestad 10 years ago
parent
commit
2f2efbd496

+ 5 - 0
README.md

@@ -6,6 +6,11 @@ The code you see below is also found in the sample project. You can download a A
 
 ### What's New
 
+###### Version 0.4.2
+
+> 1. Added `md_item_color` attribute to global theming.
+> 2. Fixed a crash bug on pre-Lollipop devices related to list dialogs.
+
 ###### Version 0.4.1
 
 > 1. Fixes to action button insets, and the stacking algorithm. Thanks [plusCubed](https://github.com/plusCubed)!

+ 2 - 2
library/build.gradle

@@ -9,7 +9,7 @@ android {
         minSdkVersion 8
         targetSdkVersion 21
         versionCode 1
-        versionName "0.4.1.5"
+        versionName "0.4.2"
     }
     buildTypes {
         release {
@@ -32,7 +32,7 @@ publish {
     userOrg = 'drummer-aidan'
     groupId = 'com.afollestad'
     artifactId = 'material-dialogs'
-    version = '0.4.1.5'
+    version = '0.4.2'
     description = 'A library for implementing Material design styled dialogs across all versions of Android.'
     website = 'https://github.com/afollestad/material-dialogs'
     issueTracker = "${website}/issues"

+ 1 - 0
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -175,6 +175,7 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
         if (items != null && items.length > 0 || adapterProvided) {
             title = (TextView) view.findViewById(R.id.titleCustomView);
             listView = (ListView) view.findViewById(R.id.contentListView);
+            listView.setSelector(DialogUtils.resolveDrawable(mContext, R.attr.md_selector));
             ((MeasureCallbackListView) listView).setCallback(this);
 
             if (!adapterProvided) {

+ 1 - 2
library/src/main/res/layout/md_dialog.xml

@@ -124,8 +124,7 @@
                 android:scrollbarStyle="outsideOverlay"
                 android:clipToPadding="false"
                 android:divider="@null"
-                android:dividerHeight="0dp"
-                android:listSelector="?md_selector" />
+                android:dividerHeight="0dp" />
 
         </LinearLayout>
 

+ 2 - 2
sample/build.gradle

@@ -8,8 +8,8 @@ android {
         applicationId "com.afollestad.materialdialogssample"
         minSdkVersion 11
         targetSdkVersion 21
-        versionCode 45
-        versionName "0.4.1"
+        versionCode 46
+        versionName "0.4.2"
     }
     buildTypes {
 //        release {

BIN
sample/sample.apk