We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2bf78 commit 59be1b1Copy full SHA for 59be1b1
library/src/main/java/com/hjq/toast/ToastImpl.java
@@ -22,6 +22,8 @@
22
*/
23
final class ToastImpl {
24
25
+ private static final String WINDOW_TITLE = "Toast";
26
+
27
private static final Handler HANDLER = new Handler(Looper.getMainLooper());
28
29
/** 当前的吐司对象 */
@@ -153,6 +155,7 @@ public void run() {
153
155
params.verticalMargin = mToast.getVerticalMargin();
154
156
params.horizontalMargin = mToast.getHorizontalMargin();
157
params.windowAnimations = mToast.getAnimationsId();
158
+ params.setTitle(WINDOW_TITLE);
159
160
// 指定 WindowManager 忽略系统窗口可见性的影响
161
// 例如下面这些的显示和隐藏都会影响当前 WindowManager 的显示(触发位置调整)
0 commit comments