1
0
Fork 0

removed unnecessary looper.loop() call when displaying async Toasts

This commit is contained in:
sspanak 2023-07-03 15:22:28 +03:00 committed by Dimo Karaivanov
parent 17e9b779e6
commit 7b42feefe4

View file

@ -46,7 +46,6 @@ public class UI {
Looper.prepare();
}
toast(context, msg);
Looper.loop();
}
public static void toast(Context context, int resourceId) {
@ -58,7 +57,6 @@ public class UI {
Looper.prepare();
}
toast(context, resourceId);
Looper.loop();
}
public static void toastLong(Context context, int resourceId) {
@ -70,7 +68,6 @@ public class UI {
Looper.prepare();
}
toast(context, resourceId);
Looper.loop();
}
public static void toastLong(Context context, CharSequence msg) {
@ -82,6 +79,5 @@ public class UI {
Looper.prepare();
}
toastLong(context, msg);
Looper.loop();
}
}