|
@@ -758,6 +758,23 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
|
|
setActionButton(which, mContext.getString(titleRes));
|
|
setActionButton(which, mContext.getString(titleRes));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Hides the positive/neutral/negative action buttons.
|
|
|
|
+ */
|
|
|
|
+ public final void hideActions() {
|
|
|
|
+ hideActions = true;
|
|
|
|
+ invalidateActions();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Shows the positive/neutral/negative action buttons that were previously hidden.
|
|
|
|
+ */
|
|
|
|
+ public final void showActions() {
|
|
|
|
+ hideActions = false;
|
|
|
|
+ if (invalidateActions())
|
|
|
|
+ checkIfStackingNeeded();
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Retrieves the custom view that was inflated or set to the MaterialDialog during building.
|
|
* Retrieves the custom view that was inflated or set to the MaterialDialog during building.
|
|
*/
|
|
*/
|