22
22
23
23
import com .amit .R ;
24
24
import com .amit .anim .AnimLoader ;
25
+ import com .amit .utilities .DeviceUtils ;
26
+ import com .amit .utilities .TextUtils ;
25
27
import com .amit .utilities .Utils ;
26
28
27
29
/**
28
30
* Created by Amit Jangid on 22,May,2018
29
- **/
31
+ **/
32
+ @ SuppressWarnings ("unused" )
30
33
public class PromptDialogBox extends Dialog
31
34
{
32
35
public static final int DIALOG_TYPE_INFO = 0 ;
@@ -97,7 +100,7 @@ private void initView()
97
100
ViewGroup .LayoutParams .MATCH_PARENT , Utils .dp2px (getContext (), 10 )));
98
101
99
102
triangleIv .setImageBitmap (createTriangle (
100
- (int ) (Utils .getScreenSize (getContext ()).x * 0.9 ),
103
+ (int ) (DeviceUtils .getScreenSize (getContext ()).x * 0.9 ),
101
104
Utils .dp2px (getContext (), 10 )));
102
105
103
106
topLayout .addView (triangleIv );
@@ -124,7 +127,7 @@ private void initView()
124
127
private void resizeDialog ()
125
128
{
126
129
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 );
128
131
getWindow ().setAttributes (params );
129
132
}
130
133
0 commit comments