Merge "Giving proper workspace description when the launcher is not loaded." into ub-launcher3-burnaby-nyc
diff --git a/src/com/android/launcher3/Workspace.java b/src/com/android/launcher3/Workspace.java
index 86c25b7..bf33ccf 100644
--- a/src/com/android/launcher3/Workspace.java
+++ b/src/com/android/launcher3/Workspace.java
@@ -4476,7 +4476,11 @@
}
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);
}