This commit is contained in:
Victor Shcherb 2014-12-09 10:26:36 +01:00
parent 0db2402eea
commit 7555d0b610

View file

@ -77,7 +77,7 @@ public class DownloadActivity extends BaseDownloadActivity {
setContentView(R.layout.tab_content);
singleTab = getIntent() != null && getIntent().getBooleanExtra(SINGLE_TAB, false);
int currentTab = 0;
String tab = getIntent() == null ? null : getIntent().getExtras().getString(TAB_TO_OPEN);
String tab = getIntent() == null || getIntent().getExtras() == null ? null : getIntent().getExtras().getString(TAB_TO_OPEN);
if (tab != null) {
if (tab.equals(DOWNLOAD_TAB)){
currentTab = 1;