I am switching between an xml resource with 4 tabs to one with 3 tabs dynamically (so if logged in, 3 tabs, if logged out, 4 tabs). When going from an xml file with 4 tabs to one with 3 tabs, an NPE is triggered. It is because oldTab is no longer available to deselect (I have lost the error output on this at the moment), I believe it is line 921.
Here is a code snippet: should I be instantiating this differently or is there a way to "refresh" the object so it forgets about the oldTab?
A beautiful bottom bar. Thank you.
I am switching between an xml resource with 4 tabs to one with 3 tabs dynamically (so if logged in, 3 tabs, if logged out, 4 tabs). When going from an xml file with 4 tabs to one with 3 tabs, an NPE is triggered. It is because oldTab is no longer available to deselect (I have lost the error output on this at the moment), I believe it is line 921.
Here is a code snippet: should I be instantiating this differently or is there a way to "refresh" the object so it forgets about the oldTab?
` int xmlFile;
`