Merge "Small code formatting changes" into jb-ub-gel-agar

This commit is contained in:
Michael Jurka
2013-08-02 10:37:34 +00:00
committed by Android (Google) Code Review
2 changed files with 6 additions and 3 deletions
@@ -55,6 +55,8 @@ public class DeleteDropTarget extends ButtonDropTarget {
private TransitionDrawable mRemoveDrawable;
private TransitionDrawable mCurrentDrawable;
private boolean mWaitingForUninstall = false;
public DeleteDropTarget(Context context, AttributeSet attrs) {
this(context, attrs, 0);
}
@@ -251,7 +253,6 @@ public class DeleteDropTarget extends ButtonDropTarget {
return AppsCustomizePagedView.DISABLE_ALL_APPS && isWorkspaceOrFolderApplication(d);
}
private boolean mWaitingForUninstall = false;
private void completeDrop(final DragObject d) {
ItemInfo item = (ItemInfo) d.dragInfo;
boolean wasWaitingForUninstall = mWaitingForUninstall;
+4 -2
View File
@@ -79,7 +79,8 @@ class ShortcutInfo extends ItemInfo {
}
mIcon = info.mIcon; // TODO: should make a copy here. maybe we don't need this ctor at all
customIcon = info.customIcon;
initFlagsAndFirstInstallTime(getPackageInfo(context, intent.getComponent().getPackageName()));
initFlagsAndFirstInstallTime(
getPackageInfo(context, intent.getComponent().getPackageName()));
}
/** TODO: Remove this. It's only called by ApplicationInfo.makeShortcut. */
@@ -137,7 +138,8 @@ class ShortcutInfo extends ItemInfo {
intent.setComponent(className);
intent.setFlags(launchFlags);
itemType = LauncherSettings.BaseLauncherColumns.ITEM_TYPE_APPLICATION;
initFlagsAndFirstInstallTime(getPackageInfo(context, intent.getComponent().getPackageName()));
initFlagsAndFirstInstallTime(
getPackageInfo(context, intent.getComponent().getPackageName()));
}
@Override