summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnjali Koppal <akoppal@google.com>2014-03-17 23:18:51 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-17 23:18:51 +0000
commitfd7726379a506d4c911cfe80c665f119b43aaaf8 (patch)
treedcf70163bc2dfbf9cb7ae0e41905fe1b9f64e09f
parentb7f53c3ecfb3ed24878afaf2f9985add8d909638 (diff)
parenta57b35a767afdebae6dd1802e527ddae0994c6c2 (diff)
downloadandroid_packages_apps_Trebuchet-fd7726379a506d4c911cfe80c665f119b43aaaf8.tar.gz
android_packages_apps_Trebuchet-fd7726379a506d4c911cfe80c665f119b43aaaf8.tar.bz2
android_packages_apps_Trebuchet-fd7726379a506d4c911cfe80c665f119b43aaaf8.zip
am a57b35a7: am 8c10ce7f: Merge "Make all fields of ItemInfo public." into ub-now-mister-ugly
* commit 'a57b35a767afdebae6dd1802e527ddae0994c6c2': Make all fields of ItemInfo public.
-rw-r--r--src/com/android/launcher3/AppInfo.java2
-rw-r--r--src/com/android/launcher3/ItemInfo.java22
-rw-r--r--src/com/android/launcher3/ShortcutInfo.java2
3 files changed, 13 insertions, 13 deletions
diff --git a/src/com/android/launcher3/AppInfo.java b/src/com/android/launcher3/AppInfo.java
index 5e8cca8ec..f85f69120 100644
--- a/src/com/android/launcher3/AppInfo.java
+++ b/src/com/android/launcher3/AppInfo.java
@@ -60,7 +60,7 @@ public class AppInfo extends ItemInfo {
itemType = LauncherSettings.BaseLauncherColumns.ITEM_TYPE_SHORTCUT;
}
- protected Intent getIntent() {
+ public Intent getIntent() {
return intent;
}
diff --git a/src/com/android/launcher3/ItemInfo.java b/src/com/android/launcher3/ItemInfo.java
index 3dc92c9c2..3fe4c6079 100644
--- a/src/com/android/launcher3/ItemInfo.java
+++ b/src/com/android/launcher3/ItemInfo.java
@@ -34,7 +34,7 @@ public class ItemInfo {
/**
* The id in the settings database for this item
*/
- long id = NO_ID;
+ public long id = NO_ID;
/**
* One of {@link LauncherSettings.Favorites#ITEM_TYPE_APPLICATION},
@@ -42,7 +42,7 @@ public class ItemInfo {
* {@link LauncherSettings.Favorites#ITEM_TYPE_FOLDER}, or
* {@link LauncherSettings.Favorites#ITEM_TYPE_APPWIDGET}.
*/
- int itemType;
+ public int itemType;
/**
* The id of the container that holds this item. For the desktop, this will be
@@ -50,27 +50,27 @@ public class ItemInfo {
* will be {@link #NO_ID} (since it is not stored in the settings DB). For user folders
* it will be the id of the folder.
*/
- long container = NO_ID;
+ public long container = NO_ID;
/**
* Iindicates the screen in which the shortcut appears.
*/
- long screenId = -1;
+ public long screenId = -1;
/**
* Indicates the X position of the associated cell.
*/
- int cellX = -1;
+ public int cellX = -1;
/**
* Indicates the Y position of the associated cell.
*/
- int cellY = -1;
+ public int cellY = -1;
/**
* Indicates the X cell span.
*/
- int spanX = 1;
+ public int spanX = 1;
/**
* Indicates the Y cell span.
@@ -80,17 +80,17 @@ public class ItemInfo {
/**
* Indicates the minimum X cell span.
*/
- int minSpanX = 1;
+ public int minSpanX = 1;
/**
* Indicates the minimum Y cell span.
*/
- int minSpanY = 1;
+ public int minSpanY = 1;
/**
* Indicates that this item needs to be updated in the db
*/
- boolean requiresDbUpdate = false;
+ public boolean requiresDbUpdate = false;
/**
* Title of the item
@@ -118,7 +118,7 @@ public class ItemInfo {
LauncherModel.checkItemInfo(this);
}
- protected Intent getIntent() {
+ public Intent getIntent() {
throw new RuntimeException("Unexpected Intent");
}
diff --git a/src/com/android/launcher3/ShortcutInfo.java b/src/com/android/launcher3/ShortcutInfo.java
index ede31758f..5afa78480 100644
--- a/src/com/android/launcher3/ShortcutInfo.java
+++ b/src/com/android/launcher3/ShortcutInfo.java
@@ -92,7 +92,7 @@ public class ShortcutInfo extends ItemInfo {
itemType = LauncherSettings.BaseLauncherColumns.ITEM_TYPE_SHORTCUT;
}
- protected Intent getIntent() {
+ public Intent getIntent() {
return intent;
}