Fixed null pointer in DownloadActivity with extras
This commit is contained in:
parent
e35e82bd07
commit
c2e72cb164
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue