Open pishguy opened 7 years ago
step1: add a flag of keeping show in Style Class: public static final int DURATION_MAX=-1; step2: set duration with the flag: toast.setDuration(Style.DURATION_MAX); step3: compare duration with the flag in displaySuperToast() of Toast Class , if matched do nothing before execute sendDelayedMessage():
private void displaySuperToast(SuperToast superToast) { ... if (duration == Style.DURATION_MAX) return; sendDelayedMessage(superToast, Messages.REMOVE_SUPERTOAST, superToast.getDuration() + AnimationUtils.SHOW_DURATION); ... }
@ga25 thanks, let me to test that 👍
Have you solved that?
@ga25 i'm so sorry sir, i dont have free time now. please let me to test that, thanks
.setIndeterminate(true)
and then
.dismiss()
how can i disable auto hide by duration? i want to hide that after finish some process for example: