Merge branch 'master' into honeycomb-release
This commit is contained in:
@@ -231,19 +231,11 @@ public class CustomizePagedView extends PagedView
|
||||
public void run() {
|
||||
// add the shortcut
|
||||
ResolveInfo info = (ResolveInfo) animView.getTag();
|
||||
Intent createShortcutIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
|
||||
if (info.labelRes == R.string.group_applications) {
|
||||
// Create app shortcuts is a special built-in case of shortcuts
|
||||
createShortcutIntent.putExtra(
|
||||
Intent.EXTRA_SHORTCUT_NAME,getContext().getString(
|
||||
R.string.group_applications));
|
||||
} else {
|
||||
ComponentName name = new ComponentName(info.activityInfo.packageName,
|
||||
info.activityInfo.name);
|
||||
createShortcutIntent.setComponent(name);
|
||||
}
|
||||
mLauncher.prepareAddItemFromHomeCustomizationDrawer();
|
||||
mLauncher.processShortcut(createShortcutIntent);
|
||||
Intent createWallpapersIntent = new Intent(Intent.ACTION_SET_WALLPAPER);
|
||||
ComponentName name = new ComponentName(info.activityInfo.packageName,
|
||||
info.activityInfo.name);
|
||||
createWallpapersIntent.setComponent(name);
|
||||
mLauncher.processWallpaper(createWallpapersIntent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1459,6 +1459,10 @@ public final class Launcher extends Activity
|
||||
}
|
||||
}
|
||||
|
||||
void processWallpaper(Intent intent) {
|
||||
startActivityForResult(intent, REQUEST_PICK_WALLPAPER);
|
||||
}
|
||||
|
||||
void addLiveFolder(Intent intent) {
|
||||
// Handle case where user selected "Folder"
|
||||
String folderName = getResources().getString(R.string.group_folder);
|
||||
|
||||
Reference in New Issue
Block a user