if (!isVisible()) {
return false;
}
-
final int iconCount = mRollo.mState.iconCount;
if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER || keyCode == KeyEvent.KEYCODE_ENTER) {
}
public void addApps(ArrayList<ApplicationInfo> list) {
+ if (mAllAppsList == null) {
+ // Not done loading yet. We'll find out about it later.
+ return;
+ }
+
final int N = list.size();
if (mRollo != null) {
mRollo.reallocAppsList(mRollo.mState.iconCount + N);
}
public void removeApps(ArrayList<ApplicationInfo> list) {
+ if (mAllAppsList == null) {
+ // Not done loading yet. We'll find out about it later.
+ return;
+ }
+
final int N = list.size();
for (int i=0; i<N; i++) {
final ApplicationInfo item = list.get(i);
}
void selectIcon(int index) {
- if (index < 0 || index >= mAllAppsList.size()) {
+ if (mAllAppsList == null || index < 0 || index >= mAllAppsList.size()) {
mState.selectedIconIndex = -1;
} else {
mState.selectedIconIndex = index;