Closed EddieCurtis closed 9 years ago
Also consider using a toast instead of an error if the response came back successfully but was for an invalid drug name. I don't think we need the user's input to acknowledge that their search was invalid.
I've mostly fixed this in da488e4211b33887985a2339cc3026bb96393207 , but the error text is black on my dialog which isn't ideal. Need to find a way around that before this is finished.
This is now fixed
To reproduce, type any invalid drug name into the factsheets search. This is happening because we're not allowed to show error messages from a background thread (see http://stackoverflow.com/questions/3875184/cant-create-handler-inside-thread-that-has-not-called-looper-prepare)
I suggest using a callback in
Factsheets
to use thehandleGenericError(String)
method it inherits fromErrorHandlingActivity