ok I figured it out.
If anyone is interested I added a dialogue before the editing where the user would pick which layer they want to edit. I then created a layer helper class to hold the layer the user is wanting to edit. This layer is then passed to the listAdapter after the query has ran.