Skip to content

Commit a093e86

Browse files
committed
1. Resolved some bugs.
1 parent 3043ee0 commit a093e86

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

app/src/main/java/com/amit/dialog/PromptDialogBox.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,14 @@
2222

2323
import com.amit.R;
2424
import com.amit.anim.AnimLoader;
25+
import com.amit.utilities.DeviceUtils;
26+
import com.amit.utilities.TextUtils;
2527
import com.amit.utilities.Utils;
2628

2729
/**
2830
* Created by Amit Jangid on 22,May,2018
29-
**/
31+
**/
32+
@SuppressWarnings("unused")
3033
public 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

Comments
 (0)