Some cleanup of flickr handler

Factored some common code to showErrorDialog

Change-Id: Ia464d87063b387e19b3170b28f433e95382927f5
Merge "Some cleanup of flickr handler"