Aidan Follestad 10 tahun lalu
induk
melakukan
7278bd3d6d

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

@@ -1650,6 +1650,15 @@ public class MaterialDialog extends DialogBase implements
         invalidateCustomViewAssociations(); // invalidates padding in content area scroll (if needed)
     }
 
+    /**
+     * @deprecated Use setContent() instead.
+     */
+    @Deprecated
+    @Override
+    public void setMessage(CharSequence message) {
+        setContent(message);
+    }
+
     public final void setItems(CharSequence[] items) {
         if (mBuilder.adapter == null)
             throw new IllegalStateException("This MaterialDialog instance does not yet have an adapter set to it. You cannot use setItems().");

+ 0 - 13
library/src/main/java/com/afollestad/materialdialogs/base/DialogBase.java

@@ -47,10 +47,6 @@ public class DialogBase extends AlertDialog implements DialogInterface.OnShowLis
         throw new RuntimeException("This method is not supported by the MaterialDialog.");
     }
 
-    protected void setViewInternal(View view) {
-        super.setView(view);
-    }
-
     /**
      * @deprecated Not supported by the Material dialog.
      */
@@ -60,15 +56,6 @@ public class DialogBase extends AlertDialog implements DialogInterface.OnShowLis
         throw new RuntimeException("This method is not supported by the MaterialDialog.");
     }
 
-    /**
-     * @deprecated Use setContent() instead.
-     */
-    @Deprecated
-    @Override
-    public void setMessage(CharSequence message) {
-        throw new RuntimeException("This method is not supported by the MaterialDialog, use setContent() instead.");
-    }
-
     /**
      * @deprecated Not supported by the Material dialog.
      */