Fix source code so it compiles on google3

This is a follow up to cr/65191596 which checked for String + array warnings.

Change-Id: Id70eaa32b63b838b03be21d632c7470039b6423f
This commit is contained in:
Sameer Padala
2014-04-21 19:36:14 -07:00
parent a8171169ff
commit be3e410b7a
4 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -26,6 +26,7 @@ import android.graphics.Bitmap;
import android.util.Log;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
/**
@@ -137,7 +138,8 @@ public class AppInfo extends ItemInfo {
return "ApplicationInfo(title=" + title.toString() + " id=" + this.id
+ " type=" + this.itemType + " container=" + this.container
+ " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY
+ " spanX=" + spanX + " spanY=" + spanY + " dropPos=" + dropPos + ")";
+ " spanX=" + spanX + " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos)
+ ")";
}
public static void dumpApplicationInfoList(String tag, String label, ArrayList<AppInfo> list) {
+2 -1
View File
@@ -19,6 +19,7 @@ package com.android.launcher3;
import android.content.ContentValues;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Represents a folder containing shortcuts or apps.
@@ -114,6 +115,6 @@ public class FolderInfo extends ItemInfo {
return "FolderInfo(id=" + this.id + " type=" + this.itemType
+ " container=" + this.container + " screen=" + screenId
+ " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX
+ " spanY=" + spanY + " dropPos=" + dropPos + ")";
+ " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos) + ")";
}
}
+2 -1
View File
@@ -23,6 +23,7 @@ import android.util.Log;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Arrays;
/**
* Represents an item in the launcher.
@@ -182,6 +183,6 @@ public class ItemInfo {
public String toString() {
return "Item(id=" + this.id + " type=" + this.itemType + " container=" + this.container
+ " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX
+ " spanY=" + spanY + " dropPos=" + dropPos + ")";
+ " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos) + ")";
}
}
+2 -1
View File
@@ -27,6 +27,7 @@ import android.graphics.Bitmap;
import android.util.Log;
import java.util.ArrayList;
import java.util.Arrays;
/**
* Represents a launchable icon on the workspaces and in folders.
@@ -226,7 +227,7 @@ public class ShortcutInfo extends ItemInfo {
return "ShortcutInfo(title=" + title.toString() + "intent=" + intent + "id=" + this.id
+ " type=" + this.itemType + " container=" + this.container + " screen=" + screenId
+ " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX + " spanY=" + spanY
+ " dropPos=" + dropPos + ")";
+ " dropPos=" + Arrays.toString(dropPos) + ")";
}
public static void dumpShortcutInfoList(String tag, String label,