Giving proper workspace description when the launcher is not loaded.

Bug: 27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1

Conflicts:
	src/com/android/launcher3/Workspace.java
This commit is contained in:
Sunny Goyal committed 2016-04-12 16:39:10 -07:00
1 parent 1124f2017a
commit 850a943133
1 file changed
+5 -1
+5 -1
View File
@@ -4476,7 +4476,11 @@ public class Workspace extends PagedView
}
nScreens--;
}
return String.format(getContext().getString(R.string.workspace_scroll_format),
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);
}