Mas não faz sentido um esse método. Não faz sentido travar a interface gráfica ao chamar o "Undo", por isso é assíncrono.
Um LocalBroadcast ou EventBus (ou Otto) não resolve sua questão?
2015-07-14 10:48 GMT-03:00 Alex Baule <alexwbaule@gmail.com>:
Foi o que eu acabei fazendo Geovani... Nao achei outra coisa melhor.--2015-07-14 10:45 GMT-03:00 Geovani **Leia a documentação oficial** de Souza <geovanisouza92@gmail.com>:Vc pode criar um Handler, usar o Handler#postDelayed pra atrasar o código de exclusão, e quando tocar no desfazer, cancelar as pendências nesse callback.--
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "Android Brasil - Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to androidbrasil-dev+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






0 comentários:
Postar um comentário