Tweaking section processing for different languages

- Ensuring that apps with non-letter/digit characters are ordered last in the misc bucket
- Removing duplicate latin-alphabet sections for Simplified Chinese
- Adding more appropriate misc bucket label for Japanese

Bug 21022854

Change-Id: I62c7b219820ef88787fcfa83f1bd4202f16f9c0c
This commit is contained in:
Winson Chung
2015-05-11 22:12:38 -07:00
parent f6d7f4f21c
commit a3499dc019
4 changed files with 122 additions and 46 deletions

View File

@@ -437,13 +437,6 @@ public class DeviceProfile {
}
public boolean updateAppsViewNumCols(Resources res, int containerWidth) {
if (AppsContainerView.GRID_HIDE_SECTION_HEADERS) {
if (appsViewNumCols != allAppsNumCols) {
appsViewNumCols = allAppsNumCols;
return true;
}
return false;
}
int appsViewLeftMarginPx =
res.getDimensionPixelSize(R.dimen.apps_grid_view_start_margin);
int availableAppsWidthPx = (containerWidth > 0) ? containerWidth : availableWidthPx;