Fixed null pointer in DownloadActivity with extras

This commit is contained in:
Denis 2014-11-07 15:33:58 +02:00
parent e35e82bd07
commit c2e72cb164

View file

@ -147,7 +147,7 @@ public class DownloadActivity extends SherlockFragmentActivity {
}
}
String tab = intent.getExtras().get(TAB_TO_OPEN).toString();
String tab = intent.getExtras().getString(TAB_TO_OPEN);
if (tab != null) {
if (tab.equals(DOWNLOAD_TAB)){
tabHost.setCurrentTab(1);