removed unnecessary looper.loop() call when displaying async Toasts
This commit is contained in:
parent
17e9b779e6
commit
7b42feefe4
1 changed files with 0 additions and 4 deletions
|
|
@ -46,7 +46,6 @@ public class UI {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
}
|
}
|
||||||
toast(context, msg);
|
toast(context, msg);
|
||||||
Looper.loop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void toast(Context context, int resourceId) {
|
public static void toast(Context context, int resourceId) {
|
||||||
|
|
@ -58,7 +57,6 @@ public class UI {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
}
|
}
|
||||||
toast(context, resourceId);
|
toast(context, resourceId);
|
||||||
Looper.loop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void toastLong(Context context, int resourceId) {
|
public static void toastLong(Context context, int resourceId) {
|
||||||
|
|
@ -70,7 +68,6 @@ public class UI {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
}
|
}
|
||||||
toast(context, resourceId);
|
toast(context, resourceId);
|
||||||
Looper.loop();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void toastLong(Context context, CharSequence msg) {
|
public static void toastLong(Context context, CharSequence msg) {
|
||||||
|
|
@ -82,6 +79,5 @@ public class UI {
|
||||||
Looper.prepare();
|
Looper.prepare();
|
||||||
}
|
}
|
||||||
toastLong(context, msg);
|
toastLong(context, msg);
|
||||||
Looper.loop();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue