This commit is contained in:
Victor Shcherb 2015-10-21 15:54:47 +02:00
parent b74b1f6d21
commit 19f23a38d3
2 changed files with 4 additions and 2 deletions

View file

@ -76,6 +76,7 @@ public class DownloadActivity extends BaseDownloadActivity {
updateDescriptionTextWithSize(this, downloadProgressLayout);
int currentTab = 0;
String tab = getIntent() == null || getIntent().getExtras() == null ? null : getIntent().getExtras().getString(TAB_TO_OPEN);
if (tab != null) {
switch (tab) {
case DOWNLOAD_TAB:
currentTab = DOWNLOAD_TAB_NUMBER;
@ -87,6 +88,7 @@ public class DownloadActivity extends BaseDownloadActivity {
currentTab = UPDATES_TAB_NUMBER;
break;
}
}
viewPager = (ViewPager) findViewById(R.id.pager);
PagerSlidingTabStrip mSlidingTabLayout = (PagerSlidingTabStrip) findViewById(R.id.sliding_tabs);

View file

@ -1054,7 +1054,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement
if (child.getSize() > 100) {
builder.append(DownloadActivity.formatMb.format(new Object[]{(float) child.getSize() / (1 << 10)}));
} else {
builder.append(child.getSize()).append(" kB");
builder.append(child.getSize()).append(" KB");
}
builder.append("");
}