I have implemented Droplet Deletion Functionality. One thing I want to mention is when I receive the response code on deleting the droplet, and if I immediately refresh the list of Droplets in DropletActivity using DropletActivity.refreshData(), I get the deleted droplet as well in the list. Therefore I am refreshing after a duration of 5 secs, in which case its working fine. Need your suggestion on whether this can handled more sophistically.
I have implemented Droplet Deletion Functionality. One thing I want to mention is when I receive the response code on deleting the droplet, and if I immediately refresh the list of Droplets in
DropletActivity
usingDropletActivity.refreshData()
, I get the deleted droplet as well in the list. Therefore I am refreshing after a duration of 5 secs, in which case its working fine. Need your suggestion on whether this can handled more sophistically.