Sfoglia il codice sorgente

Updated the description of the now public invalidateActions() method.

Aidan Follestad 10 anni fa
parent
commit
6d4b43cbd4

+ 5 - 2
library/src/main/java/com/afollestad/materialdialogs/MaterialDialog.java

@@ -576,8 +576,11 @@ public class MaterialDialog extends DialogBase implements
     }
 
     /**
-     * Invalidates the positive/neutral/negative action buttons. Decides whether they should be visible
-     * and sets their properties (such as height, text color, etc.).
+     * Invalidates the positive/neutral/negative action buttons. Hides the action button frames if
+     * no action buttons are visible. Updates the action button references based on whether stacking
+     * is enabled. Sets up text color, selectors, and other properties of visible action buttons.
+     *
+     * Also causes an invalidation of the dialog list.
      */
     public final boolean invalidateActions() {
         if (!hasActionButtons()) {