Skip to content

Commit fafe111

Browse files
committed
Fix bug
1 parent bc9fdf1 commit fafe111

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/src/main/java/com/haoge/easyandroid/easy/EasyToast.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ class EasyToast private constructor(private val layoutId: Int = -1,
6565
val container = LayoutInflater.from(SingleCache.getApplicationContext()).inflate(layoutId, null)
6666
tv = container.findViewById(tvId)
6767
toast = Toast(SingleCache.getApplicationContext())
68+
toast?.view = container
69+
toast?.duration = duration
6870
}
6971
}
7072
}

0 commit comments

Comments
 (0)