I need help with my fragment again :) I have created a listener so that I can send data from the fragment to the Activity that are hosting the fragment.
The listener can return 3 values:
- 0: no data has been changed in the form within the fragment
- 1: Data has been changed
- 2: Error in the data in the fragment
So here I my challenge: I need to disable swiping to the any other tab when there is an error(listener has returned 2) on the tab that the users in on. Next, I need to ask the user if they want to save the data if the if the listener has returned 1 before swiping to the next tab.
Can someone help me out? It shouldn't take many minutes for a skilled programmer I guess :)
I will need the help within the next couple of hours and I propose that we do it as a Teamviewer session.