@@ -124,9 +124,9 @@ public DialogSheet setIconResource(@DrawableRes int icon) {
124124 }
125125
126126 /**
127- * @deprecated use {@link #setIconDrawable(Drawable)} instead.
128127 * @param icon
129128 * @return
129+ * @deprecated use {@link #setIconDrawable(Drawable)} instead.
130130 */
131131 @ Deprecated
132132 public DialogSheet setIcon (Drawable icon ) {
@@ -136,9 +136,9 @@ public DialogSheet setIcon(Drawable icon) {
136136 }
137137
138138 /**
139- * @deprecated use {@link #setIconBitmap(Bitmap)} instead.
140139 * @param icon
141140 * @return
141+ * @deprecated use {@link #setIconBitmap(Bitmap)} instead.
142142 */
143143 @ Deprecated
144144 public DialogSheet setIcon (Bitmap icon ) {
@@ -148,9 +148,9 @@ public DialogSheet setIcon(Bitmap icon) {
148148 }
149149
150150 /**
151- * @deprecated use {@link #setIconResource(int)} instead.
152151 * @param iconRes
153152 * @return
153+ * @deprecated use {@link #setIconResource(int)} instead.
154154 */
155155 @ Deprecated
156156 public DialogSheet setIcon (@ DrawableRes int iconRes ) {
@@ -383,9 +383,9 @@ public View getInflatedView() {
383383 }
384384
385385 public void show () {
386- if (backgroundColor == 0 )
386+ if (backgroundColor == 0 )
387387 backgroundColor = Utils .getAttrColor (context , android .R .attr .windowBackground );
388- if (backgroundColor != 0 ) {
388+ if (backgroundColor != 0 ) {
389389 Drawable bgDrawable = null ;
390390 View bgView = bottomSheetDialog .findViewById (R .id .mainDialogContainer );
391391 if (bgView != null )
@@ -395,9 +395,9 @@ public void show() {
395395 bgDrawable .setColorFilter (backgroundColor , PorterDuff .Mode .SRC_IN );
396396 }
397397
398- if (titleTextColor == 0 )
398+ if (titleTextColor == 0 )
399399 titleTextColor = Utils .getTextColor (backgroundColor );
400- if (messageTextColor == 0 )
400+ if (messageTextColor == 0 )
401401 messageTextColor = Utils .getTextColorSec (backgroundColor );
402402
403403 titleTextView .setTextColor (titleTextColor );
@@ -406,7 +406,7 @@ public void show() {
406406 setColoredNavBar (coloredNavigationBar );
407407
408408 if (positiveButton .getVisibility () != View .VISIBLE )
409- ((RelativeLayout .LayoutParams )negativeButton .getLayoutParams ()).addRule (RelativeLayout .ALIGN_PARENT_RIGHT );
409+ ((RelativeLayout .LayoutParams ) negativeButton .getLayoutParams ()).addRule (RelativeLayout .ALIGN_PARENT_RIGHT );
410410
411411 if (!areButtonsVisible ()) {
412412 int bottomPadding = 0 ;
@@ -419,11 +419,11 @@ public void show() {
419419 topPadding = dpToPx (24 );
420420 }
421421
422- textContainer .setPadding (0 ,topPadding ,0 , bottomPadding );
422+ textContainer .setPadding (0 , topPadding , 0 , bottomPadding );
423423 } else {
424424 if ((titleTextView .getText () == null || TextUtils .isEmpty (titleTextView .getText ()))
425425 && messageTextView .getText () != null && !TextUtils .isEmpty (messageTextView .getText ()))
426- textContainer .setPadding (0 ,dpToPx (24 ),0 , 0 );
426+ textContainer .setPadding (0 , dpToPx (24 ), 0 , 0 );
427427 }
428428
429429 bottomSheetDialog .show ();
@@ -486,7 +486,7 @@ private void setColoredNavBar(boolean coloredNavigationBar) {
486486
487487 if (Build .VERSION .SDK_INT >= 26 ) {
488488 int flags = bottomSheetDialog .getWindow ().getDecorView ().getSystemUiVisibility ();
489- flags &= ~View .SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR ;
489+ flags &= ~View .SYSTEM_UI_FLAG_LIGHT_NAVIGATION_BAR ;
490490 bottomSheetDialog .getWindow ().getDecorView ().setSystemUiVisibility (flags );
491491 }
492492 }
@@ -499,7 +499,7 @@ private boolean areButtonsVisible() {
499499 }
500500
501501 private void removePreviousMessageViews () {
502- for (int i = 1 ; i < messageContainer .getChildCount (); i ++) {
502+ for (int i = 1 ; i < messageContainer .getChildCount (); i ++) {
503503 messageContainer .removeViewAt (i );
504504 }
505505 }
0 commit comments