|
@@ -19,7 +19,6 @@ import android.support.annotation.NonNull;
|
|
|
import android.support.annotation.Nullable;
|
|
|
import android.support.annotation.StringRes;
|
|
|
import android.text.method.LinkMovementMethod;
|
|
|
-import android.util.Log;
|
|
|
import android.view.ContextThemeWrapper;
|
|
|
import android.view.Gravity;
|
|
|
import android.view.LayoutInflater;
|
|
@@ -439,35 +438,24 @@ public class MaterialDialog extends DialogBase implements View.OnClickListener,
|
|
|
*/
|
|
|
private void checkIfStackingNeeded() {
|
|
|
if (numberOfActionButtons() <= 1) {
|
|
|
- Log.v("MD_Stacking", "Less than or equal to 1 button, stacking isn't needed.");
|
|
|
return;
|
|
|
}
|
|
|
final int maxWidth = calculateMaxButtonWidth();
|
|
|
- Log.v("MD_Stacking", "Max button width: " + maxWidth);
|
|
|
isStacked = false;
|
|
|
|
|
|
if (this.positiveText != null) {
|
|
|
final int positiveWidth = positiveButton.getWidth();
|
|
|
isStacked = positiveWidth > maxWidth;
|
|
|
- Log.v("MD_Stacking", "Positive button width: " + positiveWidth);
|
|
|
- } else {
|
|
|
- Log.v("MD_Stacking", "No positive button");
|
|
|
}
|
|
|
|
|
|
if (!isStacked && this.neutralText != null) {
|
|
|
final int neutralWidth = neutralButton.getWidth();
|
|
|
isStacked = neutralWidth > maxWidth;
|
|
|
- Log.v("MD_Stacking", "Neutral button width: " + neutralWidth);
|
|
|
- } else {
|
|
|
- Log.v("MD_Stacking", "No neutral button or already stacked");
|
|
|
}
|
|
|
|
|
|
if (!isStacked && this.negativeText != null) {
|
|
|
final int negativeWidth = negativeButton.getWidth();
|
|
|
isStacked = negativeWidth > maxWidth;
|
|
|
- Log.v("MD_Stacking", "Negative button width: " + negativeWidth);
|
|
|
- } else {
|
|
|
- Log.v("MD_Stacking", "No negative button or already stacked");
|
|
|
}
|
|
|
|
|
|
invalidateActions();
|