2222
2323import com .amit .R ;
2424import com .amit .anim .AnimLoader ;
25+ import com .amit .utilities .DeviceUtils ;
26+ import com .amit .utilities .TextUtils ;
2527import com .amit .utilities .Utils ;
2628
2729/**
2830 * Created by Amit Jangid on 22,May,2018
29- **/
31+ **/
32+ @ SuppressWarnings ("unused" )
3033public class PromptDialogBox extends Dialog
3134{
3235 public static final int DIALOG_TYPE_INFO = 0 ;
@@ -97,7 +100,7 @@ private void initView()
97100 ViewGroup .LayoutParams .MATCH_PARENT , Utils .dp2px (getContext (), 10 )));
98101
99102 triangleIv .setImageBitmap (createTriangle (
100- (int ) (Utils .getScreenSize (getContext ()).x * 0.9 ),
103+ (int ) (DeviceUtils .getScreenSize (getContext ()).x * 0.9 ),
101104 Utils .dp2px (getContext (), 10 )));
102105
103106 topLayout .addView (triangleIv );
@@ -124,7 +127,7 @@ private void initView()
124127 private void resizeDialog ()
125128 {
126129 WindowManager .LayoutParams params = getWindow ().getAttributes ();
127- params .width = (int ) (Utils .getScreenSize (getContext ()).x * 0.9 );
130+ params .width = (int ) (DeviceUtils .getScreenSize (getContext ()).x * 0.9 );
128131 getWindow ().setAttributes (params );
129132 }
130133
0 commit comments