Skip to content

Commit 3c47240

Browse files
committed
Updated icons dp
1 parent 18294c2 commit 3c47240

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

.idea/workspace.xml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/src/main/java/com/github/pierry/simpletoast/SimpleToast.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static void ok(Context context, String msg) {
6161

6262
IconTextView img = (IconTextView) view.findViewById(R.id.img);
6363
img.setBackground(new IconDrawable(context, iconValue)
64-
.colorRes(R.color.white).sizeDp(30));
64+
.colorRes(R.color.white).actionBarSize());
6565

6666
Toast mytoast = new Toast(context);
6767

@@ -93,7 +93,7 @@ public static void error(Context context, String msg) {
9393

9494
IconTextView img = (IconTextView) view.findViewById(R.id.img);
9595
img.setBackground(new IconDrawable(context, iconValue)
96-
.colorRes(R.color.white).sizeDp(30));
96+
.colorRes(R.color.white).actionBarSize());
9797

9898
Toast mytoast = new Toast(context);
9999

@@ -125,7 +125,7 @@ public static void info(Context context, String msg) {
125125

126126
IconTextView img = (IconTextView) view.findViewById(R.id.img);
127127
img.setBackground(new IconDrawable(context, iconValue)
128-
.colorRes(R.color.white).sizeDp(30));
128+
.colorRes(R.color.white).actionBarSize());
129129

130130
Toast mytoast = new Toast(context);
131131

0 commit comments

Comments
 (0)