Giving proper workspace description when the launcher is not loaded.

Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1
This commit is contained in:
Sunny Goyal
2016-04-12 16:09:52 -07:00
parent 04cdfacaeb
commit 5be3e4cc52
+4
View File
@@ -4255,6 +4255,10 @@ public class Workspace extends PagedView
}
nScreens--;
}
if (nScreens == 0) {
// When the workspace is not loaded, we do not know how many screen will be bound.
return getContext().getString(R.string.all_apps_home_button_label);
}
return getContext().getString(R.string.workspace_scroll_format,
page + 1 - delta, nScreens);
}