Fixed issue with the progress dialog not disappearing on Android 4.0 and above.