OSDN Git Service
(root)
/
android-x86
/
packages-apps-Launcher3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cdfac
)
Giving proper workspace description when the launcher is not loaded.
author
Sunny Goyal
<sunnygoyal@google.com>
Tue, 12 Apr 2016 23:09:52 +0000
(16:09 -0700)
committer
Sunny Goyal
<sunnygoyal@google.com>
Tue, 12 Apr 2016 23:11:59 +0000
(16:11 -0700)
Bug:
27326504
Change-Id: Ifc30221f756d75064a4baf5f3bfc71b8f590b4b1
src/com/android/launcher3/Workspace.java
patch
|
blob
|
history
diff --git
a/src/com/android/launcher3/Workspace.java
b/src/com/android/launcher3/Workspace.java
index
f04244f
..
4aea85e
100644
(file)
--- a/
src/com/android/launcher3/Workspace.java
+++ b/
src/com/android/launcher3/Workspace.java
@@
-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);
}