Merge commit 'e0e2afe54ec4871af2381c494a6fb1da7d754749' into eclair-mr2-plus-aosp * commit 'e0e2afe54ec4871af2381c494a6fb1da7d754749': Fix 2198937: Home becomes unresponsive after picking wallpaper
This commit is contained in:
commit
abc38d8ba2
1 file changed
+6
-1
@@ -107,6 +107,7 @@ public final class Launcher extends Activity
|
|||||||
private static final int REQUEST_PICK_SHORTCUT = 7;
|
private static final int REQUEST_PICK_SHORTCUT = 7;
|
||||||
private static final int REQUEST_PICK_LIVE_FOLDER = 8;
|
private static final int REQUEST_PICK_LIVE_FOLDER = 8;
|
||||||
private static final int REQUEST_PICK_APPWIDGET = 9;
|
private static final int REQUEST_PICK_APPWIDGET = 9;
|
||||||
|
private static final int REQUEST_PICK_WALLPAPER = 10;
|
||||||
|
|
||||||
static final String EXTRA_SHORTCUT_DUPLICATE = "duplicate";
|
static final String EXTRA_SHORTCUT_DUPLICATE = "duplicate";
|
||||||
|
|
||||||
@@ -376,6 +377,9 @@ public final class Launcher extends Activity
|
|||||||
case REQUEST_CREATE_APPWIDGET:
|
case REQUEST_CREATE_APPWIDGET:
|
||||||
completeAddAppWidget(data, mAddItemCellInfo);
|
completeAddAppWidget(data, mAddItemCellInfo);
|
||||||
break;
|
break;
|
||||||
|
case REQUEST_PICK_WALLPAPER:
|
||||||
|
// We just wanted the activity result here so we can clear mWaitingForResult
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
} else if (requestCode == REQUEST_PICK_APPWIDGET &&
|
} else if (requestCode == REQUEST_PICK_APPWIDGET &&
|
||||||
resultCode == RESULT_CANCELED && data != null) {
|
resultCode == RESULT_CANCELED && data != null) {
|
||||||
@@ -1258,7 +1262,7 @@ public final class Launcher extends Activity
|
|||||||
li.setClassName(wi.getPackageName(), wi.getSettingsActivity());
|
li.setClassName(wi.getPackageName(), wi.getSettingsActivity());
|
||||||
chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { li });
|
chooser.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] { li });
|
||||||
}
|
}
|
||||||
startActivity(chooser);
|
startActivityForResult(chooser, REQUEST_PICK_WALLPAPER);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -1614,6 +1618,7 @@ public final class Launcher extends Activity
|
|||||||
//mWorkspace.hide();
|
//mWorkspace.hide();
|
||||||
|
|
||||||
mAllAppsGrid.setFocusable(true);
|
mAllAppsGrid.setFocusable(true);
|
||||||
|
mAllAppsGrid.requestFocus();
|
||||||
|
|
||||||
// TODO: fade these two too
|
// TODO: fade these two too
|
||||||
mDeleteZone.setVisibility(View.GONE);
|
mDeleteZone.setVisibility(View.GONE);
|
||||||
|
|||||||
Reference in new issue
Block a user